Also note not all genomes are circular. What would you do about those? If you put the first coordinate in the first position of the array (arr[0]), you will surely have to -1 anytime you output any coordinate. If you start from arr1 you do what I currently do, but now you treat circular genomes and linear genomes differently anytime you print or even calculate their length (if the genome is circular scalar(@arr) == genome size, but if it's linear scalar(@arr) == genome size + 1). Confusing...
Anyway, I must admit I'm not sure why are we focusing on this... that's really not the issue. Finally, note that in biology circles do have a start :) For each circular genome, a certain point was selected as '1'. This choice is actually not completely arbitrary - there are some rules for deciding where to call this landmark. Once a genome has been sequenced and published it has one and only '1' and any reference to this genome will be relative to this landmark. Just for general knowledge...
In reply to Re^4: Can I speed this up? (repetitively scanning ranges in a large array)
by daverave
in thread Can I speed this up? (repetitively scanning ranges in a large array)
by daverave
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |