Coder Social home page Coder Social logo

Comments (4)

rrwick avatar rrwick commented on September 13, 2024

Okay, I've updated the Bandage code to look for the LN tag and use that for the contig length preferentially over the sequence length. This change is in the development branch of Bandage, so if you want to try it immediately, you can build from source using that branch. Otherwise, assuming everything checks out, it should make its way into the next release.

I should add, however, that I may have been running on the assumption that a contig's length is equal to the length of its sequence. So I fear this could result in strange behaviour or crashes when these two values are not the same. I'll see if I can find any issues.

from bandage.

lh3 avatar lh3 commented on September 13, 2024

Thanks for the quick response. In GFA, sequence can be a star "*", indicating the sequence is not available. You can take "LN" in this case. When both sequence and LN are present, you may ignore LN and trust the sequence length, or throw an error/warning if LN is conflictive.

from bandage.

rrwick avatar rrwick commented on September 13, 2024

Ah, I had forgotten about that. I've now done a couple more additions (again to the development branch), which take the star into account.

Here's the current behaviour: if the sequence is a star or totally blank, Bandage looks to the LN tag for length. Otherwise, it uses the sequence length.

When saving a graph to file, Bandage will use the star for contigs with missing sequences. But when you are extracting a sequence out of the graph (e.g. as part of a path), it will fill in missing sequences with the appropriate number of Ns.

from bandage.

lh3 avatar lh3 commented on September 13, 2024

Sound great. I am closing this issue. Thanks a lot.

from bandage.

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.