Skip to content

Commit fa7a2e6

Browse files
Christoph JansenChristoph Jansen
Christoph Jansen
authored and
Christoph Jansen
committed
knime 0.2; compatibility with cwltool and cc
1 parent 8491170 commit fa7a2e6

6 files changed

+56
-17
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
.idea
22
outputs
3+
labelfree_example*
4+
*.log
5+
*.csv

README.md

+31-5
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,42 @@
22

33
This is the [KNIME Labelfree Quantification](http://citar.eaas.uni-freiburg.de/citar-headless-client/?id=188b6194-ea68-4e59-88c2-61d652941e29#/container-landing-page) workflow. We have extended the original [Docker image](https://hub.docker.com/r/fbartusch/knime-labelfree-quantification/tags) to be compatible with [RED and Curious Containers](https://www.curious-containers.cc).
44

5-
## Run Experiment
5+
## Execute from Reproducible Experiment Description (RED)
66

77
```bash
88
# install CC-FAICE
9-
pip3 install --user cc-faice==7.*
10-
faice --version
9+
pip3 install --user pipx
10+
pipx install cc-faice==7.*
1111

12-
# execute RED experiment
13-
cd knime-labelfree-quantification-experiments
12+
13+
# prepare
14+
cd knime-labelfree-quantification
15+
16+
# execute
1417
faice agent red knime-labelfree-quantification.red.yml
18+
19+
# check outputs
20+
ls outputs/*
21+
```
22+
23+
## Alternative: Execute from Common Workflow Language (CWL)
24+
25+
```bash
26+
# install CWLTool
27+
pip3 install --user pipx
28+
pipx install cwltool
29+
30+
# prepare
31+
cd knime-labelfree-quantification
32+
curl -fOL https://s3.denbi.uni-tuebingen.de/fb-test/demo_container/cibi_user_meeting_2018/labelfree_example.tar.gz
33+
mkdir labelfree_example
34+
tar -zxvf labelfree_example.tar.gz -C labelfree_example
35+
36+
# execute
37+
cwltool knime-labelfree-quantification.cwl.yml job.yml
38+
39+
# check outputs
40+
ls *.csv *.log
1541
```
1642

1743
## Resources

generate-red.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
with open('knime-labelfree-quantification.cwl.yml') as f:
88
cwl = yaml.load(f)
99

10+
del cwl['requirements']
11+
1012
red = {
1113
'redVersion': '7',
1214
'cli': cwl,
@@ -69,7 +71,7 @@
6971
'engine': 'docker',
7072
'settings': {
7173
'image': {
72-
'url': 'docker.io/deepprojects/knime-labelfree-quantification:dev'
74+
'url': 'docker.io/deepprojects/knime-labelfree-quantification:0.2'
7375
}
7476
}
7577
}

job.yml

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
input_dir:
2+
class: "Directory"
3+
location: "labelfree_example"
4+
database_name: "s_pyo_sf370_potato_human_target_decoy_with_contaminants.fasta"

knime-labelfree-quantification.cwl.yml

+9-5
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,24 @@ outputs:
1919
execute_log:
2020
type: "File"
2121
outputBinding:
22-
glob: "/output/execute.log"
22+
glob: "execute.log"
2323
peptide_background_quantification:
2424
type: "File"
2525
outputBinding:
26-
glob: "/output/peptide_background_quantification.csv"
26+
glob: "peptide_background_quantification.csv"
2727
protein_background_quantification:
2828
type: "File"
2929
outputBinding:
30-
glob: "/output/protein_background_quantification.csv"
30+
glob: "protein_background_quantification.csv"
3131
peptide_quantification:
3232
type: "File"
3333
outputBinding:
34-
glob: "/output/peptide_quantification.csv"
34+
glob: "peptide_quantification.csv"
3535
protein_quantification:
3636
type: "File"
3737
outputBinding:
38-
glob: "/output/protein_quantification.csv"
38+
glob: "protein_quantification.csv"
39+
40+
requirements:
41+
DockerRequirement:
42+
dockerPull: "docker.io/deepprojects/knime-labelfree-quantification:0.2"

knime-labelfree-quantification.red.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,24 @@ cli:
1414
type: Directory
1515
outputs:
1616
execute_log:
17-
outputBinding: {glob: /output/execute.log}
17+
outputBinding: {glob: execute.log}
1818
type: File
1919
peptide_background_quantification:
20-
outputBinding: {glob: /output/peptide_background_quantification.csv}
20+
outputBinding: {glob: peptide_background_quantification.csv}
2121
type: File
2222
peptide_quantification:
23-
outputBinding: {glob: /output/peptide_quantification.csv}
23+
outputBinding: {glob: peptide_quantification.csv}
2424
type: File
2525
protein_background_quantification:
26-
outputBinding: {glob: /output/protein_background_quantification.csv}
26+
outputBinding: {glob: protein_background_quantification.csv}
2727
type: File
2828
protein_quantification:
29-
outputBinding: {glob: /output/protein_quantification.csv}
29+
outputBinding: {glob: protein_quantification.csv}
3030
type: File
3131
container:
3232
engine: docker
3333
settings:
34-
image: {url: 'docker.io/deepprojects/knime-labelfree-quantification:dev'}
34+
image: {url: 'docker.io/deepprojects/knime-labelfree-quantification:0.2'}
3535
inputs:
3636
database_name: s_pyo_sf370_potato_human_target_decoy_with_contaminants.fasta
3737
input_dir:

0 commit comments

Comments
 (0)