[Bioperl-l] Can't get length

Paulo Almeida paulo.david at netvisao.pt
Thu Jan 6 12:10:40 EST 2005


Hi,

Did you try $seq->length ?

-Paulo

kishua2000 kishua wrote:

> Hello,
>  
> I'm using seqIO object to load a DNA sequence in a fasta-like format 
> (">" + some info, in the header). The header doesn't contain any info 
> about the length of the sequence.
>  
> $in  = Bio::SeqIO->new(-file =>$fastaFile , '-format' => 'largefasta');
> Then I load my sequence to a seq object
>  
> my $seq = $in->next_seq()
>  
> but when I try to get the length of the sequence I get 0
>  
> $len=$seq.length(); #----> 0
>  
> so how to get simple length ?



More information about the Bioperl-l mailing list