Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions modules/meta-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,19 @@
"type": "string"
}
},
"extra_args": {
"type": "array",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The current implementation in tools that I used was an object/map:

extra_args:
  args:
    description: 'samtools index'

I found this reduced the duplication/nesting of the fields and felt more intuitive to write.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh ok, I missed that. But maybe we should make it an array, to be consistent with the other sections: tools, input, output.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would be pro consistency, I don't think it makes a huge amount of difference.

To copy @mirpedrol 's example on slack:

for a map we would write

extra_args:
  args:
    description: 'samtools index'

a list would be

extra_args:
  - args:
        description: 'samtools index'

Given the rest of the meta.yaml is using teh - bullet notation then I should already be able to intuite it I think.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with @awgymer that a key-val pair would be easier to use, but a list is more consistent with the rest of the tools. I'd prefer consistency here, so would go with an array.

"description": "Extra arguments for the module",
"items": {
"type" : "object",
"properties": {
"description": {
"type": "string",
"description": "Description of the argument"
}
}
}
},
"input": {
"type": "array",
"description": "Input channels for the module",
Expand Down
Loading