This will require you to get the wiring diagrams from the service manual and trace the wires. It is tedious, boring, and tiring on the eyes. However, you need to find which wire was cut incorrectly when the cassette was removed.
Helped a fellow VR member a couple of years ago to go through this after he removed his cassette.
There is really no short cut.
RR