Class FastaGeneWriter
java.lang.Object
org.biojava.nbio.core.sequence.io.FastaGeneWriter
A Gene sequence has a Positive or Negative Strand where we want to write out to a stream the 5 to 3 prime version.
It is also an option to write out the gene sequence where the exon regions are upper case
6/22/2010 FastaWriter needs to be sequence aware to handle writing out a GeneSequence which is negative Strand with the proper sequence
- Author:
- Scooter Willis
-
Constructor Summary
ConstructorDescriptionFastaGeneWriter
(OutputStream os, Collection<GeneSequence> sequences, FastaHeaderFormatInterface<GeneSequence, NucleotideCompound> headerFormat, boolean showExonUppercase) FastaGeneWriter
(OutputStream os, Collection<GeneSequence> sequences, FastaHeaderFormatInterface<GeneSequence, NucleotideCompound> headerFormat, boolean showExonUppercase, int lineLength) -
Method Summary
Modifier and TypeMethodDescriptionint
static void
void
process()
void
setLineLength
(int lineLength)
-
Constructor Details
-
FastaGeneWriter
public FastaGeneWriter(OutputStream os, Collection<GeneSequence> sequences, FastaHeaderFormatInterface<GeneSequence, NucleotideCompound> headerFormat, boolean showExonUppercase) - Parameters:
os
-sequences
-headerFormat
-showExonUppercase
-
-
FastaGeneWriter
public FastaGeneWriter(OutputStream os, Collection<GeneSequence> sequences, FastaHeaderFormatInterface<GeneSequence, NucleotideCompound> headerFormat, boolean showExonUppercase, int lineLength) - Parameters:
os
-sequences
-headerFormat
-showExonUppercase
-lineLength
-
-
-
Method Details
-
process
- Throws:
Exception
-
getLineLength
public int getLineLength()- Returns:
- the lineLength
-
setLineLength
public void setLineLength(int lineLength) - Parameters:
lineLength
- the lineLength to set
-
main
-