![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Tophat uniquely mapped reads | mrfox | Bioinformatics | 2 | 05-23-2013 06:58 AM |
not uniquely mapped reads | unidodo | RNA Sequencing | 2 | 04-22-2011 03:07 PM |
Uniquely mapped reads with bowtie | mapper | Bioinformatics | 2 | 11-22-2010 11:44 PM |
BWA Uniquely Mapped Reads | NF_seq | Bioinformatics | 0 | 09-06-2010 04:32 AM |
cufflinks and non-uniquely mapped reads | clariet | Bioinformatics | 1 | 05-08-2010 12:13 PM |
![]() |
|
Thread Tools |
![]() |
#1 |
Junior Member
Location: Philadelphia Join Date: Dec 2009
Posts: 1
|
![]()
Hi,
I was wondering if anyone has used the "--max-multihits" option in Tophat. I specified "--max-multihits 1" in my command line with the hope of getting uniquely mapped reads; however, when I checked the run.log file, I noticed that the program still uses the default "--max-multihits 40". It seems that specifying the value of --max-multihits doesn't make a change in the analysis. Has anyone experienced similar problems before? Thanks, Subeet |
![]() |
![]() |
![]() |
#2 |
Senior Member
Location: Kansas City Join Date: Mar 2008
Posts: 197
|
![]()
I've used -g 1 successfully, which is the same as --max-multihits according to the manual.
|
![]() |
![]() |
![]() |
#3 |
Member
Location: Shanghai,China Join Date: Sep 2011
Posts: 30
|
![]()
If you want to get uniquely mapped reads from Tophat output bam file,you can use the command like this:
Code:
samtools view accepted_hits.bam | awk '$5==255{print $0}' > uniq_mapped_reads.sam Also,you can use another command as follow,which will do the same as the first one: Code:
samtools view accepted_hits.bam | grep -w "NH:i:1" > uniquely_mapped_reads.sam |
![]() |
![]() |
![]() |
#4 |
Simon Andrews
Location: Babraham Inst, Cambridge, UK Join Date: May 2009
Posts: 871
|
![]()
We use -g 1 as part of our standard tophat pipeline. Seems to work OK and definitely doesn't produce the same results as running with the default options.
|
![]() |
![]() |
![]() |
#5 | |
Member
Location: MO, USA Join Date: Apr 2011
Posts: 83
|
![]() Quote:
When I read the SAM file format, it states: "MAPQ: ...A value 255 indicates that the mapping quality is not available." Does that mean uniquely mapped? thanks. |
|
![]() |
![]() |
![]() |
#6 | |
Member
Location: MO, USA Join Date: Apr 2011
Posts: 83
|
![]() Quote:
what number is more optimal? the default is 20, i believe. |
|
![]() |
![]() |
![]() |
#7 | ||
Rick Westerman
Location: Purdue University, Indiana, USA Join Date: Jun 2008
Posts: 1,104
|
![]() Quote:
I am not sure who made the following observation on a Galaxy mailing list but it is what I refer to: Quote:
|
||
![]() |
![]() |
![]() |
#8 |
Member
Location: MO, USA Join Date: Apr 2011
Posts: 83
|
![]()
thanks. that info is helpful. It is makes senes to me now. Because it takes two mappings to calculate quality. So uniquely mapped reads do not have mapping quality to report, hence, 255.
|
![]() |
![]() |
![]() |
#9 | |
Member
Location: China Join Date: Jan 2012
Posts: 12
|
![]() Quote:
However, I found .bam file from tophat.v2 used a different version: 255: unmapped reads 50: unique mapped reads 3: two mapped locations 1: 3 or 4 mapped locations 0: >4 mapped locations |
|
![]() |
![]() |
![]() |
#10 |
Member
Location: Shanghai,China Join Date: Sep 2011
Posts: 30
|
![]()
You're right.I also find this change in tophat v2.0.4. In my opinion,maybe the best way to find the uniquely mapped reads is using the "NH:i:1" tag in the last field of every alignment.
|
![]() |
![]() |
![]() |
#11 |
Rick Westerman
Location: Purdue University, Indiana, USA Join Date: Jun 2008
Posts: 1,104
|
![]()
With version v2.0.6 I do not find this exact behavior. But perhaps it is because my reads get separated into 'accepted_hits.bam' and 'unmapped.bam'. The latter does, indeed, have all reads at mapq 255 but the former does not. The former has the mapq of 50, 3, 1 or 0. So when I look at the "interesting" reads -- i.e., those that map in accepted_hits.bam -- then just doing a samtools filtering by mapq is good enough.
|
![]() |
![]() |
![]() |
Tags |
rna-seq, tophat |
Thread Tools | |
|
|