Git Product home page Git Product logo

Comments (5)

a-slide avatar a-slide commented on August 27, 2024 1

I like the last option, I think it make perfect sense.

from nanocompore.

tleonardi avatar tleonardi commented on August 27, 2024

I have looked at this more carefully, and it seems that plot_signal() and plot_position() report the same x-axis labels. The only difference between the two is that plot_position() reports only the first base of each kmer rather than the kmer sequence. This shoulb be fixed.
However, it also seems that the positions reported by both function are off by one relative to the actual sequence...

from nanocompore.

tleonardi avatar tleonardi commented on August 27, 2024

It looks like nanopolish and nanopolishComp are 0 based. @a-slide what do you agree?

from nanocompore.

a-slide avatar a-slide commented on August 27, 2024

Yes True. I knew there were a few off by one errors sprinkled in the code... :S
I was about to suggest to report the kmer instead of the base for plot position, but I saw that you implemented the change already.

from nanocompore.

tleonardi avatar tleonardi commented on August 27, 2024

Yes, now all plotting function report the kmer and the 0-based position.
If think it's fine to stick to 0-based coordinates for everything, we just have to make it clear in the docs.
The only thing that remains to decide is what to do when reporting the significant sites in BED format.
At the moment the function annotates the p-value on a single nucleotide (the first one of the kmer, i.e. 'pos'). This is a bit misleading though, because it would make more sense to assign the p-value to the central nt of the kmer...
An alternative (which is my favorite) is to report BED records of kmer size rather than single nucleotide.. what do you think?

from nanocompore.

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.