Comments (3)
The output should already be sorted according to the header of the BAM file. Can you give an example of it not being sorted?
from methyldackel.
It is interesting. I see maybe you are sorted the bedgraph with the header of the Bam file. However, usually, the sorted files is the following sorting.
sort -k1,1 -k2,2 non-sorted.bedGraph > sorted.bedGraph
And we can see such kind of sorting is the requirement from bedgraph to bigwig.
Obviously, if we run the bedGraphTobigwig with the output of the PileOMeth extract, the script will be reported error since:
1, PileOMeth ouputed bedGraph is 6 column not 4 column
2, PileOMeth outputed bedGraph is not sorted by: chr1, chr10, chr11,chr12....chr2, chr20, chr21,chr22, chr3, chrM, chrX, chrY.
3, I think the order of PileOMeth extract bedgraph is chr1, chr2, chr3, ...chr22, chrM, chrX, chrY.
I don't which order is more standardized. Maybe it is not the necessary to change it in PileOMeth extract. We can preapre a script to do the re-ordering easily.
from methyldackel.
That UCSC's tools complains when a file is already properly sorted is its problem. I will always output by however the BAM file is sorted, since this almost always matches how the fasta file is sorted as well.
If you want a 4 column bedGraph file then you can use the --fraction
command. This is convenient for visualization, but not statistics, which is more the purpose of PileOMeth
.
from methyldackel.
Related Issues (20)
- Understanding --minConversionEfficiency argument HOT 1
- 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?
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.