Vahid,
The discrepancy is as follows:
Phy needs the physical locations of the 0-indexed recording *channels*
The Neuronexus maps note the physical location of the 1-indexed recording *sites*
For numerous reasons, these will not match.
1. phy is 0-indexed while nn is 1-indexed
2. headstages/amplifiers/DACs may remap channels (that is, site 1 may correspond to channel 27 coming out of the headstage)
3. finally, software may remap channels (e.g. if channel 5 is bad and I choose to skip it when saving to phy's input format, then channels 6:n will shift down to be 6:n-1)
For all of these reasons, I went with the simplest strategy when generating these graphs: assume channels are saved from the tip, moving up the shank, from the leftmost to rightmost shank.
Best,
Justin