Giter Club home page Giter Club logo

Comments (3)

dpryan79 avatar dpryan79 commented on July 22, 2024

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.

Shicheng-Guo avatar Shicheng-Guo commented on July 22, 2024

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.

dpryan79 avatar dpryan79 commented on July 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.