Comments (3)
The term "multi-mapped reads" is a bit confusing. It can refer to two not mutually exclusive cases:
- reads mapped to multiple locations in the C-to-T (forward reference) genome or G-to-A (reverse reference) genome.
- reads mapped to both C-to-T genome and G-to-A genome.
If you are interested in case 2, you can set --keep-temp-files
to True
to keep the results of read alignment to C-to-T genome and G-to-A genome. The files are * _forward_strand_hits.sam
and * _reverse_strand_hits.sam
. Please make sure there are enough hard drive space since they will usually occupy ~500g or more.
If you care about reads falling in case 1 or both case 1 and 2, in addition to setting --keep-temp-files
to True, you will need to set
--aligner-options` such that the aligner (e.g. bowtie2) will report reads mapped to multiple locations.
from methylpy.
You are right, the term was confusing. I am interested in case 1, when reads map to multiple locations in the genome.
I tried the --aligner-options with bowtie2, but I do not think that positively worked, because of 2 reasons:
-
I think after the bam alignment files are made, the methylpy program filters through the reads to only analyze unique-mapped reads. This is done by using samtools after the alignment files are made. So, correct me if I am wrong please, changing the aligner option might not have the desired effect.
-
When I remove one of the regions in my genome (delete the sequence), that I know causes the loss of many reads due to multi-loci mapping, as it exactly matches another region of the genome, I actually get more reads in the bam file, compared to when I use the "--all" option in the --aligner-options. This demonstrates that "--all" option is not working as expected.
That is why I was wondering, if there is any way to not exclude the multi-loci mapping reads in the methylpy pipeline, not just at the aligner stage but during methylation calling too.
from methylpy.
You are right that methylpy filter out multi-map reads. So, the multi-map reads (either case 1 or case 2) won't be available in the final bam file. However, with --keep-temp-files
set to True
and the bowtie2 options that allow reporting multimap reads, you should be able to find multimap reads in * _forward_strand_hits.sam
and * _reverse_strand_hits.sam
files.
from methylpy.
Related Issues (20)
- DMRfind use two samples is ok but a lot of samples is wrong HOT 24
- Methylpy and Bismark for alignment
- Where is the methylation difference reflected in the DMRfind code HOT 11
- Average methylation level of a sample HOT 1
- DMRfind fails with key error 179 HOT 2
- run_test.py fails HOT 21
- cutadapt error for methylpy v 1.4.6 HOT 3
- Running RMS tests failed. HOT 18
- Ubuntu Optional step to Compile rms.cpp is formatted wrong HOT 1
- bam-quality-filter NOMe-seq HOT 2
- Methylation calling in non-directional libraries HOT 1
- Help for parameters tuning.
- mapping to a large genome HOT 1
- Methylpy in plant HOT 7
- DMR HOT 4
- binom-test failed HOT 15
- DMRfind-Histogram FDR correction did not converge. HOT 1
- NAs of methylpy add-methylation-level result HOT 5
- low align rate conflicting with bismark align rate HOT 4
- how to acquire or calculate the mapping efficiency using methylpy? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from methylpy.