Giter Club home page Giter Club logo

Comments (6)

eitanbanks avatar eitanbanks commented on June 26, 2024

My vote is that they be treated just like any other header lines: they are optional but if present must be well-formed.
Note that tools may still choose to require them (and will exit with a friendly error saying "sorry, but we won't process your VCF until it has them included"). But the spec doesn't need to enforce that.

from hts-specs.

pd3 avatar pd3 commented on June 26, 2024

@eitanbanks +1 from me.

However, to make it clear that we do not encourage undefined tags, I included the following sentence in the draft:

Note that BCF, the binary counterpart of VCF, requires that all entries are
present, therefore the use of undefined tags is strongly discouraged.

from hts-specs.

cyenyxe avatar cyenyxe commented on June 26, 2024

Thank you both for your answers, I agree with the "optional but well-formed if present" idea. The BCF note is also adequate, but I still find the previous paragraph confusing.

If I can make a suggestion, I would write something like the following. The order is somewhat changed to refer first to meta-information lines in general, then recommendations for specific tags.

File meta-information is included after the ## string and must be key=value
pairs. Meta-information lines are optional, but if they are present then
they must be completely well-formed {\color{red} and their ID must be
unique within their type. Note that BCF, the binary counterpart of VCF, requires
that all entries are present.

It is strongly encouraged to include meta-information lines describing the \texttt{INFO},
\texttt{FILTER}, \texttt{FORMAT} and {\color{red}\texttt{contig}} entries used
in the body of the VCF file.

Meta-information lines can be in any order with the exception of fileformat
which must come first.

Please let me know your opinions, and if I should make a PR for this.

from hts-specs.

pd3 avatar pd3 commented on June 26, 2024

I think that reads better, thank you. There was a proposal discussed at length offline to make the ID attribute mandatory for all structured values. With this addition, the section would read like this:

File meta-information is included after the ## string and must be key=value
pairs. Meta-information lines are optional, but if they are present then
they must be completely well-formed. {\color{red} Note that BCF, the binary
counterpart of VCF, requires that all entries are present. It is strongly
encouraged to include meta-information lines describing the entries used in the
body of the VCF file.

All structured lines that have their value enclosed within "$<>$" require an ID
which must be unique within their type.

Meta-information lines can be in any order with the exception of fileformat
which must come first.}

from hts-specs.

cyenyxe avatar cyenyxe commented on June 26, 2024

Looks good to me :)

from hts-specs.

pd3 avatar pd3 commented on June 26, 2024

Since there were no further comments, I am closing the issue as solved.

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.