I am trying to create a GATK g CNV pipeline and I need to make shards before running the GermlineCNVCaller
therefore, I believe I need to use SplitIntervals
.
I have the following predefined variables:
singularity_image
is the path to the GATK sif filebam_file
is a bam file from a defined bam directoryreference
is a path to a .fa filetargets_interval_list
is a interval list created by Picard (ending with .interval_list)NUM_BINS
is a manually preset value from 100 to 200.
singularity exec $singularity_image /gatk/gatk --java-options -Xms8000m \
SplitIntervals \
-I ${bam_file} \
-R ${reference} \
-L ${targets_interval_list} \
--scatter-count ${NUM_BINS} \
-O ${output_dir}/Interval_list_${bam_filename}_.shard_\%${NUM_BINS}\%_\%{shard_index}\%.interval_list
I have tried change the specifications under SplitIntervals
but for whatever reason I keep getting the following error
***********************************************************************
A USER ERROR has occurred: but no positional argument is defined for this tool.
***********************************************************************
Why is this error occurring?
The documentation I am using is here: https://gatk.broadinstitute.org/hc/en-us/articles/360036899592-SplitIntervals
\%
in your output file name? Does it work if you try a simple output file name (e.g.-O foo.list
)? $\endgroup$-O
part of the command I will work on it from here and try with perhaps just one file. $\endgroup$