Could be a crank sensor, I had replaced that just before the coil. My car went through a stage where it had issues starting and some times it would start fine but it would idle ruff.
I replaced coil, crank sensor, PCV valve, and the IAC valve before all the issues went away.
Here's a video of my car when it was idling ruff.
Click Me for Video