Since the flights are with different airlines and I would need to collect luggage do I need to go through passport control to connect to the emirates flight?
Yes, to collect baggage you must go through passport control first.
Also do I need a visa for transit?
Yes, baggage collection is a landside activity hence you will be entering Turkey and will require a visa. You are eligible for an e-Visa that you can easily get online or at kiosks at the Airport.
Your e-Visa will be
Number of Entries: Multiple-Entry
Visa Fee: Gratis (No Fee)
This answer relies on your statement that You would need to collect baggage. If you booked with a single booking that then used multiple codeshare airlines your baggage might be / can be checked through - please ask them about the status first. In that case you won't need to go through immigration hence no visa no baggage collection required.