how to get unique mapped reads from a bam file of singe end sequencing ?
Hi , how to get unique mapped reads from a bam file of singe end sequencing ?
there is no XT mark in my bam .
sequence
next-gen
genome
alignment
• 2,268 views
•
link
written
by
winter_li •
0 answers
No answers yet.
Log in to answer this question.
More posts like this
-
How to find raw reads, clean reads, total mapped reads, and unique mapped reads?
written by Mohan •I'm very new to sequencing analysis and I'm struggling to understand the differences between the above reads and ways to find them. I have a …
-
whole exome sequence fragment size analysis
written by adRHi everyone, I have aligned bam files with the reference genome. All reads are single reads. I want to analyze fragment size using `bamPEFragmentSize`. My …
-
Extract reads mapped within chosen intronic region from BAM file (no junctions)
written by gspirito •Hi everyone, here's my question: I have some BAM files resulting from mapping RNA-seq reads. I would like to know whether there is a way …
-
understanding multi-mapped reads
written by Assa YeroslavizHi everybody, I am having a problem understanding the output of tophat concerning the multi-mapped reads. I would like to create a barplot of the …
-
number of Unique reads in bowtie2 alignment
written by onkar •There are many blogs explaining the related post but none ended with a good solution, So I am posting with a new thread. I want …
-
samtools counting unique mapped reads
written by bitpirHi, I have a question between the 2 different ways of counting unique mapped reads. I used paired-end sequencing and mapped the reads to hg19. …
-
Calculate the number of paired-end reads their middle size is greater than # KB
written by lisadavic66 •Dear All, I have a BAM file of paired-end sequencing reads. I want to calculate how many paired-end reads that mapped to the same chromosomes …
-
How to filter unique reads from sam file?
written by MedhatHow to extract unique mapped reads from sam alignment file of pair end reads The mapping was done using bowtie2. There is different posts for …
-
How to filter unique reads from sam file?
written by MedhatHow to extract unique mapped reads from sam alignment file of pair end reads The mapping was done using bowtie2. There are different posts for …
-
Insert Size For Illumina Gaiix Paired-End Library From Sam/Bam File
written by bioinfo<p>From the fastq data (read 1 and read 2) from illumina GAIIx platform ( paired-end library), I created the Sam and bam file using BWA. …
What do you mena by Unique as this word sometimes misleading since it has different meanings. May be you can filter out the reads whose MAPQ score greater then 30 which can give you uniquely mapped reads. Also while mapping use bowtie which has a parameter "m". Take a look at that parameter
HI , sorry ! i wanna keep reads that can be uniquely mapped and I use BWA mem for mapping . do you know a better software or tool to do that ? thank you very much!
As Tom said, use the MAPQ scores. See this previous thread: Bwa-Mem: Discriminate Between Reads Mapping Uniquely And Those Mapping In Multiple Positions
Hi ,igor, I have read , but that do not provide any clear suggestion. I just wanna extract all reads that align once to the genome. samtools view -bq 30 > unique_mapped.bam ? it's right ?
Which aligner was used? The method is completely aligner-dependent. This is among the reasons that (A) there's not one single recommended method and (B) people normally don't do this. I would suggest that you don't want to do this and that instead you actually want to filter for "likely correct" alignments, which would be more like
samtools view -bq 10 foo.bam > likely_correct.bam. This will exclude what you probably consider to be a "unique alignment" that is less likely to be correct (because the concept of unique alignment isn't useful).Hello winter_li!
There are already a ton of threads on this on the forum. Can you please go through some of them and then leave a comment here if somehow none of them address your particular case?
Look to the right for example threads.
ok, got it ! thank you !