Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • lexi
    Junior Member
    • Jul 2013
    • 1

    how do i create an rg.txt file for input into samtools merge? / picard

    Hi,

    I have merged bam files from 6 lanes for a number of samples, and am trying to use picard MarkDuplicates. However, I get an error PicardException: Value was put into PairInfoMap more than once. Which I've learn is due to some issues with the read group information.

    I'm planning to rerun samtools merge using the -r and -h options (ie samtools merge -rh rg.txt in1.bam in2.bam in3.bam in4.bam in5.bam in6.bam out.bam) but I'm not sure what file to use for the -h option, what needs to be included etc in the required file. Could anyone please let me know where to get the file format or what information to include?

    Thanks in advance
  • bishwo
    Junior Member
    • Jan 2012
    • 8

    #2
    When merging different bam files, reads from those bam files need some way to be distinguished. It can also be done by using AddOrReplaceReadGroups from picard tools (I prefer picard tools to samtools). If you use picard tools read group headers are give in commandline. As far as i remember you need to put them in file if you use Sam tools. RG is described in SAM format specification. YOu can also find read group headers in AddOrReplaceReadGroups page.
    Last edited by bishwo; 08-29-2013, 11:19 PM.

    Comment

    • dpryan
      Devon Ryan
      • Jul 2011
      • 3478

      #3
      See also the same question on biostars.

      Comment

      Latest Articles

      Collapse

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, 06-05-2026, 10:09 AM
      0 responses
      12 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-04-2026, 08:59 AM
      0 responses
      23 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-02-2026, 12:03 PM
      0 responses
      28 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 06-02-2026, 11:40 AM
      0 responses
      22 views
      0 reactions
      Last Post SEQadmin2  
      Working...