public class BaitDesigner extends CommandLineProgram
Modifier and Type | Class and Description |
---|---|
static class |
BaitDesigner.DesignStrategy
Set of possible design strategies for bait design.
|
Modifier and Type | Field and Description |
---|---|
int |
BAIT_OFFSET |
int |
BAIT_SIZE |
java.lang.String |
DESIGN_NAME |
boolean |
DESIGN_ON_TARGET_STRAND |
BaitDesigner.DesignStrategy |
DESIGN_STRATEGY |
boolean |
FILL_POOLS |
java.lang.String |
LEFT_PRIMER |
boolean |
MERGE_NEARBY_TARGETS |
int |
MINIMUM_BAITS_PER_TARGET |
boolean |
OUTPUT_AGILENT_FILES |
java.io.File |
OUTPUT_DIRECTORY |
int |
PADDING |
int |
POOL_SIZE |
java.io.File |
REFERENCE_SEQUENCE |
int |
REPEAT_TOLERANCE |
java.lang.String |
RIGHT_PRIMER |
java.io.File |
TARGETS |
COMPRESSION_LEVEL, CREATE_INDEX, CREATE_MD5_FILE, GA4GH_CLIENT_SECRETS, MAX_RECORDS_IN_RAM, QUIET, TMP_DIR, VALIDATION_STRINGENCY, VERBOSITY
Constructor and Description |
---|
BaitDesigner() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String[] |
customCommandLineValidation()
Put any custom command-line validation in an override of this method.
|
protected int |
doWork()
Main method that coordinates the checking of inputs, designing of baits and then
the writing out of all necessary files.
|
static int |
getMaskedBaseCount(byte[] bases,
int from,
int until)
Returns the total of soft or hard masked bases in the interval of bases.
|
static void |
main(java.lang.String[] args)
Stock main method.
|
getCommandLine, getCommandLineParser, getDefaultHeaders, getMetricsFile, getNestedOptions, getNestedOptionsForHelp, getStandardUsagePreamble, getVersion, instanceMain, instanceMainWithExit, parseArgs, setDefaultHeaders
@Option(shortName="T", doc="The file with design parameters and targets") public java.io.File TARGETS
@Option(shortName="R", doc="The reference sequence fasta file") public java.io.File REFERENCE_SEQUENCE
@Option(doc="The left amplification primer to prepend to all baits for synthesis") public java.lang.String LEFT_PRIMER
@Option(doc="The right amplification primer to prepend to all baits for synthesis") public java.lang.String RIGHT_PRIMER
@Option(doc="The design strategy to use to layout baits across each target") public BaitDesigner.DesignStrategy DESIGN_STRATEGY
@Option(doc="The minimum number of baits to design per target.") public int MINIMUM_BAITS_PER_TARGET
@Option(doc="The desired offset between the start of one bait and the start of another bait for the same target.") public int BAIT_OFFSET
@Option(doc="Pad the input targets by this amount when designing baits. Padding is applied on both sides in this amount.") public int PADDING
@Option(doc="Baits that have more than REPEAT_TOLERANCE soft or hard masked bases will not be allowed") public int REPEAT_TOLERANCE
@Option(doc="The size of pools or arrays for synthesis. If no pool files are desired, can be set to 0.") public int POOL_SIZE
@Option(doc="If true, fill up the pools with alternating fwd and rc copies of all baits. Equal copies of all baits will always be maintained") public boolean FILL_POOLS
@Option(doc="If true design baits on the strand of the target feature, if false always design on the + strand of the genome.") public boolean DESIGN_ON_TARGET_STRAND
@Option(doc="If true merge targets that are \'close enough\' that designing against a merged target would be more efficient.") public boolean MERGE_NEARBY_TARGETS
@Option(doc="If true also output .design.txt files per pool with one line per bait sequence") public boolean OUTPUT_AGILENT_FILES
public static int getMaskedBaseCount(byte[] bases, int from, int until)
public static void main(java.lang.String[] args)
protected java.lang.String[] customCommandLineValidation()
CommandLineProgram
customCommandLineValidation
in class CommandLineProgram
protected int doWork()
doWork
in class CommandLineProgram