Giter VIP home page Giter VIP logo

Comments (5)

northwestwitch avatar northwestwitch commented on July 29, 2024 1

I also tried using the d4tools stat -stat hist output and checking the fraction at or above specific thresholds. This seemed to give correct values, but processing time is similar - again time spent at parsing output from the command.

Shame, but yes, makes sense.

It spontaneously looks to me that the ideal solution would be to get in a new stat function into d4tools which runs similarly to the mean calculations - giving an output as such:

> $ d4tools stat --stat cov_at_thres --thresholds 10 20 30
chr    start    end     perc_thres1     perc_thres2     perc_thres3
...

This should be much quicker, but unsure how smooth it would be technically and socially to squeeze it into d4tools 🤔 Maybe worth raising an issue, if we think this is the way to go.

That's exactly what I was thinking but I've never opened an issue on d4tools with the request because I figured they would never work on it if they still had those important bugs unfixed. I guess one could try now that it seems things are moving on their side. Let's open an issue and see what they say, perhaps?

Otherwise it seems we would like somehow directly read from the d4 file using code in the d4tool. Probably feasible as well. Not sure how to package this in a non-messy way though.

Might be a good starting point to just fork d4tools and see if we could get it to do what we want here and see the performance. If it works, then think about how to package this.

Or we can create a PR in d4tools so they include it in the official repo!

Needless to say, this would be useful for us and I am happy to help 🙂

Nice, thanks! 🚀

from chanjo2.

Jakob37 avatar Jakob37 commented on July 29, 2024 1

I opened an issue over at the d4tools: 38/d4-format#81

from chanjo2.

northwestwitch avatar northwestwitch commented on July 29, 2024 1

I opened an issue over at the d4tools: 38/d4-format#81

Nice! And I saw that somebody offered to work on it already!! 🥳

from chanjo2.

northwestwitch avatar northwestwitch commented on July 29, 2024

Sorry I messed up with the comments. Now it should be back to how it was :)

from chanjo2.

Jakob37 avatar Jakob37 commented on July 29, 2024

Or we can create a PR in d4tools so they include it in the official repo!

Yes, I agree, that would be the ideal!

I think most of the building blocks to get this functionality in place should be in d4tools already. So shouldn't be super-difficult ... But we'll see.

from chanjo2.

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.