in reply to Re^3: Can I speed this up? (repetitively scanning ranges in a large array)
in thread Can I speed this up? (repetitively scanning ranges in a large array)
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...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Can I speed this up? (repetitively scanning ranges in a large array)
by ikegami (Patriarch) on Nov 02, 2010 at 22:52 UTC | |
by daverave (Scribe) on Nov 03, 2010 at 06:43 UTC | |
by ikegami (Patriarch) on Nov 03, 2010 at 19:07 UTC |