Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bioinfosm
    Senior Member
    • Jan 2008
    • 483

    #1

    Uniquely mapped short reads (MAQ)

    I searched for this discussion but could not find one.

    I would like to use only uniquely mapped reads for SNP calling, etc in MAQ. By uniquely mapped I mean, the top hit/best alignment is unique and no other position on reference maps with equally good score. I would want to use only these reads to do SNP calling and further analysis.. I believe its doable using MAQ, but not sure.

    Next, I would like to keep track of what reads were dumped because of non-unique mapping, apart from the regular dumped reads found using MAQ's -u option.
    --
    bioinfosm
  • frozenlyse
    Senior Member
    • Sep 2008
    • 135

    #2
    if i recall correctly maq by default reports non-unique reads; it just gives them a mapping quality of 0

    Comment

    • bioinfosm
      Senior Member
      • Jan 2008
      • 483

      #3
      True, is there a direct way to use just the uniquely mapping reads in order to do SNP calling..
      --
      bioinfosm

      Comment

      • digitonin
        Junior Member
        • Mar 2009
        • 6

        #4
        Finding unique reads

        Has anyone been able to work around this? Essentially, I would like MAQ to assemble unique reads only. If it is not able to do this (which I think is an easy modification), how do I view the mapping qualities? I would probably just throw those away with scores of 0 and map the rest again from start.

        Any help would be appreciated. Thanks

        Comment

        • swbarnes2
          Senior Member
          • May 2008
          • 910

          #5
          The ELAND/Bowtie type aligners tell your for each read how many times they aligned to your reference sequence. So you could align with one of thsoe programs first, and then sift the output, pulling out the read info on lines where the read hits only one time. Then give only those reads to MAQ.

          You would have to align twice, which is kind of silly, but it would work.

          Comment

          • frozenlyse
            Senior Member
            • Sep 2008
            • 135

            #6
            i think you will be better off using bowtie for the alignment step - bowtie is nicer and faster anyway and can automatically filter out non-unique reads (use the -m 1 option)

            then split your bowtie map file into 2 million line chunks and use bowtie-maqconvert to convert into maq map files, then merge into a single maq map file to go on and perform downstream maq applications

            something along these lines
            Code:
            mkdir splitout
            split -l 2000000 -d bowtie.map splitout/bowtie.map
            for files in splitout/*
                do bowtie-maqconvert "$files" "$files".maq maq_reference.bfa;
            done
            maq mapmerge maq.map splitout/*.maq

            Comment

            • zee
              NGS specialist
              • Apr 2008
              • 249

              #7
              It's easy enough to exclude non-unique reads from MAQ by using the builtin features e.g.

              for assembly use

              Code:
              maq assemble -q 10 ...
              Where 10 is your quality score filter.

              Comment

              • bioinfosm
                Senior Member
                • Jan 2008
                • 483

                #8
                I am slightly confused about how the SNP calls are being made etc, and where the exclusion occurs on using maq assemble -q 10

                I ran the same data with and without -q 10, all other commands remaining same. The results are interestingly different.

                The maq map alignments are different, but the number of final SNPs reported are way different - 2797 when using -q 10, and 1751 otherwise (1411 common)

                Can someone walk me through these numbers...

                Without -q 10
                Code:
                [B]Lane1[/B]
                -- 135 potential soa-indels pass the filter.
                -- == statmap report ==
                -- # single end (SE) reads: 6655133
                -- # mapped SE reads: 1676926 (/ 6655133 = 25.19%)
                
                [B]Lane2[/B]
                -- 101 potential soa-indels pass the filter.
                -- == statmap report ==
                -- # single end (SE) reads: 6925588
                -- # mapped SE reads: 2213553 (/ 6925588 = 31.96%)
                With -q 10
                Code:
                [B]Lane1[/B]
                -- 131 potential soa-indels pass the filter.
                -- == statmap report ==
                -- # single end (SE) reads: 6655133
                -- # mapped SE reads: 1676926 (/ 6655133 = 25.19%)
                
                [B]Lane2[/B]
                -- 101 potential soa-indels pass the filter.
                -- == statmap report ==
                -- # single end (SE) reads: 6925588
                -- # mapped SE reads: 2213553 (/ 6925588 = 31.96%)
                Code:
                $ diff regular.maq.aln q10.map.aln
                1,2c1,2
                < 30PERAAXX_300164-25:1:52:1644:1221    MLH1    2       -       0       0       99      99      99      0       0       1       0       36      TTGGCTGAAGGCACTTCCGTTGAGCATCTAGACG
                TT    IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
                < 30PERAAXX_300164-25:1:80:1159:720     MLH1    2       -       0       0       96      96      96      0       0       1       0       36      TtGGCTGAAGGCaCTtCCGTTGAGCATCTAGACG
                TT    @0IIIIIBIIII#II5IIIIIIIIIIIIIIIIIII>
                ---
                > 30PERAAXX_300164-25:1:52:1644:1221    MLH1    2       -       0       0       98      98      98      0       0       1       0       36      TTGGCTGAAGGCACTTCCGTTGAGCATCTAGACG
                TT    IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
                > 30PERAAXX_300164-25:1:80:1159:720     MLH1    2       -       0       0       95      95      95      0       0       1       0       36      TtGGCTGAAGGCaCTtCCGTTGAGCATCTAGACG
                TT    @0IIIIIBIIII#II5IIIIIIIIIIIIIIIIIII>
                
                34,44c34,44
                < 30PERAAXX_300164-25:1:33:693:1787     MLH1    14      -       0       0       99      99      99      0       0       1       0       36      ACTTCCGTTGAGCATCTAGACGTTTCCTTGGCTC
                TT    IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
                < 30PERAAXX_300164-25:1:41:347:1531     MLH1    14      -       0       0       99      99      99      0       0       1       0       36      ACTTCCGTTGAGCATCTAGACGTTTCCTTGGCTC
                TT    IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
                < 30PERAAXX_300164-25:1:67:393:1068     MLH1    14      -       0       0       99      99      99      0       0       1       0       36      ACTTCCGTTGAGCATCTAGaCGTTTCCTTGGCTC
                TT    HIIHIIIIIIIIIIIIIII3IIIIIIIIIIIIIIII
                < 30PERAAXX_300164-25:1:70:959:1492     MLH1    14      -       0       0       99      99      99      0       0       1       0       36      aCTTCCGTTGAGCATCTAGACGTTTCCTTGGCTC
                TT    2IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
                < 30PERAAXX_300164-25:1:93:1678:647     MLH1    14      -       0       0       96      96      96      0       0       1       0       36      aCTTcCGTTGAGCATCTAGACGTTTCCTTGGCTC
                TT    +III6IIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
                < 30PERAAXX_300164-25:1:4:220:1034      MLH1    15      -       0       0       99      99      99      0       0       1       0       36      CTTCCGTTGAGCATCTAGACGTTTCCTTGGCTCT
                TC    IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
                < 30PERAAXX_300164-25:1:9:249:1562      MLH1    15      -       0       0       99      99      99      0       0       1       0       36      CTTCCGTTGAGCATCTAGACGTTTCCTTGGCTCT
                TC    IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
                < 30PERAAXX_300164-25:1:12:1505:614     MLH1    15      -       0       0       96      96      96      0       0       1       0       36      CttCCGTTGAGCATCTAGACGTTTCCTTGGCTCT
                TC    I81IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
                < 30PERAAXX_300164-25:1:13:368:1753     MLH1    15      -       0       0       99      99      99      0       0       1       0       36      CTTCCGTTGAGCATCTAGACGTTTCCTTGGCTCT
                TC    IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
                < 30PERAAXX_300164-25:1:15:9:1341       MLH1    15      -       0       0       99      99      99      0       0       1       0       36      CTTCCGTTGAGCATCTAGACGTTTCCTTGGCTCT
                TC    IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
                < 30PERAAXX_300164-25:1:19:639:103      MLH1    15      -       0       0       99      99      99      0       0       1       0       36      CTTCCGTTGAGCATCTAGACGTTTCCTTGGCTCT
                TC    IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
                ---
                > 30PERAAXX_300164-25:1:33:693:1787     MLH1    14      -       0       0       98      98      98      0       0       1       0       36      ACTTCCGTTGAGCATCTAGACGTTTCCTTGGCTC
                TT    IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
                > 30PERAAXX_300164-25:1:41:347:1531     MLH1    14      -       0       0       98      98      98      0       0       1       0       36      ACTTCCGTTGAGCATCTAGACGTTTCCTTGGCTC
                TT    IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
                > 30PERAAXX_300164-25:1:67:393:1068     MLH1    14      -       0       0       98      98      98      0       0       1       0       36      ACTTCCGTTGAGCATCTAGaCGTTTCCTTGGCTC
                TT    HIIHIIIIIIIIIIIIIII3IIIIIIIIIIIIIIII
                > 30PERAAXX_300164-25:1:70:959:1492     MLH1    14      -       0       0       98      98      98      0       0       1       0       36      aCTTCCGTTGAGCATCTAGACGTTTCCTTGGCTC
                TT    2IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
                > 30PERAAXX_300164-25:1:93:1678:647     MLH1    14      -       0       0       95      95      95      0       0       1       0       36      aCTTcCGTTGAGCATCTAGACGTTTCCTTGGCTC
                TT    +III6IIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
                > 30PERAAXX_300164-25:1:4:220:1034      MLH1    15      -       0       0       98      98      98      0       0       1       0       36      CTTCCGTTGAGCATCTAGACGTTTCCTTGGCTCT
                TC    IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
                > 30PERAAXX_300164-25:1:9:249:1562      MLH1    15      -       0       0       98      98      98      0       0       1       0       36      CTTCCGTTGAGCATCTAGACGTTTCCTTGGCTCT
                TC    IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
                > 30PERAAXX_300164-25:1:12:1505:614     MLH1    15      -       0       0       95      95      95      0       0       1       0       36      CttCCGTTGAGCATCTAGACGTTTCCTTGGCTCT
                TC    I81IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
                > 30PERAAXX_300164-25:1:13:368:1753     MLH1    15      -       0       0       98      98      98      0       0       1       0       36      CTTCCGTTGAGCATCTAGACGTTTCCTTGGCTCT
                TC    IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
                > 30PERAAXX_300164-25:1:15:9:1341       MLH1    15      -       0       0       98      98      98      0       0       1       0       36      CTTCCGTTGAGCATCTAGACGTTTCCTTGGCTCT
                TC    IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
                > 30PERAAXX_300164-25:1:19:639:103      MLH1    15      -       0       0       98      98      98      0       0       1       0       36      CTTCCGTTGAGCATCTAGACGTTTCCTTGGCTCT
                TC    IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
                --
                bioinfosm

                Comment

                • bioinfosm
                  Senior Member
                  • Jan 2008
                  • 483

                  #9
                  I realize that there is a -q option that one may use with maq pileup as well.
                  Would a repeat mapped read mapping to different locations with same score (mapping quality or the 7th column of reads.mapview is 0) be used to do SNP calling?

                  Thanks
                  --
                  bioinfosm

                  Comment

                  Latest Articles

                  Collapse

                  • SEQadmin2
                    How Immunogenomics Decodes Immunity’s Genetic Blueprint
                    by SEQadmin2




                    The immune system’s power comes from its genetic diversity, allowing myriad threats to be neutralized through first recognizing foreign antigens. That diversity is also what makes the immune system so difficult to study. Recent advances in sequencing technology and computational biology, however, are giving researchers new tools to understand immune responses and immune-related diseases in greater detail.

                    This convergence of genetics, immunology, and computation...
                    Yesterday, 05:41 AM
                  • SEQadmin2
                    Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
                    by SEQadmin2



                    CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

                    Despite this, “CRISPR helped turn genome editing from a specialized technique into
                    ...
                    07-31-2026, 11:01 AM

                  ad_right_rmr

                  Collapse

                  News

                  Collapse

                  Topics Statistics Last Post
                  Started by SEQadmin2, 08-24-2026, 10:32 AM
                  0 responses
                  42 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 08-20-2026, 11:17 AM
                  0 responses
                  48 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 08-18-2026, 10:05 AM
                  0 responses
                  55 views
                  0 reactions
                  Last Post SEQadmin2  
                  Started by SEQadmin2, 08-13-2026, 12:22 PM
                  0 responses
                  50 views
                  0 reactions
                  Last Post SEQadmin2  
                  Working...