picard addorreplacereadgroups output issue
0
0
Entering edit mode
6.0 years ago
Peter Chung ▴ 210

I have a 189GB bam file and I need to add a readgroup in order to do downstream steps, so I used picard AddOrReplaceReadGroups to do it. Below is my command:

java -Xmx8g -jar $PICARD AddOrReplaceReadGroups \  
I=${name}.bam \
O=${name}.addRG.bam \
SORT_ORDER=coordinate \
RGID=${name} \
RGLB=lib1 \
RGPL=illumina \
RGPU=unit1 \
RGSM=${GP}.${name}

However, the output is only 14GB, I think there is sometimes wrong, but it didn't generate any error. Anyone can give me advice on that, thanks.

gatk picard readgroups sequencing java • 1.7k views
ADD COMMENT
1
Entering edit mode

Hello Peter Chung ,

is there enough space left on your device? Do you have enough RAM? You could also try samtools addreplacerg:

$ samtools addreplacerg -r 'ID:${name}' -r 'LB:lib1' -r 'PL:illumina' -r 'PU:unit1' -r 'SM:${GP}.${name}' -o ${name}.addRG.bam ${name}.bam

fin swimmer

ADD REPLY
0
Entering edit mode

Changed the label to "QUESTION" from "TOOL". The label TOOL is used to announce new tools to public.

ADD REPLY
0
Entering edit mode

I think there is sometimes wrong, but it didn't generate any error.

what were the last logs on the screen ?

ADD REPLY
0
Entering edit mode

As you may already know, it's also possible (quicker and easier) to add read groups during the alignment step. That's something for your next analysis, then.

ADD REPLY

Login before adding your answer.

Traffic: 2960 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6