I've written a piece of Perl code that retrieves a base from a FASTA file, given the contig label (e.g. chr1) and base position. However- I think it runs slowly, and am sure is not optimal: mainly because requests are usually made in an ordered manner, which is not reflected by my code.
Is anyone aware of a function that has already been written to do this well?
Is anyone aware of a function that has already been written to do this well?
Comment