Package ubic.gemma.core.loader.genome
Class ProbeSequenceParser
java.lang.Object
ubic.gemma.core.loader.util.parser.BasicLineMapParser<String,BioSequence>
ubic.gemma.core.loader.genome.ProbeSequenceParser
- All Implemented Interfaces:
LineParser<BioSequence>,Parser<BioSequence>
Parse probes from a tabular file. First columnn = probe id; Second column = sequence name; Third column = sequence.
This is designed primarily to deal with oligonucleotide arrays that have sequence names different from the probe
names.
- Author:
- paul
-
Field Summary
Fields inherited from class ubic.gemma.core.loader.util.parser.BasicLineMapParser
COMMENT_MARK, 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 TypeMethodDescriptionbooleancontainsKey(String key) protected StringgetKey(BioSequence newItem) voidparse(InputStream is) Parse aInputStream.parseOneLine(String line) Handle the parsing of a single line from the input.protected voidput(String key, BioSequence value) Methods inherited from class ubic.gemma.core.loader.util.parser.BasicLineMapParser
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
-
ProbeSequenceParser
public ProbeSequenceParser()
-
-
Method Details
-
containsKey
- Specified by:
containsKeyin classBasicLineMapParser<String,BioSequence>
-
get
- Specified by:
getin classBasicLineMapParser<String,BioSequence>
-
getKeySet
- Specified by:
getKeySetin classBasicLineMapParser<String,BioSequence>
-
getResults
- Specified by:
getResultsin interfaceParser<BioSequence>- Specified by:
getResultsin classBasicLineMapParser<String,BioSequence> - Returns:
- the results of the parse.
-
parse
Description copied from interface:ParserParse aInputStream.- Specified by:
parsein interfaceParser<BioSequence>- Overrides:
parsein classBasicLineMapParser<String,BioSequence> - Parameters:
is- input stream- Throws:
IOException- if there is a problem while manipulating the file
-
parseOneLine
Description copied from interface:LineParserHandle the parsing of a single line from the input.- Specified by:
parseOneLinein interfaceLineParser<BioSequence>- Specified by:
parseOneLinein classBasicLineMapParser<String,BioSequence> - Parameters:
line- line to parse- Returns:
- parsed object
-
getKey
- Specified by:
getKeyin classBasicLineMapParser<String,BioSequence>
-
put
- Specified by:
putin classBasicLineMapParser<String,BioSequence>
-