Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • foolishbrat
    Member
    • Nov 2008
    • 45

    #1

    Meaning of Negative Alignment Score in BOWTIE2 output

    I have a mIRNA seq data in which I aligned it to whole genome UCSC hg19.
    For that I use bowtie2 with the following parameter:

    Code:
    bowtie2 -x myindex -U my_mirna_seq.fastq --n-ceil L,0,0 -k 1 -N 1  -S mydata.sam
    However in the SAM output I notice the alignment score is negative:


    Code:
    $cut -f12  mydata.sam | grep AS | sort -u | tail 
    AS:i:-29
    AS:i:-3
    AS:i:-30
    AS:i:-4
    AS:i:-5
    AS:i:-6
    AS:i:-7
    AS:i:-8
    AS:i:-9
    AS:i:0
    What does it mean to have -ve AS value?
    How should I deal with it?

    And also the MAPQ score is 255 for all the alignments, no others.
    Is that normal?
    Last edited by foolishbrat; 01-29-2014, 01:13 AM.
  • dpryan
    Devon Ryan
    • Jul 2011
    • 3478

    #2
    Regarding the negative alignment scores, the highest possible alignment score in end-to-end alignment is 0. For each mismatch or gap open/extension, that score is decremented by some amount (for mismatches, this amount depends on the phred score of the base).

    Regarding the MAPQ value, this is due to you using "-k 1". What you're telling bowtie2 to do is to look for at most one valid hit and to stop looking once it's found one. That hit will often not be the best hit that bowtie2 could find and since it's being told to stop looking right away it can't possibly calculate a MAPQ, since it would need to search more thoroughly to have any clue how good the returned alignment is. So, 255 would be the appropriate value.

    Just don't use "-k 1" and you'll get the single best alignment for each read and an accompanying MAPQ score.

    Comment

    • foolishbrat
      Member
      • Nov 2008
      • 45

      #3
      Thanks, two more questions:

      So if I remove -k1 that means for each read it will output only 1 best position, which doesn't mean it's uniquely mapped, am I right?

      If so how can I determine the uniquely mapped reads from the parameter or the SAM output?
      By looking at MAPQ=255?
      Last edited by foolishbrat; 01-29-2014, 02:09 AM.

      Comment

      • dpryan
        Devon Ryan
        • Jul 2011
        • 3478

        #4
        Correct, there's no option to tell bowtie2 to only report unique alignments. For bowtie2 (I should note that this is ONLY true for bowtie2), MAPQ scores of 0 and 1 indicate non-unique mapping, so you can filter by that (though not if you use "-k 1", since this only works when you have actual MAPQ values). Alternatively (also not when "-k 1" is used, but a bit more portable to other aligners), you can often just look for reads with "NH:i:1" auxiliary tags, though that's more work.

        Comment

        • foolishbrat
          Member
          • Nov 2008
          • 45

          #5
          Thanks a million.

          Comment

          Latest Articles

          Collapse

          • SEQadmin2
            Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
            by SEQadmin2



            Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

            Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
            ...
            10-14-2026, 09:55 AM
          • SEQadmin2
            New Genomics Technologies Take Aim at Long-Standing Limits
            by SEQadmin2


            Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

            We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
            ...
            09-28-2026, 10:25 AM

          ad_right_rmr

          Collapse

          News

          Collapse

          Topics Statistics Last Post
          Started by SEQadmin2, 10-22-2026, 11:13 AM
          0 responses
          27 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-22-2026, 10:48 AM
          0 responses
          20 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-15-2026, 10:52 AM
          0 responses
          36 views
          0 reactions
          Last Post SEQadmin2  
          Started by SEQadmin2, 10-14-2026, 05:39 AM
          0 responses
          43 views
          0 reactions
          Last Post SEQadmin2  
          Working...