Comments (2)
Some day I hope to post something on bioarxiv, but in the interim here's a very brief description:
MethyDackel uses htslib (what powers samtools) to create a "pileup" of bases at each position in the genome. A "pileup" is a reference to the "samtools mpileup" command and can be visualized as a stack of bases covering a position with their corresponding Phred quality scores. MethylDackel then filters this pileup of bases according to base call quality and where they are in their reads (c.f. --OT and such). If the reference base at a given position is a C on either strand and that C is in one of the desired contexts then it's written to the output.
There are some additional details when one has a paired-end dataset. Namely, one doesn't want to extract the same methylation call from both mates if they overlap. Consequently, in such cases the base call quality of one of the mates is set to 0 so it will be filtered out. Additionally, the base call quality of the remaining base is adjusted up or down depending on whether both mates agree on the base call or not (this is also how samtools mpileup works).
The mbias subfunction works in a similar manner. It notes when there's apparent methylation and save that as a function of position within each read.
If you need details about anything else related to this tool then feel free to ask. Also, sorry for any typos in this reply, I'm writing this on an iPad rather than a proper computer.
from methyldackel.
Thank you for the explanation. Looking forward to the paper!
from methyldackel.
Related Issues (20)
- Genome browsing from MethylDackel bedGraphCpG file
- per-fragment methylation HOT 2
- mbias result is different between bismark and bwameth output HOT 1
- CURL_OPENSSL conflict with samtools HOT 3
- Installation failure: "bigWig.h: No such file or directory" HOT 1
- Clarification on definition of "unmethylated C" HOT 1
- Coverage of C sites HOT 1
- mbias HOT 1
- Does indel effect the methylation calling or C context determination HOT 1
- Positions in cytosine_report did not match the regions in providing bed file
- about M-bias HOT 1
- Could not repeat a CpG extraction with the same reference file and its index
- Mixed up reads within bam file
- How to index genome file for MethylDackel? HOT 1
- Confused regarding CTOT, CTOB. Are there suggested values? HOT 3
- Issue running MethylDackel extract in parallel mode using minConversionEfficiency
- Question about minimum coverage
- Different CpG calls when using different regions of inclusion for Methyldackel extract
- Alignment trimming for Soft Clip reads?
- Can MethylDackel extract per-base methylation metrics for TAPS?
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 methyldackel.