Replace @RG group by the one of another BAM
1
0
Entering edit mode
5.1 years ago
da.de • 0

Hi, I want to replace the @RG info from one bam file (output.bam) by the @RG info from another (input.bam) creating a new.bam I tried it as follows:

samtools view -H input.bam | grep '@RG' > RG_header

samtools addreplacerg -r RG_header -o new.bam output.bam

I get the following message:

[parse_args] The supplied RG line lacks an ID tag.

RG_header looks as follows:

@RG ID:CAUPUANXXnnn PU:170913_7001253F  PL:ILLUMINA LB:55426    SM:55426

Thanks for your help.

Best, Dagmar

samtools addreplacerg • 1.9k views
ADD COMMENT
1
Entering edit mode
5.1 years ago

-r expects a string, not a file.

ADD COMMENT

Login before adding your answer.

Traffic: 2410 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