Car wont start unless door is open

I’m not sure if this is what you meant when you said the wire runs on top of the tranny.
Yes.
The middle one goes to the neutral safety switch. It allows the starter relay trigger to ground when the transmission is in P or N.
The side wires connect to the reverse light switch. One is hot whenever the key is in run, but not start.