public final class SplitFasta extends AbstractSplit
AbstractSplit.CountingWriter| Modifier and Type | Field and Description |
|---|---|
(package private) static String |
DEFAULT_ALPHABET |
(package private) static int |
DEFAULT_LINE_WIDTH |
(package private) static String |
DESCRIPTION_LINE |
bytes, inputPath, records| Constructor and Description |
|---|
SplitFasta(File inputFile,
Long bytes,
Long records,
String prefix,
int leftPad,
String suffix,
int lineWidth)
Split FASTA files.
|
SplitFasta(File inputFile,
Long bytes,
Long records,
String prefix,
String suffix,
int lineWidth)
Split FASTA files.
|
SplitFasta(File inputFile,
String alphabet,
Long bytes,
Long records,
String prefix,
int leftPad,
String suffix,
int lineWidth)
Split FASTA files.
|
SplitFasta(Path inputPath,
Long bytes,
Long records,
String prefix,
int leftPad,
String suffix,
int lineWidth)
Split FASTA files.
|
SplitFasta(Path inputPath,
Long bytes,
Long records,
String prefix,
String suffix,
int lineWidth)
Split FASTA files.
|
SplitFasta(Path inputPath,
String alphabet,
Long bytes,
Long records,
String prefix,
int leftPad,
String suffix,
int lineWidth)
Split FASTA files.
|
| Modifier and Type | Method and Description |
|---|---|
Integer |
call() |
(package private) static String |
describeSequence(org.biojava.bio.seq.Sequence sequence) |
(package private) static String |
getBaseName(Path path) |
(package private) static String |
getFileExtensions(Path path) |
(package private) boolean |
isProteinAlphabet() |
static void |
main(String[] args)
Main.
|
(package private) static void |
writeSequence(org.biojava.bio.seq.Sequence sequence,
int lineWidth,
PrintWriter writer) |
closeWriters, createCountingWriter, getFileExtension, getNameWithoutExtension, leftPad, toBytesstatic final String DEFAULT_ALPHABET
static final int DEFAULT_LINE_WIDTH
static final String DESCRIPTION_LINE
public SplitFasta(File inputFile, Long bytes, Long records, String prefix, String suffix, int lineWidth)
inputFile - input file, if anybytes - split the input file at next record after each n bytes, if anyrecords - split the input file after each n records, if anyprefix - output file prefix, must not be nullsuffix - output file suffix, must not be nulllineWidth - line widthpublic SplitFasta(Path inputPath, Long bytes, Long records, String prefix, String suffix, int lineWidth)
inputPath - input path, if anybytes - split the input path at next record after each n bytes, if anyrecords - split the input path after each n records, if anyprefix - output file prefix, must not be nullsuffix - output file suffix, must not be nulllineWidth - line widthpublic SplitFasta(File inputFile, Long bytes, Long records, String prefix, int leftPad, String suffix, int lineWidth)
inputFile - input file, if anybytes - split the input file at next record after each n bytes, if anyrecords - split the input file after each n records, if anyprefix - output file prefix, must not be nullleftPad - left pad split index in output file namesuffix - output file suffix, must not be nulllineWidth - line widthpublic SplitFasta(Path inputPath, Long bytes, Long records, String prefix, int leftPad, String suffix, int lineWidth)
inputPath - input path, if anybytes - split the input path at next record after each n bytes, if anyrecords - split the input path after each n records, if anyprefix - output file prefix, must not be nullleftPad - left pad split index in output file namesuffix - output file suffix, must not be nulllineWidth - line widthpublic SplitFasta(File inputFile, String alphabet, Long bytes, Long records, String prefix, int leftPad, String suffix, int lineWidth)
inputFile - input file, if anyalphabet - input file alphabet { dna, protein }, if anybytes - split the input file at next record after each n bytes, if anyrecords - split the input file after each n records, if anyprefix - output file prefix, must not be nullleftPad - left pad split index in output file namesuffix - output file suffix, must not be nulllineWidth - line widthpublic SplitFasta(Path inputPath, String alphabet, Long bytes, Long records, String prefix, int leftPad, String suffix, int lineWidth)
inputPath - input path, if anyalphabet - input path alphabet { dna, protein }, if anybytes - split the input path at next record after each n bytes, if anyrecords - split the input path after each n records, if anyprefix - output file prefix, must not be nullleftPad - left pad split index in output file namesuffix - output file suffix, must not be nulllineWidth - line widthboolean isProteinAlphabet()
static String describeSequence(org.biojava.bio.seq.Sequence sequence)
static void writeSequence(org.biojava.bio.seq.Sequence sequence,
int lineWidth,
PrintWriter writer)
public static void main(String[] args)
args - command line argsCopyright (c) 2013-2023 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).