[Biojava-l] parsing swissprot

Roy Park RPark@lexgen.com
Thu, 20 Jun 2002 09:02:40 -0500


Get the Annotation from the Sequence object, then do (String)
getProperty("ID") on the Annotation object to get the ID.  You can do this
for any other fields you'd like.

Roy

-----Original Message-----
From: Jolyon Holdstock [mailto:j.holdstock@oxagen.co.uk]
Sent: Thursday, June 20, 2002 4:06 AM
To: 'biojava-l@biojava.org'
Subject: [Biojava-l] parsing swissprot


Hi,

I am using biojava to parse swissprot files. Using the TestSwssprot example
i can generate a file of sequences in fasta format. At the moment the name
is the swissprot accession number. Is there an 'off the shelf'  way to get
the ID instead ?

Thanks

Jolyon



This message contains confidential and potentially legally privileged
information solely for its intended recipients and others may not
distribute, copy or use it. If you have received this communication in
error, please tell us by return email and delete it, and any copies of it.
_______________________________________________
Biojava-l mailing list  -  Biojava-l@biojava.org
http://biojava.org/mailman/listinfo/biojava-l


*************************************************************************** 
 The contents of this communication are intended only for the addressee and
may contain confidential and/or privileged material. If you are not the
intended recipient, please do not read, copy, use or disclose this
communication and notify the sender.  Opinions, conclusions and other
information in this communication that do not relate to the official
business of my company shall be understood as neither given nor endorsed by
it.  
***************************************************************************