Giter Club home page Giter Club logo

Comments (7)

peterjc avatar peterjc commented on September 27, 2024

I agree the SAM/BAM specification isn't novice-friendly, but maybe it doesn't need to be? It should be a developer centric dry technical document, but supplemented by separate user-facing documentation provided from people using SAM/BAM.

from hts-specs.

kbradnam avatar kbradnam commented on September 27, 2024

That would be acceptable, but you would still ideally want to direct people to those more user-friendly sources of documentation from the main SAM documentation.

Most people will come across the current SAM documentation from a Google search for 'SAM format'.

from hts-specs.

dbolser avatar dbolser commented on September 27, 2024

There is space on SEQwiki for user created format information.
On 25 Nov 2014 21:01, "Keith Bradnam" [email protected] wrote:

That would be acceptable, but you would still ideally want to direct
people to those more user-friendly sources of documentation from the main
SAM documentation.

Most people will come across the current SAM documentation from a Google
search for 'SAM format'.


Reply to this email directly or view it on GitHub
#55 (comment).

from hts-specs.

PeteHaitch avatar PeteHaitch commented on September 27, 2024

FWIW, I've always found http://broadinstitute.github.io/picard/explain-flags.html a very handy calculator for SAM flags.

from hts-specs.

LutzFr avatar LutzFr commented on September 27, 2024

The incorporation of these binary flags in an otherwise "readable" format let's me mischievously suspect that they were intended as an obstacle in the first place.

from hts-specs.

lh3 avatar lh3 commented on September 27, 2024

Bit flag is a succinct way to encapsulate rich information. At the time of the first draft, it was not obvious how to represent multiple info in a readable style without greatly complicating the format. In the lack of an acceptable alternative, we kept the bit flag.

A few years later, I realized that we could use one character for each bit. This was the old samtools view -X output. In this representation, 99=0x63 becomes pP1R. It is more readable while maintaining a simple 1-to-1 translation to the bit flag. Nonetheless, the proposal was rejected by the consensus. Most considered this change too late as SAM was fairly mature.

from hts-specs.

LutzFr avatar LutzFr commented on September 27, 2024

Thanks Heng for the comment !
I just found today the, for me, so far best explanation of these flags and some tips on how to deal with them in python and perl scripts here: http://blog.nextgenetics.net/?e=18
I spend a long time searching for this info. For a simple minded biologist a simple letter code has its advantages.

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.