public class GenbankWriterHelper extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CIRCULAR_DNA |
static String |
LINEAR_DNA |
Constructor and Description |
---|
GenbankWriterHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
writeNucleotideSequence(File file,
Collection<DNASequence> dnaSequences)
Write a collection of NucleotideSequences to a file
|
static void |
writeNucleotideSequence(OutputStream outputStream,
Collection<DNASequence> dnaSequences)
Write a collection of NucleotideSequences to a file
|
static void |
writeNucleotideSequence(OutputStream outputStream,
Collection<DNASequence> dnaSequences,
String seqType)
Write a collection of NucleotideSequences to a file
|
static void |
writeProteinSequence(File file,
Collection<ProteinSequence> proteinSequences)
Write collection of protein sequences to a file
|
static void |
writeProteinSequence(OutputStream outputStream,
Collection<ProteinSequence> proteinSequences)
Write collection of protein sequences to a stream
|
static void |
writeSequence(File file,
Sequence<?> sequence)
Write a sequence to a file
|
static void |
writeSequence(OutputStream outputStream,
Sequence<?> sequence)
Write a sequence to OutputStream
|
static void |
writeSequences(OutputStream outputStream,
Collection<Sequence<?>> sequences)
Method which will write your given Sequences to the specified
OutputStream . |
public static final String LINEAR_DNA
public static final String CIRCULAR_DNA
public GenbankWriterHelper()
public static void writeProteinSequence(File file, Collection<ProteinSequence> proteinSequences) throws Exception
file
- proteinSequences
- Exception
public static void writeProteinSequence(OutputStream outputStream, Collection<ProteinSequence> proteinSequences) throws Exception
outputStream
- proteinSequences
- Exception
public static void writeNucleotideSequence(File file, Collection<DNASequence> dnaSequences) throws Exception
file
- dnaSequences
- Exception
public static void writeNucleotideSequence(OutputStream outputStream, Collection<DNASequence> dnaSequences) throws Exception
outputStream
- dnaSequences
- Exception
public static void writeNucleotideSequence(OutputStream outputStream, Collection<DNASequence> dnaSequences, String seqType) throws Exception
outputStream
- dnaSequences
- seqType
- Exception
public static void writeSequence(File file, Sequence<?> sequence) throws Exception
file
- sequence
- Exception
public static void writeSequence(OutputStream outputStream, Sequence<?> sequence) throws Exception
outputStream
- sequence
- Exception
public static void writeSequences(OutputStream outputStream, Collection<Sequence<?>> sequences) throws Exception
OutputStream
. This is a very generic method which writes just the
AccessionID of the Sequence as the FASTA header.outputStream
- Stream to write to; can be System.outsequences
- The sequences to write outException
- Thrown normally thanks to IO problemsCopyright © 2000–2019 BioJava. All rights reserved.