Seqanswers Leaderboard Ad
Collapse
Announcement
Collapse
No announcement yet.
X
-
Note the "100%" mapped metric, which means that the unmapped reads were excluded from the output.
-
Guest repliedSame here
I have this same problem. Did you ever figure out how to fix it?
Update: The missing reads in the bam file were due to the following error:
[bwa_sai2sam_pe_core] print alignments... [E::sam_parse1] CIGAR and query sequence are of different length
[W::sam_read1] parse error at line 11261615
[main_samview] truncated file.
All of this happened after I switched to a new reference genome (mm10). I'm not getting the error with mm9. I don't have a good explanation but I think that the version of mm10 I tried to use must have been somehow corrupted.Last edited by Guest; 11-05-2016, 03:37 AM.
Leave a comment:
-
bwa outputs bam with less reads than in input fastq
I downloaded a publicly available bam file and ran samtools flagstat on it. The output is here:
482805326 + 0 in total (QC-passed reads + QC-failed reads)
0 + 0 duplicates
235328156 + 0 mapped (48.74%:nan%)
482805326 + 0 paired in sequencing
241402663 + 0 read1
241402663 + 0 read2
235328156 + 0 properly paired (48.74%:nan%)
235328156 + 0 with itself and mate mapped
0 + 0 singletons (0.00%:nan%)
0 + 0 with mate mapped to a different chr
0 + 0 with mate mapped to a different chr (mapQ>=5)
Next, I extracted reads from the bam into two fasta files. The sum of reads in both was 482805326, so equal as in the bam. I aligned the fastq files again (bwa aln and bwa sampe), and ran samtools flagstat on the resulting bam. Here is the output:
387280125 + 0 in total (QC-passed reads + QC-failed reads)
0 + 0 duplicates
387280125 + 0 mapped (100.00%:nan%)
387280125 + 0 paired in sequencing
194031131 + 0 read1
193248994 + 0 read2
375578347 + 0 properly paired (96.98%:nan%)
381759377 + 0 with itself and mate mapped
5520748 + 0 singletons (1.43%:nan%)
5108005 + 0 with mate mapped to a different chr
4124551 + 0 with mate mapped to a different chr (mapQ>=5)
And what I don't understand is where is almost 100M reads gone? I haven't found any information on bwa removing unmapped/bad quality/duplicate reads, so I am wondering. Any hints?
I am using bwa 0.5.9-r16
Latest Articles
Collapse
-
by seqadmin
Innovations in next-generation sequencing technologies and techniques are driving more precise and comprehensive exploration of complex biological systems. Current advancements include improved accessibility for long-read sequencing and significant progress in single-cell and 3D genomics. This article explores some of the most impactful developments in the field over the past year.
Long-Read Sequencing
Long-read sequencing has...-
Channel: Articles
Today, 01:49 PM -
-
by seqadmin
The field of immunogenetics explores how genetic variations influence immune responses and susceptibility to disease. In a recent SEQanswers webinar, Oscar Rodriguez, Ph.D., Postdoctoral Researcher at the University of Louisville, and Ruben MartÃnez Barricarte, Ph.D., Assistant Professor of Medicine at Vanderbilt University, shared recent advancements in immunogenetics. This article discusses their research on genetic variation in antibody loci, antibody production processes,...-
Channel: Articles
11-06-2024, 07:24 PM -
ad_right_rmr
Collapse
News
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by seqadmin, Today, 09:29 AM
|
0 responses
13 views
0 likes
|
Last Post
by seqadmin
Today, 09:29 AM
|
||
Started by seqadmin, Today, 09:06 AM
|
0 responses
11 views
0 likes
|
Last Post
by seqadmin
Today, 09:06 AM
|
||
Started by seqadmin, Today, 08:03 AM
|
0 responses
11 views
0 likes
|
Last Post
by seqadmin
Today, 08:03 AM
|
||
Started by seqadmin, 11-22-2024, 07:36 AM
|
0 responses
61 views
0 likes
|
Last Post
by seqadmin
11-22-2024, 07:36 AM
|
Leave a comment: