Giter Club home page Giter Club logo

Comments (3)

arlin avatar arlin commented on June 25, 2024

In the SAM/BAM format spec, it's confusing to describe "TLEN" as a "signed length", because lengths are non-negative quantities. TLEN could be described more clearly as an "offset". It is the observed offset from one end of the template to the other. For the leftmost segment, the offset is positive. For the rightmost, it is negative. In other cases it is undefined or 0.

from hts-specs.

jmarshall avatar jmarshall commented on June 25, 2024

You are correct about the flags in the example, and I am in the process of fixing it.

IMHO it's barely reasonable to describe something as a signed length, to mean a length (which is of course unsigned) together with a sign attached to it denoting something related. However in any case, we've been reworking the description of TLEN to hopefully make it clearer -- please have a look at #23 and comment there on whether you think it's an improvement.

from hts-specs.

arlin avatar arlin commented on June 25, 2024

The same change to the flags needs to be made for the padded SAM version of the same example that is provided in section 3.2. That is, the flags 163 and 83 for the first and last reads of qname=r001 should be 99 and 147, respectively. Sorry for not mentioning this previously-- I hadn't finished working all the way through the spec.

from hts-specs.

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.