[Biojava-l] Parsing out identities from a blast file
mark.schreiber at novartis.com
mark.schreiber at novartis.com
Thu Mar 5 02:53:47 UTC 2009
Hi -
You need to use the SeqSimilaritySearchHit which is that parent of the
SeqSimilaritySearchSubHit. It has a method called getSubjectID() which
gives you the ID of the hit subject. All subhits with the same parent
search hit will have the same subject ID so it makes more sense to store
the information in this class.
- Mark
biojava-l-bounces at lists.open-bio.org wrote on 03/04/2009 11:36:21 PM:
> Hi there,
>
> Does anyone know what methods I need to invoke to pull out the identity
> for a particular hit when parsing a blast output?
>
> I can get the score, the start & end points etc using:
> SeqSimilaritySearchHit hit = (SeqSimilaritySearchHit)obj;
> LOGGER.debug("match:" + hit.getSubjectID() + ", score:"
> + hit.getScore() + ", e-value:" + hit.getEValue());
>
> But I can't seem to find any method to pull out the identity of the hit,
> which I would have thought would be in the SeqSimilaritySearchSubHit
> interface.
>
> Many thanks,
>
> Ben
>
>
>
--------------------------------------------------------------------------------
> Plymouth Marine Laboratory
>
> Registered Office:
> Prospect Place
> The Hoe
> Plymouth PL1 3DH
>
> Website: www.pml.ac.uk
> Registered Charity No. 1091222
> PML is a company limited by guarantee
> registered in England & Wales
> company number 4178503
>
> PML is a member of the Plymouth Marine Sciences Partnership
> Website: www.pmsp.org.uk
>
--------------------------------------------------------------------------------
> This e-mail, its content and any file attachments are confidential.
>
> If you have received this e-mail in error please do not copy,
> disclose it to any third party or use the contents or attachments in
> any way. Please notify the sender by replying to this e-mail or e-
> mail forinfo at pml.ac.uk and then delete the email without making any
> copies or using it in any other way.
>
> The content of this message may contain personal views which are not
> the views of Plymouth Marine Laboratory unless specifically stated.
>
> You are reminded that e-mail communications are not secure and may
> contain viruses. Plymouth Marine Laboratory accepts no liability for
> any loss or damage which may be caused by viruses.
>
--------------------------------------------------------------------------------
>
> _______________________________________________
> Biojava-l mailing list - Biojava-l at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/biojava-l
_________________________
CONFIDENTIALITY NOTICE
The information contained in this e-mail message is intended only for the
exclusive use of the individual or entity named above and may contain
information that is privileged, confidential or exempt from disclosure
under applicable law. If the reader of this message is not the intended
recipient, or the employee or agent responsible for delivery of the
message to the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly
prohibited. If you have received this communication in error, please
notify the sender immediately by e-mail and delete the material from any
computer. Thank you.
More information about the Biojava-l
mailing list