[Biojava-l] getName() method oddity

David Huen david.huen at ntlworld.com
Tue Feb 11 19:14:44 EST 2003


On Tuesday 11 Feb 2003 6:43 pm, Sylvain Foisy wrote:
> Hi,
>
> I just notice something: the getName() method of a Sequence object does
> not return the full line of comments of a FASTA-formatted file. For
> example, a sequence has this comment line:
>
> gi|14776721|ref|NT_011516.5|Hs22_11673 Homo sapiens chromosome 22
> reference genomic contig
>
> but getName() returns:
>
> gi|14776721|ref|NT_011516.5|Hs22_11673
>
> Is this a bug or a feature? I would like to have the full line so that I
> can write a report after analysis.
>
Actually, that is the name by NCBI conventions :-).

If you used SeqIOTools, I think that will chuck the rest of the description 
into an Annotation under the key "description".

Regards,
David




More information about the Biojava-l mailing list