Giter Club home page Giter Club logo

Comments (2)

jmarshall avatar jmarshall commented on June 29, 2024

Existing practice and the description of the field as an insert size make it clear that the field value is numeric.

HTSJDK and Picard have always enforced that the field value be an integer. See samtools/htsjdk@2799b1f and the output from picard ValidateSamFile I=test/sam/passed/hdr.RG9.sam in the latest release:

ERROR::INVALID_PREDICTED_MEDIAN_INSERT_SIZE:Error parsing SAM header. PI is not numeric: 123.456. 

Hence my recommendation would be that we clarify that this is an integer. Proposed text is in PR #721.

from hts-specs.

jkbonfield avatar jkbonfield commented on June 29, 2024

Good catch given I wrote most of the test data and hadn't spotted htsjdk rejects the floating point nature. Really, since when have continuous things like means been acceptable only as integer? I don't know why they expected integer only, given ParseFloat would work just fine on integer values.

I thought however I'd tested picard on most of the test data and looked over the causes of the failures. I guess I somehow missed that one (or it's changed since, but that seems unlikely).

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.