Entering edit mode
9.4 years ago
quachtina96
▴
40
Hi, I am trying to run Picard's AddOrReplaceReadGroups on a bam file called exome_mtExtractremap.csort.bam
(code below). the error messages states ERROR: Option 'RGPL' is required.
, however I have included RGPL, so I don't understand why it is occuering.
I've tried RGLB=ILLUMINA
, RGLB="ILLUMINA"
, and RGLB=illumina
. What am I doing wrong?
i=exome_mtExtractremap.csort.bam
java -Xmx2g \
-Djava.io.tmpdir=`pwd`/tmp \
-jar /opt/applications/picard/current/AddOrReplaceReadGroups.jar \
INPUT="${i}" \
OUTPUT="${i}.rg.bam" \
SORT_ORDER=coordinate \
RGLB="$(echo $OUTPUT | sed 's/_mtExtractremap.csort.bam.rg.bam//')" \
RGPL="illumina" \
RGPU="L002" \
RGSM="${RGLB}" \
RGID="${RGLB}_${RGPU}";
This solved a problem for me. GATK was reporting "Invalid Argument" for my entry after
--RGPU <platform.unit>
. It turned out I had removed a space in the line before:bad:
good: