Giter Club home page Giter Club logo

Comments (3)

fawaz-dabbaghieh avatar fawaz-dabbaghieh commented on July 20, 2024

This should be doable now.
You can use the internal function graph.get_path(chromosome) that takes the chromosome name similar to the SN tag as input and returns a list with the path nodes. If the list is empty, then something went wrong and you need to check the warning messages.

Still need to add a test case for this.

from gaftools.

asylvz avatar asylvz commented on July 20, 2024

Thanks Fawaz, it seems to be working fine. However, we are missing the orientation of the nodes. After sorting, we might need to check the respective "L" lines to find the edges (unless you already have them in your data structure and get the orientation so that we have an output such as s1>s2s19....>s151

from gaftools.

fawaz-dabbaghieh avatar fawaz-dabbaghieh commented on July 20, 2024

@asylvz I just pushed a new function that takes the path returned by graph.get_path(chromosome) and returns a string with node orientation but in the GFA path line format, i.e. node1+,node2-,node3+ and so on. This format is described here.
The function is called return_gfa_path, and takes as input a list of nodes in the path that you get from get_path

from gaftools.

Related Issues (13)

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.