[Biojava-l] Swissprot parsing
satyanarayana pasupuleti
satya_pasupuleti@hotmail.com
Fri, 11 Oct 2002 13:26:18 -0500
Hello all:
I am trying to extract information from a Swissprot file using the below
code.
SequenceIterator seqIter = SeqIOTools.readSwissprot(br);
while (seqIter.hasNext()) {
Sequence sequence = seqIter.nextSequence();
Annotation seqAn = sequence.getAnnotation();
Set set = seqAn.keys();
Iterator iter = set.iterator();
while (iter.hasNext()) {
String key = (String) iter.next();
Object value = seqAn.getProperty (key);
System.out.println ("Key: " + key + "\nValue: " + value.toString());
}
}
However I could not get the sequence data (followed by the line code 'SQ').
Is there any way I can get it?
Also are there any classes in Bio-Java that Converts one file format to
another ... say Swissprot to Fasta?
Thanks a lot
-satya
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com