![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
what is the meaning of BED score? | whfwind | Bioinformatics | 3 | 07-24-2017 11:45 PM |
Negative Q score | jarthur | SOLiD | 0 | 03-18-2013 04:17 PM |
Bowtie2 'Could not open alignment output file' error | Lcontami | Bioinformatics | 1 | 02-28-2013 04:14 AM |
The meaning of miRDeep2 score? | louis7781x | Bioinformatics | 0 | 11-28-2012 02:27 AM |
Meaning of '0' quality score in MAQ | paulig | Bioinformatics | 0 | 11-29-2010 07:33 AM |
![]() |
|
Thread Tools |
![]() |
#1 |
Member
Location: South East Asia Join Date: Nov 2008
Posts: 44
|
![]()
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 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 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 at 01:13 AM. |
![]() |
![]() |
![]() |
#2 |
Devon Ryan
Location: Freiburg, Germany Join Date: Jul 2011
Posts: 3,480
|
![]()
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. |
![]() |
![]() |
![]() |
#3 |
Member
Location: South East Asia Join Date: Nov 2008
Posts: 44
|
![]()
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 at 02:09 AM. |
![]() |
![]() |
![]() |
#4 |
Devon Ryan
Location: Freiburg, Germany Join Date: Jul 2011
Posts: 3,480
|
![]()
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.
|
![]() |
![]() |
![]() |
#5 |
Member
Location: South East Asia Join Date: Nov 2008
Posts: 44
|
![]()
Thanks a million.
|
![]() |
![]() |
![]() |
Tags |
alignment bowtie2 |
Thread Tools | |
|
|