Heads up:
We’re moving the GATK website, docs and forum to a new platform. Read the full story and breakdown of key changes on this blog.
If you happen to see a question you know the answer to, please do chime in and help your fellow community members. We encourage our fourm members to be more involved, jump in and help out your fellow researchers with their questions. GATK forum is a community forum and helping each other with using GATK tools and research is the cornerstone of our success as a genomics research community.We appreciate your help!

Test-drive the GATK tools and Best Practices pipelines on Terra

Check out this blog post to learn how you can get started with GATK and try out the pipelines in preconfigured workspaces (with a user-friendly interface!) without having to install anything.
We will be out of the office for a Broad Institute event from Dec 10th to Dec 11th 2019. We will be back to monitor the GATK forum on Dec 12th 2019. In the meantime we encourage you to help out other community members with their queries.
Thank you for your patience!

what's difference between a read marked by "sam FLAG 1024" and marked by " PG:markduplicates" ?


    1 . when I  run the following command :
         "samtools view -h -f 1024  bwa.raw.bam  " ,  then can not get any reads , so I think BWA do not markduplicates to use" FLAG 1024".  
    2   after I  deal with  bwa.raw.bam with using picard-markduplicates , 
          "samtools view -h -f 1024  baw.raw.markdup.bam  "   , I got some reads with the below marks : 
               FLAG : 1187    PG:Z:MarkDuplicates
     SO  i got a question : 
                I know  the option "-f  1024"  is just for optical or pcr dups , but  I do not know which software modify "FLAG"  to add "1024"  ??
               according to 1 , I think BWA do not do that becasue  no reads found . 
               however ,according to 2 , I got reads markd by "FLAG 1024", so I guess   when I do  the picard-markduplicates step , picard will modify sam flag  ?? ,not just add "PG:Z:MarkDuplicates" .

Best Answer

  • YingLiuYingLiu China
    Accepted Answer

    @YingLiu said:

    @YingLiu said:
    maybe the FLAG value "1024" is added by samtools ??

    I made some tests .
    I feel Picard-Markduplicates will correct sam FLAG value to plus 1024 if judge this read as duplicates read , and will insert a mark
    "PG:Z:Markduplicates" for every read .


Sign In or Register to comment.