| |||||
|
How do I use Bio::Index::Fasta and index on diff... To see other biotech frequently asked questions,
please visit http://biotech.fyicenter.com/faq/
(Continued from previous question...) How do I use Bio::Index::Fasta and index on different ids? I'm using Bio::Index::Fasta in order to retrieve sequences from my indexed fasta file but I keep seeing MSG: Did not provide a
valid Bio::PrimarySeqI object when I call It's likely that $inx = Bio::Index::Fasta->new(-filename =>$indexname); $inx = id_parser(\&get_id); $inx->make_index($fastaname); sub get_id { my $header = shift; $header =~ /^>gi\|(+)/; $1; } The same issue arises when you use Bio::DB::Fasta, but in that case the code might look like this: $inx = Bio::DB::Fasta->new($fastaname, -makeid => \&get_id); (Continued on next question...)
Other Frequently Asked Questions
|
||||