Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add spec on software dependencies #67

Merged
merged 4 commits into from
Nov 23, 2023
Merged
Show file tree
Hide file tree
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
21 changes: 21 additions & 0 deletions docs/profiles/0.4-DRAFT/process_run_crate.md
Original file line number Diff line number Diff line change
Expand Up @@ -466,3 +466,24 @@ Alternatively, the `containerImage` could point to a `URL`. For instance:
"containerImage": "https://example.com/samtools.sif"
}
```


## Specifying software dependencies

Software dependencies MAY be specified using `softwareRequirements` to a `SoftwareApplication`:

```json
{
"@id": "script.py",
"@type": "SoftwareApplication",
"name": "Analysis Script",
"version": "0.1",
"softwareRequirements": {"@id": "https://pypi.org/project/numpy/1.26.2/"}
},
{
"@id": "https://pypi.org/project/numpy/1.26.2/",
"@type": "SoftwareApplication",
"name": "NumPy",
"version": "1.26.2"
}
```
28 changes: 28 additions & 0 deletions docs/profiles/0.4-DRAFT/provenance_run_crate.md
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,34 @@ A workflow engine may support configuration through a configuration file. In thi
See also the [section on referencing configuration files of executed tools](process_run_crate#referencing-configuration-files).


## Tool wrapper dependencies

In some workflow systems (e.g., CWL, Galaxy), tools are typically wrappers for an executable written in a scripting programming language. This MAY be represented by listing the wrapped tool and its dependencies as described in [Specifying software dependencies](process_run_crate#specifying-software-dependencies). The wrapped tool can be highlighted by using `mainEntity`:

```json
{
"@id": "data_analysis_tool.cwl",
"@type": "SoftwareApplication",
"softwareRequirements": [
{"@id": "scripts/data_analysis_script.py"},
{"@id": "https://pypi.org/project/numpy/1.26.2/"}
],
"mainEntity": {"@id": "scripts/data_analysis_script.py"}
},
{
"@id": "scripts/data_analysis_script.py",
"@type": "SoftwareApplication",
"version": "0.1"
},
{
"@id": "https://pypi.org/project/numpy/1.26.2/",
"@type": "SoftwareApplication",
"name": "NumPy",
"version": "1.26.2"
}
```


## Requirements

The requirements of this profile are those of [Workflow Run Crate](workflow_run_crate) plus the ones listed below.
Expand Down