Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • cli
    Member
    • Mar 2011
    • 29

    quick question about merging bam files

    Hi, all,

    I have multiple individuals from different populations. I have done BWA mapping with -R "@RG\tID:samplename\tSM:samplename\tPL:ILLUMINA". Then I transform the sam files to bam files using picard:

    for i in *.sam;
    do java -Xmx4g -Djava.io.tmpdir=/tmp \
    -jar ./SortSam.jar \
    SO=coordinate \
    INPUT=${i%.sam}.sam \
    OUTPUT=${i%.sam}.bam \
    VALIDATION_STRINGENCY=LENIENT \
    CREATE_INDEX=true;
    done

    My question is when should I merge all bam files into one. Should I do it before "marking PCR duplicates", "local realignment around indels" and "quality score recalibration", or after these steps? Thanks for help!
  • dpryan
    Devon Ryan
    • Jul 2011
    • 3478

    #2
    It'd be best to simply reference the GATK best practices. Regarding marking duplicates, you definitely want to do that before merging.

    Comment

    Latest Articles

    Collapse

    ad_right_rmr

    Collapse

    News

    Collapse

    Topics Statistics Last Post
    Started by SEQadmin2, Today, 10:09 AM
    0 responses
    9 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, Yesterday, 08:59 AM
    0 responses
    14 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 06-02-2026, 12:03 PM
    0 responses
    23 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 06-02-2026, 11:40 AM
    0 responses
    20 views
    0 reactions
    Last Post SEQadmin2  
    Working...