|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectprocope.methods.interologs.blast.BlastHits
public class BlastHits
Represents an immutable list of BLAST hits which are normally parsed from a BLAST result file. Contains methods for the detection of best hits and bidirectional best hits.
Constructor Summary | |
---|---|
BlastHits(Collection<BlastHit> hits)
Creates a new BLAST hits object from a given list of hits . |
Method Summary | |
---|---|
Collection<Integer> |
getAllHitIDs()
Returns al ist of all proteins which were hit at least once in the database. |
Collection<Integer> |
getAllQueryIDs()
Returns a list of all proteins used as query in this BLAST result |
Collection<BlastHit> |
getBestHits(Integer queryID)
Returns all best hits for a given query. |
ProteinNetwork |
getBidirectionalBestHits(BlastHits backward,
BlastBBHConstraints constraints)
Calculate bidirectional best hits (BBHs). |
BlastHit |
getHit(int query,
int hit)
Retrieves a specific BLAST hit from the result. |
Collection<BlastHit> |
getHitsPerQuery(int queryID)
Returns all hits for a given query protein |
int |
getNumberOfHits()
Returns the number of hits in this BLAST result |
Iterator<BlastHit> |
iterator()
Returns an iterator over all BLAST hits contained in this set |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BlastHits(Collection<BlastHit> hits)
hits
.
hits
- the BLAST hits list with which the object is initializedMethod Detail |
---|
public Iterator<BlastHit> iterator()
iterator
in interface Iterable<BlastHit>
public Collection<BlastHit> getHitsPerQuery(int queryID)
queryID
- the protein used as query in the BLAST run
public Collection<BlastHit> getBestHits(Integer queryID)
queryID
- the query protein for which the best hits will be retrieved
public Collection<Integer> getAllQueryIDs()
public Collection<Integer> getAllHitIDs()
public int getNumberOfHits()
public ProteinNetwork getBidirectionalBestHits(BlastHits backward, BlastBBHConstraints constraints)
Note: If proteins have multiple best hits there might be more than one BBH associated with a single protein.
backward
- BLAST result which should have used the query of this
result as the database and the database of this result
as the queryconstraints
- constraints for filtering BBHs or null
if all
identified BBHs should be returned
public BlastHit getHit(int query, int hit)
query
- query proteinhit
- hit (database) protein
null
if not
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |