public abstract class IntervalArgumentCollection
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXCLUDE_INTERVALS_LONG_NAME |
static java.lang.String |
EXCLUDE_INTERVALS_SHORT_NAME |
protected java.util.List<java.lang.String> |
excludeIntervalStrings
Use this argument to exclude certain parts of the genome from the analysis (like -L, but the opposite).
|
static java.lang.String |
INTERVAL_EXCLUSION_PADDING_LONG_NAME |
static java.lang.String |
INTERVAL_MERGING_RULE_LONG_NAME |
static java.lang.String |
INTERVAL_PADDING_LONG_NAME |
static java.lang.String |
INTERVAL_SET_RULE_LONG_NAME |
protected int |
intervalExclusionPadding
Use this to add padding to the intervals specified using -XL.
|
protected IntervalMergingRule |
intervalMergingRule
By default, the program merges abutting intervals (i.e.
|
protected int |
intervalPadding
Use this to add padding to the intervals specified using -L.
|
protected IntervalSetRule |
intervalSetRule
By default, the program will take the UNION of all intervals specified using -L and/or -XL.
|
protected TraversalParameters |
traversalParameters
Full parameters for traversal, including our parsed intervals and a flag indicating whether unmapped records
should be returned.
|
Constructor and Description |
---|
IntervalArgumentCollection() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
addToIntervalStrings(java.lang.String newInterval)
Add an extra interval string to the intervals to include.
|
int |
getIntervalExclusionPadding()
Get the interval exclusion padding specified on the command line.
|
IntervalMergingRule |
getIntervalMergingRule()
Get the interval merging rule specified on the command line.
|
int |
getIntervalPadding()
Get the interval padding specified on the command line.
|
java.util.List<SimpleInterval> |
getIntervals(htsjdk.samtools.SAMSequenceDictionary sequenceDict)
Get the intervals specified on the command line.
|
IntervalSetRule |
getIntervalSetRule()
Get the interval set rule specified on the command line.
|
protected abstract java.util.List<java.lang.String> |
getIntervalStrings()
Subclasses must provide a -L argument and override this to return the results of that argument.
|
java.util.List<SimpleInterval> |
getIntervalsWithoutMerging(htsjdk.samtools.SAMSequenceDictionary sequenceDict)
Returns the full set of traversal intervals specified on the command line, including parsed intervals without
merging intervals specified by the user on the command line.
|
TraversalParameters |
getTraversalParameters(htsjdk.samtools.SAMSequenceDictionary sequenceDict)
Returns the full set of traversal parameters specified on the command line, including the parsed intervals
and a flag indicating whether unmapped records were requested.
|
boolean |
intervalsSpecified()
Have any intervals been specified for inclusion or exclusion
|
public static final java.lang.String EXCLUDE_INTERVALS_LONG_NAME
public static final java.lang.String EXCLUDE_INTERVALS_SHORT_NAME
public static final java.lang.String INTERVAL_SET_RULE_LONG_NAME
public static final java.lang.String INTERVAL_PADDING_LONG_NAME
public static final java.lang.String INTERVAL_EXCLUSION_PADDING_LONG_NAME
public static final java.lang.String INTERVAL_MERGING_RULE_LONG_NAME
@Argument(fullName="exclude-intervals", shortName="XL", doc="One or more genomic intervals to exclude from processing", suppressFileExpansion=true, optional=true, common=true) protected final java.util.List<java.lang.String> excludeIntervalStrings
@Argument(fullName="interval-set-rule", shortName="isr", doc="Set merging approach to use for combining interval inputs", common=true) protected IntervalSetRule intervalSetRule
@Argument(fullName="interval-padding", shortName="ip", doc="Amount of padding (in bp) to add to each interval you are including.", common=true) protected int intervalPadding
@Argument(fullName="interval-exclusion-padding", shortName="ixp", doc="Amount of padding (in bp) to add to each interval you are excluding.", common=true) protected int intervalExclusionPadding
@Argument(fullName="interval-merging-rule", shortName="imr", doc="Interval merging rule for abutting intervals", optional=true) protected IntervalMergingRule intervalMergingRule
protected TraversalParameters traversalParameters
protected abstract java.util.List<java.lang.String> getIntervalStrings()
protected abstract void addToIntervalStrings(java.lang.String newInterval)
public java.util.List<SimpleInterval> getIntervals(htsjdk.samtools.SAMSequenceDictionary sequenceDict)
sequenceDict
- used to validate intervalspublic IntervalSetRule getIntervalSetRule()
public int getIntervalPadding()
public int getIntervalExclusionPadding()
public IntervalMergingRule getIntervalMergingRule()
public java.util.List<SimpleInterval> getIntervalsWithoutMerging(htsjdk.samtools.SAMSequenceDictionary sequenceDict)
sequenceDict
- used to validate intervalspublic TraversalParameters getTraversalParameters(htsjdk.samtools.SAMSequenceDictionary sequenceDict)
sequenceDict
- used to validate intervalspublic boolean intervalsSpecified()