public class GenbankFormatter extends AbstractFormatter
DEFAULT_NAMESPACE| Constructor and Description |
|---|
GenbankFormatter(String name)
Constructor using only the name.
|
GenbankFormatter(String name,
String accessionNumber,
int version,
double seqVersion)
Constructor using the complete header fields.
|
| Modifier and Type | Method and Description |
|---|---|
void |
format(Sequence sequence,
OutputStream outputStream)
Interface method to take a
Sequence object and output the formatted file to the
OutputStream. |
protected org.biojavax.RichAnnotation |
getAnnotations(SequenceFeature sequenceFeature)
Convert
SequenceFeature into a RichAnnotation. |
boolean |
getCircular() |
protected String |
getDefaultFeatureSource()
Return the default feature source for a Genbank file.
|
String |
getDescription() |
String |
getDivision() |
protected String |
getFeatureType(SequenceFeature sequenceFeature)
Retrieve feature type from given
SequenceFeature. |
String |
getIdentifier() |
protected org.biojavax.bio.seq.RichLocation.Strand |
getStrand(SequenceFeature sequenceFeature)
Get the strand of the
SequenceFeature feature. |
void |
setCircular(boolean value) |
void |
setDescription(String description) |
void |
setDivision(String division) |
void |
setIdentifier(String identifier) |
getNamespacepublic GenbankFormatter(String name)
name - public boolean getCircular()
public void setCircular(boolean value)
public String getDescription()
public void setDescription(String description)
public String getDivision()
public void setDivision(String division)
public String getIdentifier()
public void setIdentifier(String identifier)
public void format(Sequence sequence, OutputStream outputStream) throws FormatterException, IOException
IFormatterSequence object and output the formatted file to the
OutputStream.format in interface IFormatterformat in class AbstractFormatterFormatterExceptionIOExceptionprotected org.biojavax.bio.seq.RichLocation.Strand getStrand(SequenceFeature sequenceFeature)
SequenceFeature feature.sequenceFeature - protected org.biojavax.RichAnnotation getAnnotations(SequenceFeature sequenceFeature)
SequenceFeature into a RichAnnotation.sequenceFeature - protected String getFeatureType(SequenceFeature sequenceFeature)
SequenceFeature. Populate it with "misc_feature" if
undefined.sequenceFeature - protected String getDefaultFeatureSource()
Copyright © 2017. All rights reserved.