This is a test version of Biostars. For the public version, visit https://www.biostars.org.
To get fasta header

I am trying to open the fasta file with sequences. My bio perl script opens the sequence but not with fasta header. How can I get fasta header with bio perl. My script:

#!/bin/perl -w
use Bio::SeqIO;

$seqio_obj = Bio::SeqIO->new(-file=> "no_plasmid.fasta", -format=>"fasta");
$seq_obj = $seqio_obj->next_seq;
$acc = $so->accession_number;

   while($seq_obj = $seqio_obj->next_seq){

             print $seq_obj-> seq, "\n";
}
rna-seq perl bio perl
  • What is $so?
  • Have you tried $seq_obj->id?

Hi bandanaschapagain,

Please edit your post to clarify the questions below or add a comment to reflect its status.

0 answers

No answers yet.

Log in to answer this question.