public class GenbankLocationParser
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static RichLocation |
parseLocation(Namespace featureNS,
java.lang.String featureAccession,
java.lang.String locationString)
Parses a location.
|
static java.lang.String |
writeLocation(RichLocation l)
Writes a location in Genbank format.
|
public static RichLocation parseLocation(Namespace featureNS, java.lang.String featureAccession, java.lang.String locationString) throws ParseException
featureNS
- the namespace of the feature this location lives on.featureAccession
- the accession of the sequence of the feature this location lives on.locationString
- the GenBank location string.ParseException
- if the parsing failed.public static java.lang.String writeLocation(RichLocation l)
l
- the location to write