Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Facultative CAM in Talinum
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dominik Brilhaus
Facultative CAM in Talinum
Merge requests
!20
Cwl metadata
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Cwl metadata
cwl-metadata
into
main
Overview
0
Commits
3
Pipelines
2
Changes
10
Merged
Dominik Brilhaus
requested to merge
cwl-metadata
into
main
1 month ago
Overview
0
Commits
3
Pipelines
2
Changes
10
Expand
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
ed571049
3 commits,
1 month ago
10 files
+
171
−
8
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
10
Search (e.g. *.vue) (Ctrl+P)
.cwl/cwl-metadata-checklist.md
0 → 100644
+
80
−
0
Options
# Checklist for good CWL documents
based on recommendations from:
-
https://www.commonwl.org/user_guide/topics/best-practices.html
-
https://www.commonwl.org/user_guide/topics/metadata-and-authorship.html
-
[
Design
](
#design
)
-
[
Single-step first
](
#single-step-first
)
-
[
Dependencies
](
#dependencies
)
-
[
Soft requirements = `hints`
](
#soft-requirements--hints
)
-
[
Hard requirements = `requirements`
](
#hard-requirements--requirements
)
-
[
Metadata
](
#metadata
)
-
[
Namespaces and schemas
](
#namespaces-and-schemas
)
## Design
### Keep it Simple: Single-step
-
follow the
[
KISS principle
](
https://en.wikipedia.org/wiki/KISS_principle
)
-
a
`CommandLineTool`
document should only execute one process
-
use
`Workflow`
documents to design more complex, multi-step pipelines
-
use
`scatter`
to execute the process on multiple inputs
-
do not hard code input, output paths
## Dependencies
### Soft requirements = `hints`
Specify software and resource requirements under
`hints`
-
add
`SoftwareRequirement`
to specify software version and reference
-
`package: `
name of the software or package
-
`specs: `
reference url from https://identifiers.org/biotools/ or SciCrunch https://identifiers.org/rrid/
-
`version: [ "0.11.9" ]`
-
add
`DockerRequirement`
-
reference a local
`Dockerfile`
or a published Docker image
-
add
`ResourceRequirement`
to specify the required compute resources
### Hard requirements = `requirements`
Use the
`requirements`
primarily to specify hard requirements needed to run the current
`CommandLineTool`
or
`Workflow`
document
## Metadata
### Namespaces and schemas
Adding namespaces and schemas allows to reuse them elsewhere in a CWL document
```
yaml
$namespaces
:
s
:
https://schema.org/
edam
:
http://edamontology.org/
$schemas
:
-
https://schema.org/version/latest/schemaorg-current-https.rdf
-
http://edamontology.org/EDAM_1.18.owl
```
### Attribute authors and contributors
```
yaml
s:author
:
-
class
:
s:Person
s:identifier
:
<author ORCID>
s:email
:
mailto:<author email>
s:name
:
<author name>
s:contributor
:
-
class
:
s:Person
s:identifier
:
<contributor ORCID>
s:email
:
mailto:<contributor email>
s:name
:
<contributor name>
s:citation
:
<DOI to software paper>
s:codeRepository
:
<URL to software repo (e.g. github)>
s:dateCreated
:
"
2016-12-13"
s:license
:
<URL to license, e.g. from https://spdx.org/licenses/>
```
Loading