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, log
Fields inherited from interface ubic.gemma.core.loader.util.parser.LineParser
MIN_PARSED_LINES_FOR_UPDATE, PARSE_ALERT_TIME_FREQUENCY_MS
Fields inherited from interface ubic.gemma.core.loader.util.parser.Parser
PARSE_ALERT_FREQUENCY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
containsKey
(String key) protected String
getKey
(BioSequence newItem) void
parse
(InputStream is) Parse aInputStream
.parseOneLine
(String line) Handle the parsing of a single line from the input.protected void
put
(String key, BioSequence value) Methods inherited from class ubic.gemma.core.loader.util.parser.BasicLineMapParser
parse, parse
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ubic.gemma.core.loader.util.parser.Parser
getUniqueResult
-
Constructor Details
-
ProbeSequenceParser
public ProbeSequenceParser()
-
-
Method Details
-
containsKey
- Specified by:
containsKey
in classBasicLineMapParser<String,
BioSequence>
-
get
- Specified by:
get
in classBasicLineMapParser<String,
BioSequence>
-
getKeySet
- Specified by:
getKeySet
in classBasicLineMapParser<String,
BioSequence>
-
getResults
- Specified by:
getResults
in interfaceParser<BioSequence>
- Specified by:
getResults
in classBasicLineMapParser<String,
BioSequence> - Returns:
- the results of the parse.
-
parse
Description copied from interface:Parser
Parse aInputStream
.- Specified by:
parse
in interfaceParser<BioSequence>
- Overrides:
parse
in classBasicLineMapParser<String,
BioSequence> - Parameters:
is
- input stream- Throws:
IOException
- if there is a problem while manipulating the file
-
parseOneLine
Description copied from interface:LineParser
Handle the parsing of a single line from the input.- Specified by:
parseOneLine
in interfaceLineParser<BioSequence>
- Specified by:
parseOneLine
in classBasicLineMapParser<String,
BioSequence> - Parameters:
line
- line to parse- Returns:
- parsed object
-
getKey
- Specified by:
getKey
in classBasicLineMapParser<String,
BioSequence>
-
put
- Specified by:
put
in classBasicLineMapParser<String,
BioSequence>
-