public class FastaHeader extends Object
FastaFormat
to determine which fields are in the
fasta header. By default they all are except for the sequence name. This is for
compliance with fasta files that come from Genbank where the name is derived
from the accession number so need not be repeated.
The class can be used to customise
what appears. Eg if you only want the accession set everything else false.
Note that if fields in the RichSequence
being parsed by the
FastaFormat
object then they may not be in the header even if
they are specified in this class.Constructor and Description |
---|
FastaHeader() |
Modifier and Type | Method and Description |
---|---|
boolean |
isShowAccession() |
boolean |
isShowDescription() |
boolean |
isShowIdentifier() |
boolean |
isShowName() |
boolean |
isShowNamespace() |
boolean |
isShowVersion() |
void |
setShowAccession(boolean showAccession) |
void |
setShowDescription(boolean showDescription) |
void |
setShowIdentifier(boolean showIdentifier) |
void |
setShowName(boolean showName) |
void |
setShowNamespace(boolean showNamespace) |
void |
setShowVersion(boolean showVersion)
Determines if the version number of a sequence should be displayed.
|
public FastaHeader()
public boolean isShowIdentifier()
public void setShowIdentifier(boolean showIdentifier)
public boolean isShowNamespace()
public void setShowNamespace(boolean showNamespace)
public boolean isShowAccession()
public void setShowAccession(boolean showAccession)
public boolean isShowVersion()
public void setShowVersion(boolean showVersion)
showVersion
- public boolean isShowName()
public void setShowName(boolean showName)
public boolean isShowDescription()
public void setShowDescription(boolean showDescription)
Copyright © 2014 BioJava. All rights reserved.