Class NcbiGene2AccessionParser
java.lang.Object
ubic.gemma.core.loader.util.parser.BasicLineParser<NCBIGene2Accession>
ubic.gemma.core.loader.genome.gene.ncbi.NcbiGene2AccessionParser
- All Implemented Interfaces:
LineParser<NCBIGene2Accession>,Parser<NCBIGene2Accession>,QueuingParser<NcbiGeneData>
public class NcbiGene2AccessionParser
extends BasicLineParser<NCBIGene2Accession>
implements QueuingParser<NcbiGeneData>
Class to parse the NCBI gene2accession files. Results are stored in a "Source domain object", not a Gemma Gene.
- Author:
- pavlidis
- See Also:
-
Field Summary
Fields inherited from class ubic.gemma.core.loader.util.parser.BasicLineParser
logFields inherited from interface ubic.gemma.core.loader.util.parser.LineParser
MIN_PARSED_LINES_FOR_UPDATE, PARSE_ALERT_TIME_FREQUENCY_MSFields inherited from interface ubic.gemma.core.loader.util.parser.Parser
PARSE_ALERT_FREQUENCY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidintgetCount()voidparse(File f, BlockingQueue<NcbiGeneData> queue1, Map<String, NCBIGeneInfo> geneInfo1) voidparse(InputStream is) Parse aInputStream.voidparse(InputStream is, BlockingQueue<NcbiGeneData> aQueue) Parse an input stream, storing the results in the passed queue (which can be used by a consumer)parseOneLine(String line) Handle the parsing of a single line from the input.voidsetStartingNbiId(Integer startingNcbiId) Methods inherited from class ubic.gemma.core.loader.util.parser.BasicLineParser
parse, parseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ubic.gemma.core.loader.util.parser.Parser
getUniqueResult
-
Constructor Details
-
NcbiGene2AccessionParser
public NcbiGene2AccessionParser()
-
-
Method Details
-
parse
Description copied from interface:QueuingParserParse an input stream, storing the results in the passed queue (which can be used by a consumer)- Specified by:
parsein interfaceQueuingParser<NcbiGeneData>- Parameters:
is- input streamaQueue- queue- Throws:
IOException- IO problems
-
parse
public void parse(File f, BlockingQueue<NcbiGeneData> queue1, Map<String, NCBIGeneInfo> geneInfo1) throws IOException- Throws:
IOException
-
parseOneLine
Description copied from interface:LineParserHandle the parsing of a single line from the input.- Specified by:
parseOneLinein interfaceLineParser<NCBIGene2Accession>- Parameters:
line- line to parse- Returns:
- parsed object
-
getResults
- Specified by:
getResultsin interfaceParser<NCBIGene2Accession>- Specified by:
getResultsin classBasicLineParser<NCBIGene2Accession>- Returns:
- the results of the parse.
-
parse
Description copied from interface:ParserParse aInputStream.- Specified by:
parsein interfaceParser<NCBIGene2Accession>- Overrides:
parsein classBasicLineParser<NCBIGene2Accession>- Parameters:
is- input stream- Throws:
IOException- if there is a problem while manipulating the file
-
addResult
- Specified by:
addResultin classBasicLineParser<NCBIGene2Accession>
-
getCount
public int getCount() -
setStartingNbiId
-