public class BlastLikeHomologyBuilder extends ViewSequenceFactory implements SearchContentHandler
BlastLikeHomologyBuilder populates a
 List with Homology instances created from
 SAX events supplied via a SeqSimilarityAdapter. The
 SAX events should describe elements conforming to the BioJava
 BlastLikeDataSetCollection DTD. Suitable sources are
 BlastLikeSAXParser or
 FastaSAXParser. Annotated ViewSequences
 wrapping both query and subject sequences are created and populated
 with HomologyFeatures. See the documentation of
 Homology and HomologyFeature.
As SimpleHomologyFeatures are created on views of
 the query and subject sequences, both query and subject should be
 nucleotide sequences (SimpleHomologyFeature extends
 StrandedFeature.). This limits the searches currently
 handled to BLASTN, TBLASTX and Fasta DNA.
| Modifier and Type | Field and Description | 
|---|---|
| static String | HOMOLOGY_FEATURE_TYPEHOMOLOGY_FEATURE_TYPEis the type String used byBlastLikeHomologyBuilderwhen creatingHomologyFeatures. | 
databaseID, querySeqHolder, queryViewCache, subjectDBs, subjectViewCache| Constructor and Description | 
|---|
| BlastLikeHomologyBuilder(List target)Creates a new  BlastLikeHomologyBuilderwhich will
 instantiateHomologyobjects into theListtarget. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addHitProperty(Object key,
                            Object value)The  addHitPropertymethod adds a key/value pair
 containing some property of a particular hit. | 
| void | addSearchProperty(Object key,
                                  Object value)The  addSearchPropertymethod adds a key/value pair
 containing some property of the overall search result. | 
| void | addSubHitProperty(Object key,
                                  Object value)The  addSubHitPropertymethod adds a key/value pair
 containing some property of a particular subhit. | 
| void | endHeader()The  endHeadermethod indicates the end of a
 formatted header. | 
| void | endHit()The  endHitmethod indicates the end of a formatted
 hit. | 
| void | endSearch()The  endSearchmethod indicates the end of useful
 search information. | 
| void | endSubHit()The  endSubHitmethod indicates the end of a
 formatted subhit. | 
| boolean | getMoreSearches()getMoreSearchesreturns the state of theSearchContentHandlerwith respect to further
 searches from its data source. | 
| void | setMoreSearches(boolean value)setMoreSearchessets the state of theSearchContentHandler's expectation of receiving
 more results. | 
| void | setQueryID(String queryID)setQueryIDidentifies the query sequence by a
 name, ID or URN. | 
| void | startHeader()The  startHeadermethod indicates the start of a
 formatted header. | 
| void | startHit()The  startHitmethod indicates the start of a
 formatted hit. | 
| void | startSearch()The  startSearchmethod indicates the start of
 useful search information. | 
| void | startSubHit()The  startSubHitmethod indicates the start of a
 formatted subhit. | 
getQuerySeqHolder, getSubjectDBInstallation, makeQueryViewSequence, makeSubjectViewSequence, setDatabaseID, setQuerySeqHolder, setSubjectDBInstallationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetDatabaseIDpublic static final String HOMOLOGY_FEATURE_TYPE
HOMOLOGY_FEATURE_TYPE is the type String used by
 BlastLikeHomologyBuilder when creating
 HomologyFeatures. This is the String which is
 returned when an HomologyFeature's
 getType() method is called.public BlastLikeHomologyBuilder(List target)
BlastLikeHomologyBuilder which will
 instantiate Homology objects into the
 List target.target - a List.public void setQueryID(String queryID)
SearchContentHandlersetQueryID identifies the query sequence by a
 name, ID or URN.setQueryID in interface SearchContentHandlerqueryID - a String which should be an unique
 identifer for the sequence.public boolean getMoreSearches()
SearchContentHandlergetMoreSearches returns the state of the
 SearchContentHandler with respect to further
 searches from its data source. Used for handling streams of
 search results.getMoreSearches in interface SearchContentHandlerboolean value.public void setMoreSearches(boolean value)
SearchContentHandlersetMoreSearches sets the state of the
 SearchContentHandler's expectation of receiving
 more results. Used for handling streams of search results.setMoreSearches in interface SearchContentHandlervalue - a boolean value.public void startSearch()
SearchContentHandlerstartSearch method indicates the start of
 useful search information.startSearch in interface SearchContentHandlerpublic void endSearch()
SearchContentHandlerendSearch method indicates the end of useful
 search information.endSearch in interface SearchContentHandlerpublic void startHeader()
SearchContentHandlerstartHeader method indicates the start of a
 formatted header. This usually contains information relevant to
 the search as a whole.startHeader in interface SearchContentHandlerpublic void endHeader()
SearchContentHandlerendHeader method indicates the end of a
 formatted header.endHeader in interface SearchContentHandlerpublic void startHit()
SearchContentHandlerstartHit method indicates the start of a
 formatted hit. This could be a single line, or a block of
 lines.startHit in interface SearchContentHandlerpublic void endHit()
SearchContentHandlerendHit method indicates the end of a formatted
 hit.endHit in interface SearchContentHandlerpublic void startSubHit()
SearchContentHandlerstartSubHit method indicates the start of a
 formatted subhit. There may be zero or more of these per hit.startSubHit in interface SearchContentHandlerpublic void endSubHit()
SearchContentHandlerendSubHit method indicates the end of a
 formatted subhit.endSubHit in interface SearchContentHandlerpublic void addSearchProperty(Object key, Object value)
SearchContentHandleraddSearchProperty method adds a key/value pair
 containing some property of the overall search result.addSearchProperty in interface SearchContentHandlerkey - an Object.value - an Object.public void addHitProperty(Object key, Object value)
SearchContentHandleraddHitProperty method adds a key/value pair
 containing some property of a particular hit.addHitProperty in interface SearchContentHandlerkey - an Object.value - an Object.public void addSubHitProperty(Object key, Object value)
SearchContentHandleraddSubHitProperty method adds a key/value pair
 containing some property of a particular subhit.addSubHitProperty in interface SearchContentHandlerkey - an Object.value - an Object.Copyright © 2014 BioJava. All rights reserved.