Class GenericFastaHeaderFormat<S extends AbstractSequence<?>,C extends Compound>
- java.lang.Object
-
- org.biojava.nbio.core.sequence.io.GenericFastaHeaderFormat<S,C>
-
- All Implemented Interfaces:
FastaHeaderFormatInterface<S,C>
public class GenericFastaHeaderFormat<S extends AbstractSequence<?>,C extends Compound> extends java.lang.Object implements FastaHeaderFormatInterface<S,C>
We store the original header if the sequence is parsed from a fasta file and will use that exact sequence if we write out the sequences to a fasta file. If we don't have an orginal header then use the accession id. This allows the implementation by the user to write out complex header with id notes etc without rewriting the fasta writer- Author:
- Scooter Willis
-
-
Constructor Summary
Constructors Constructor Description GenericFastaHeaderFormat()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getHeader(S sequence)
-
-
-
Method Detail
-
getHeader
public java.lang.String getHeader(S sequence)
- Specified by:
getHeader
in interfaceFastaHeaderFormatInterface<S extends AbstractSequence<?>,C extends Compound>
- Returns:
-
-