Hi,

is it possible to get the information form BLAST-XML Tag <Hit_def> with bioJAVA?

I use the example from  BioJava In Anger for parse a BLAST.
I use BlastXMLParserFacade as a parser.
To get the definition of the target gen I use SeqSimilaritySearchHit-Object parse the result from getSubjectID() and download the Sequence from NCBI. But this is very slow.

for (Iterator k = result.getHits().iterator(); k.hasNext(); ) {
         SeqSimilaritySearchHit hit = (SeqSimilaritySearchHit)k.next();
         String name = hit.getSubjectID().split("\\|")[3];
         Sequence seq = db.getSequence(name);
System.out.print("\t" + seq.getAnnotation().getProperty("DEFINITION"));
}

Is there are a better way to get the Information?

thanks,
Christian

--
Christian Köberle

Max Planck Institute for Infection Biology
Department: Immunology
Schumannstr. 21/22
10117 Berlin

Tel: +49 30 28 460 562
e-mail: [EMAIL PROTECTED]

_______________________________________________
Biojava-l mailing list  -  Biojava-l@biojava.org
http://biojava.org/mailman/listinfo/biojava-l

Reply via email to