Class BlastXMLParser
- java.lang.Object
-
- org.biojava.nbio.core.search.io.blast.BlastXMLParser
-
- All Implemented Interfaces:
ResultFactory
public class BlastXMLParser extends Object implements ResultFactory
Re-designed by Paolo Pavan on the footprint of: org.biojava.nbio.genome.query.BlastXMLQuery by Scooter WillisYou may want to find my contacts on Github and LinkedIn for code info or discuss major changes. https://github.com/paolopavan - Author:
- Paolo Pavan
-
-
Constructor Summary
Constructors Constructor Description BlastXMLParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Result>createObjects(double maxEScore)Launch the parsing and get back a list of Result objects representing the search result in the specified file.List<String>getFileExtensions()returns a list of file extensions associated to this ResultFactoryvoidsetDatabaseReferences(List<Sequence> sequences)Specify the collection of sequences objects used as database in the Search run.voidsetFile(File f)voidsetQueryReferences(List<Sequence> sequences)Specify the collection of sequences objects used as queries in the Search run.voidstoreObjects(List<Result> results)The factory that implements this method will be able to save the Search results to a file in the same format that it is able to read.
-
-
-
Constructor Detail
-
BlastXMLParser
public BlastXMLParser()
-
-
Method Detail
-
setFile
public void setFile(File f)
- Specified by:
setFilein interfaceResultFactory
-
createObjects
public List<Result> createObjects(double maxEScore) throws IOException, ParseException
Description copied from interface:ResultFactoryLaunch the parsing and get back a list of Result objects representing the search result in the specified file.- Specified by:
createObjectsin interfaceResultFactory- Returns:
- Throws:
IOExceptionParseException
-
getFileExtensions
public List<String> getFileExtensions()
Description copied from interface:ResultFactoryreturns a list of file extensions associated to this ResultFactory- Specified by:
getFileExtensionsin interfaceResultFactory- Returns:
-
setQueryReferences
public void setQueryReferences(List<Sequence> sequences)
Description copied from interface:ResultFactorySpecify the collection of sequences objects used as queries in the Search run. They will be associated back to the query during the construction of the Result object.- Specified by:
setQueryReferencesin interfaceResultFactory
-
setDatabaseReferences
public void setDatabaseReferences(List<Sequence> sequences)
Description copied from interface:ResultFactorySpecify the collection of sequences objects used as database in the Search run. They will be associated back to the Hit during the construction of the Hit object.- Specified by:
setDatabaseReferencesin interfaceResultFactory
-
storeObjects
public void storeObjects(List<Result> results) throws IOException, ParseException
Description copied from interface:ResultFactoryThe factory that implements this method will be able to save the Search results to a file in the same format that it is able to read.- Specified by:
storeObjectsin interfaceResultFactory- Throws:
IOExceptionParseException
-
-