Re: [Biojava-l] Swissprot parsing

2002-10-13 Thread Matthew Pocock
Hi satya, You are 90% of the way there with your script. You are missing the line: System.out.println("Sequence: " + sequence.asString()); The sequence itself is stored seperately from the annotations. This lets us be careful about memory management. You can access the actual nucleotides usin

[Biojava-l] Swissprot parsing

2002-10-11 Thread satyanarayana pasupuleti
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();