Code Monkey home page Code Monkey logo

Comments (4)

rsharris avatar rsharris commented on August 10, 2024

from bx-python.

rsharris avatar rsharris commented on August 10, 2024

Continuing that thought ... from what you've reported it appears that the lookup always considers the position to be on the forward strand, and the resulting start position is reported along whatever strand the alignment is on.

I wonder if that is documented anywhere.

from bx-python.

dandaman avatar dandaman commented on August 10, 2024

You're right. I did forget about how MAF represents alignments on the negative strand :-(

It's mentioned in the documentation of slice_by_component and I overread it.

I solved my issue by checking the returned alignment strand for my target sequence and the reverse complementing it.

I've updated my example repo and keeping it in case anyone falls into the same trap I have.
Updated the master of my repo accordingly. https://github.com/dandaman/bxmafissue/blob/master/BugTracer.ipynb

If you're not very familiar with MAF it might be a common misconception. Dealing with GFF3 or VCF you'd expect different. Maybe also add this to the doc of get() and point to the MAF standard description at ucsc or so.

From my side we can close this issue, Bob. Thanks for your explanation and for your work on bx-python!

from bx-python.

rsharris avatar rsharris commented on August 10, 2024

Reverse-strand treatment, as well as origin-zero vs origin-one, pop up over and over on forums. Reverse strand in MAF bit me early on, probably in 2004.

It would be helpful if the situation you encountered was in some bx-python doc, e.g. if there is an example of how to use maf index lookup it ought to include an example where the 'hit' is on the reverse strand.

I haven't been a contributor to bx-python in over a decade. And my contribution was pretty small to begin with. I haven't been active in the project as it has matured and improved, and with James' death I don't know any of the people who have done that work. But I do occasionally respond to issues when I think I can understand them.

from bx-python.

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.