public class InsdcParser<S extends AbstractSequence<C>,C extends Compound> extends Object
| Modifier and Type | Field and Description | 
|---|---|
| protected Integer | featureGlobalEndthese variables are used to compute the global start and end of complex
 features | 
| protected Integer | featureGlobalStartthese variables are used to compute the global start and end of complex
 features | 
| protected static Pattern | genbankSplitPatternDecodes a split pattern. | 
| protected static String | locationSplitPatterndesigned to recursively split a location string in tokens. | 
| protected static Pattern | singleLocationPatternparse a location. if group(1) is null than the feature is on the positive
 strand, group(2) start position, group(3) end position. | 
| 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 locationsCopyright © 2000–2018 BioJava. All rights reserved.