Giter Site home page Giter Site logo

Question about GFA format about twopaco HOT 3 OPEN

medvedevgroup avatar medvedevgroup commented on June 18, 2024 3
Question about GFA format

from twopaco.

Comments (3)

iminkin avatar iminkin commented on June 18, 2024 1

@rob-p I was afraid the odd/even issue was going to pop-up. I will think about it and try to make a fix soon.

from twopaco.

iminkin avatar iminkin commented on June 18, 2024

Hi @rob-p ,

I understand you confusion. The issue is that initially we adopted the edge-centric definition of the graph, i.e. sequences are spelled by edges, with nodes of size $k$ and edges of size $k + 1$. It is due to historical reasons and having a specific application in mind. But in GFA sequences are spelled by nodes, and edges merely indicate overlap. To output GFA, TwoPaCo turns compacted edges of the graph into nodes (segments in GFA terminology), hence they are of size at least $k + 1$ and overlap is $k$. So if you intend to get a node-centric graph with length of nodes $k$, run TwoPaCo with $k - 1$ if it is possible.

Again, sorry for the confusion, I am aware that it pops up all the time (https://www.biostars.org/p/175058/). I have plans to improve documentation to clear things out (I even put it in for 0.9.3: https://github.com/medvedevgroup/TwoPaCo/blob/master/NEWS.md). I just didn't expect people to start using TwoPaCo right away :)

from twopaco.

rob-p avatar rob-p commented on June 18, 2024

Hi @IlyaMinkin,

Yup, I understand the confusion here as well. We have often gone back and forth between preferring the node and edge-centric view of the dBG.

I guess my concern with the proposed temporary solution (running with $k-1$) is that we want nodes to have an odd size, so that $k-1$ will always be even. For example, we want nodes of size $k=31$, so I'd have to run TwoPaCo with $k=30$. According to the documentation, $k$ must be odd. Is this, in fact, the case?

Thanks for the quick responses!
Rob

from twopaco.

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.