I have similar questions in this post:
I used the following tool to figure it out but I am not sure if all of my steps are right.
Seqanswers Leaderboard Ad
Collapse
Announcement
Collapse
No announcement yet.
X
-
Thanks - I don't see a way to get what I'm looking for one pass, but perhaps I could get there with two:
samtools view -F2 theWholeEnchilada.bam >NotPerfectlyPaired.bam
samtools view -f2 -q 20 theWholeEnchilada.bam >PerfectlyPairedButLowQuality.bam
and then combine (samtools merge or picard or whatev) the output.
Leave a comment:
-
Samtools view:
OPTIONS:
-b Output in the BAM format.
-f INT Only output alignments with all bits in INT present in the FLAG field. INT can be in hex in the format of /^0x[0-9A-F]+/ [0]
-F INT Skip alignments with bits present in INT [0]
...
-q INT Skip alignments with MAPQ smaller than INT [0]
Leave a comment:
-
Exclude best-mapped reads
Hi all --
I'm hoping for some insight. I've been slinging bam files on and off for a while, but trying to filter out the well-mapped reads by multiple criteria seems pretty daunting. Here's what I'm trying to do.
REMOVE all reads that meet these criteria:
1) Both ends are mapped
2) the mapping quality score is above some threshold (say 20)
I'm sure there's some clever series of steps that will get me there. They were originally aligned with BWA, fwiw wrt aligner-specific fields and interpretations.
Thanks in advance!Tags: None
Latest Articles
Collapse
-
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, 11-22-2024, 07:36 AM
|
0 responses
60 views
0 likes
|
Last Post
by seqadmin
11-22-2024, 07:36 AM
|
||
Started by seqadmin, 11-22-2024, 07:04 AM
|
0 responses
81 views
0 likes
|
Last Post
by seqadmin
11-22-2024, 07:04 AM
|
||
Started by seqadmin, 11-21-2024, 09:19 AM
|
0 responses
76 views
0 likes
|
Last Post
by seqadmin
11-21-2024, 09:19 AM
|
||
Started by seqadmin, 11-08-2024, 11:09 AM
|
0 responses
320 views
0 likes
|
Last Post
by seqadmin
11-08-2024, 11:09 AM
|
Leave a comment: