public class CreateSequenceDictionary extends CommandLineProgram
Modifier and Type | Field and Description |
---|---|
java.lang.String |
GENOME_ASSEMBLY |
int |
NUM_SEQUENCES |
java.io.File |
OUTPUT |
java.io.File |
REFERENCE |
java.lang.String |
SPECIES |
boolean |
TRUNCATE_NAMES_AT_WHITESPACE |
java.lang.String |
URI |
COMPRESSION_LEVEL, CREATE_INDEX, CREATE_MD5_FILE, GA4GH_CLIENT_SECRETS, MAX_RECORDS_IN_RAM, QUIET, REFERENCE_SEQUENCE, TMP_DIR, VALIDATION_STRINGENCY, VERBOSITY
Constructor and Description |
---|
CreateSequenceDictionary() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String[] |
customCommandLineValidation()
Use reference filename to create URI to go into header if URI was not passed on cmd line.
|
protected int |
doWork()
Do the work after command line has been parsed.
|
static void |
main(java.lang.String[] argv) |
htsjdk.samtools.SAMSequenceDictionary |
makeSequenceDictionary(java.io.File referenceFile)
Read all the sequences from the given reference file, and convert into SAMSequenceRecords
|
getCommandLine, getCommandLineParser, getDefaultHeaders, getMetricsFile, getNestedOptions, getNestedOptionsForHelp, getStandardUsagePreamble, getVersion, instanceMain, instanceMainWithExit, parseArgs, setDefaultHeaders
@Option(doc="Input reference fasta or fasta.gz", shortName="R") public java.io.File REFERENCE
@Option(doc="Output SAM or BAM file containing only the sequence dictionary", shortName="O") public java.io.File OUTPUT
@Option(doc="Put into AS field of sequence dictionary entry if supplied", optional=true) public java.lang.String GENOME_ASSEMBLY
@Option(doc="Put into UR field of sequence dictionary entry. If not supplied, input reference file is used", optional=true) public java.lang.String URI
@Option(doc="Put into SP field of sequence dictionary entry", optional=true) public java.lang.String SPECIES
@Option(doc="Make sequence name the first word from the > line in the fasta file. By default the entire contents of the > line is used, excluding leading and trailing whitespace.") public boolean TRUNCATE_NAMES_AT_WHITESPACE
public static void main(java.lang.String[] argv)
protected java.lang.String[] customCommandLineValidation()
customCommandLineValidation
in class CommandLineProgram
protected int doWork()
doWork
in class CommandLineProgram
public htsjdk.samtools.SAMSequenceDictionary makeSequenceDictionary(java.io.File referenceFile)
referenceFile
- fasta or fasta.gz