public class InsdcParser<S extends AbstractSequence<C>,C extends Compound> extends Object
Modifier and Type | Field and Description |
---|---|
protected Integer |
featureGlobalEnd
these variables are used to compute the global start and end of complex
features
|
protected Integer |
featureGlobalStart
these variables are used to compute the global start and end of complex
features
|
protected static Pattern |
genbankSplitPattern
Decodes a split pattern.
|
protected static String |
locationSplitPattern
designed to recursively split a location string in tokens.
|
protected static Pattern |
singleLocationPattern
parse a location.
|
Constructor and Description |
---|
InsdcParser() |
InsdcParser(DataSource dataSource) |
Modifier and Type | Method and Description |
---|---|
DataSource |
getDataSource() |
static void |
main(String[] args) |
List<AbstractLocation> |
parse(Reader reader)
Reader based version of the parse methods.
|
Location |
parse(String locationString)
Main method for parsing a location from a String instance
|
void |
setComplexFeaturesAppendMode(org.biojava.nbio.core.sequence.location.InsdcParser.complexFeaturesAppendEnum complexFeaturesAppendMode) |
protected static final Pattern singleLocationPattern
protected static final Pattern genbankSplitPattern
protected static final String locationSplitPattern
protected Integer featureGlobalStart
protected Integer featureGlobalEnd
public InsdcParser()
public InsdcParser(DataSource dataSource)
public void setComplexFeaturesAppendMode(org.biojava.nbio.core.sequence.location.InsdcParser.complexFeaturesAppendEnum complexFeaturesAppendMode)
public DataSource getDataSource()
public Location parse(String locationString) throws ParserException
locationString
- Represents a logical locationParserException
- thrown in the event of any error during parsingpublic List<AbstractLocation> parse(Reader reader) throws IOException, ParserException
reader
- The source of the data; assumes that end of the reader
stream is the end of the location string to parseIOException
- Thrown with any reader errorParserException
- Thrown with any error with parsing locationspublic static void main(String[] args)
Copyright © 2000–2016 BioJava. All rights reserved.