We've moved!
This site is now read-only. You can find our new documentation site and support forum for posting questions here.
Be sure to read our welcome blog!

AddOrReplaceReadGroups error even when all details are provided

[[email protected] S288C]$ java -jar $base_path/softwares/picard.jar AddOrReplaceReadGroups I=sortsam/$i_aligned_sorted_temp.bam O=sortsam/$i_aligned_sorted.bam RGID=$i RGLB=lib RGPL=illumina RGPU=unit1 RGSM=$i
INFO 2019-09-16 12:53:36 AddOrReplaceReadGroups

********** NOTE: Picard's command line syntax is changing.

********** For more information, please see:
********** https://github.com/broadinstitute/picard/wiki/Command-Line-Syntax-Transition-For-Users-(Pre-Transition)

********** The command line looks like this in the new syntax:

********** AddOrReplaceReadGroups -I sortsam/_aligned_sorted_temp.bam -O sortsam/_aligned_sorted.bam -RGID -RGLB lib -RGPL illumina -RGPU unit1 -RGSM

ERROR: Option 'RGLB' is required.

USAGE: AddOrReplaceReadGroups [options]

Documentation: http://broadinstitute.github.io/picard/command-line-overview.html#AddOrReplaceReadGroups

Assigns all the reads in a file to a single new read-group.

This tool accepts INPUT BAM and SAM files or URLs from the Global Alliance for Genomics and Health (GA4GH)

Usage example:

java -jar picard.jar AddOrReplaceReadGroups \
I=input.bam \
O=output.bam \
RGID=4 \
RGLB=lib1 \
RGPU=unit1 \

I have already added RGLB but still its showing error that RGLB is required


Sign In or Register to comment.