[Biojava-l] Parsing ClustalW output
Johan Hattne
hattne@ibg.uu.se
Wed, 25 Jul 2001 12:51:47 +0200
On Wed, 25 Jul 2001, Simon Brocklehurst wrote:
> > Has anybody had any luck in parsing output from ClustalW using biojava's
> > ClustalWAlignmentSAXParser? I can get it to return the sequences' names,
> > but I'm hoping to get at the sequence's symbols. I've looped through the
> > attribute lists sent to my handler's startElement() method, but there only
> > seems to be one attribute: the name.
>
> *Hopefully*, this is an easy one to solve. The sequence symbols
> themselves are returned as PCDATA - i.e. they aren't returned as
> attributes. You can get at the PCData in the characters method (as
> opposed to the startElement method) in your ContentHandler.
>
> Let me know if it works.
Yes, it works. And is _was_ easy, too. I had completely overlooked
the characters method. Thanks a lot for your help!
// Johan
_______________________________________________________________________________
Johan Hattne * Rackarbergsgatan 34:432 * S-752 32 UPPSALA * SWEDEN * 018-505684
Mol. Biotech. & Engineering Phys. * auzzie@yodel.net * http://www.yodel.net