Git Product home page Git Product logo

Comments (4)

grst avatar grst commented on July 28, 2024

I thought JSON is a bit out-of-fashion nowadays in favor of YAML/TOML as it's harder to read/write for human beings.

Is there no way of simplifying the config file instead? For instance, why can't this

input:
    -
        - input:
            type: file
            description: Input BAM or CRAM file
            pattern: *.{bam,cram}

just be that?

input:
        - input:
            type: file
            description: Input BAM or CRAM file
            pattern: *.{bam,cram}

(or in TOML)

[input]
  [input]
  type="file"
  description="Input BAM"
  pattern="*.{bam,cream"

from modules.

ewels avatar ewels commented on July 28, 2024

There was a reason.. Off the top of my head I think it was because inputs can have more than one item - eg. sample name and input file. So needs to be a nested list.

I agree that YAML is easier to read for simple stuff, but my point with this issue is that if we need more complex structures then it gets really easy to mess up YAML. JSON tends to be more verbose and clear in this case I think.

from modules.

ewels avatar ewels commented on July 28, 2024

NB: Maybe it’s massive overkill to record the inputs and outputs in this file. I was just putting down everything I could think of. In which case, yeah maybe the (existing) YAML is fine / better.

from modules.

drpatelh avatar drpatelh commented on July 28, 2024

I think we have somewhat come to a consensus as to the format and content of this file (YAML) having voted on Slack recently to have a description, inputs, outputs and authors section.

from modules.

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.