Package org.biojavax.bio.seq.io
Class FastaHeader
java.lang.Object
org.biojavax.bio.seq.io.FastaHeader
This class is used by
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.- Since:
- 1.6
- Author:
- Mark Schreiber
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
boolean
boolean
boolean
boolean
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.
-
Constructor Details
-
FastaHeader
public FastaHeader()
-
-
Method Details
-
isShowIdentifier
-
setShowIdentifier
-
isShowNamespace
-
setShowNamespace
-
isShowAccession
-
setShowAccession
-
isShowVersion
-
setShowVersion
Determines if the version number of a sequence should be displayed. If there is no accession this may not make much sense.- Parameters:
showVersion
-
-
isShowName
-
setShowName
-
isShowDescription
-
setShowDescription
-