Mercurial > repos > galaxyp > openms_cometadapter
annotate PSMFeatureExtractor.patch @ 7:8779f1bd0f31 draft default tip
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 6e7368b7f178fbd1f08c28eea1b538add6943a65-dirty"
author | galaxyp |
---|---|
date | Sun, 13 Dec 2020 15:21:36 +0000 |
parents | 75e0c261bd1a |
children |
rev | line source |
---|---|
6
75e0c261bd1a
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 6e7368b7f178fbd1f08c28eea1b538add6943a65"
galaxyp
parents:
diff
changeset
|
1 --- PSMFeatureExtractor.xml 2020-12-13 14:58:44.721454176 +0100 |
75e0c261bd1a
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 6e7368b7f178fbd1f08c28eea1b538add6943a65"
galaxyp
parents:
diff
changeset
|
2 +++ PSMFeatureExtractor.xml 2020-12-13 14:57:59.719941465 +0100 |
75e0c261bd1a
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 6e7368b7f178fbd1f08c28eea1b538add6943a65"
galaxyp
parents:
diff
changeset
|
3 @@ -17,7 +17,11 @@ |
75e0c261bd1a
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 6e7368b7f178fbd1f08c28eea1b538add6943a65"
galaxyp
parents:
diff
changeset
|
4 |
75e0c261bd1a
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 6e7368b7f178fbd1f08c28eea1b538add6943a65"
galaxyp
parents:
diff
changeset
|
5 ## Preprocessing |
75e0c261bd1a
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 6e7368b7f178fbd1f08c28eea1b538add6943a65"
galaxyp
parents:
diff
changeset
|
6 mkdir in && |
75e0c261bd1a
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 6e7368b7f178fbd1f08c28eea1b538add6943a65"
galaxyp
parents:
diff
changeset
|
7 +if $in |
75e0c261bd1a
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 6e7368b7f178fbd1f08c28eea1b538add6943a65"
galaxyp
parents:
diff
changeset
|
8 ${ ' '.join(["ln -s '%s' 'in/%s.%s' &&" % (_, re.sub('[^\w\-_]', '_', _.element_identifier), $gxy2omsext(_.ext)) for _ in $in if _]) } |
75e0c261bd1a
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 6e7368b7f178fbd1f08c28eea1b538add6943a65"
galaxyp
parents:
diff
changeset
|
9 +#else if $in_single |
75e0c261bd1a
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 6e7368b7f178fbd1f08c28eea1b538add6943a65"
galaxyp
parents:
diff
changeset
|
10 + ln -s '$in_single' 'in/${re.sub("[^\w\-_]", "_", $in_single.element_identifier)}.$gxy2omsext($in_single.ext)' && |
75e0c261bd1a
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 6e7368b7f178fbd1f08c28eea1b538add6943a65"
galaxyp
parents:
diff
changeset
|
11 +#end if |
75e0c261bd1a
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 6e7368b7f178fbd1f08c28eea1b538add6943a65"
galaxyp
parents:
diff
changeset
|
12 mkdir out && |
75e0c261bd1a
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 6e7368b7f178fbd1f08c28eea1b538add6943a65"
galaxyp
parents:
diff
changeset
|
13 |
75e0c261bd1a
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 6e7368b7f178fbd1f08c28eea1b538add6943a65"
galaxyp
parents:
diff
changeset
|
14 ## Main program call |
75e0c261bd1a
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 6e7368b7f178fbd1f08c28eea1b538add6943a65"
galaxyp
parents:
diff
changeset
|
15 @@ -27,7 +31,11 @@ |
75e0c261bd1a
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 6e7368b7f178fbd1f08c28eea1b538add6943a65"
galaxyp
parents:
diff
changeset
|
16 python3 '$__tool_directory__/fill_ctd.py' '@EXECUTABLE@.ctd' '$args_json' '$hardcoded_json' && |
75e0c261bd1a
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 6e7368b7f178fbd1f08c28eea1b538add6943a65"
galaxyp
parents:
diff
changeset
|
17 @EXECUTABLE@ -ini @EXECUTABLE@.ctd |
75e0c261bd1a
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 6e7368b7f178fbd1f08c28eea1b538add6943a65"
galaxyp
parents:
diff
changeset
|
18 -in |
75e0c261bd1a
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 6e7368b7f178fbd1f08c28eea1b538add6943a65"
galaxyp
parents:
diff
changeset
|
19 +if $in |
75e0c261bd1a
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 6e7368b7f178fbd1f08c28eea1b538add6943a65"
galaxyp
parents:
diff
changeset
|
20 ${' '.join(["'in/%s.%s'"%(re.sub('[^\w\-_]', '_', _.element_identifier), $gxy2omsext(_.ext)) for _ in $in if _])} |
75e0c261bd1a
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 6e7368b7f178fbd1f08c28eea1b538add6943a65"
galaxyp
parents:
diff
changeset
|
21 +#else if $in_single |
75e0c261bd1a
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 6e7368b7f178fbd1f08c28eea1b538add6943a65"
galaxyp
parents:
diff
changeset
|
22 +'in/${re.sub("[^\w\-_]", "_", $in_single.element_identifier)}.$gxy2omsext($in_single.ext)' && |
75e0c261bd1a
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 6e7368b7f178fbd1f08c28eea1b538add6943a65"
galaxyp
parents:
diff
changeset
|
23 +#end if |
75e0c261bd1a
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 6e7368b7f178fbd1f08c28eea1b538add6943a65"
galaxyp
parents:
diff
changeset
|
24 -out |
75e0c261bd1a
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 6e7368b7f178fbd1f08c28eea1b538add6943a65"
galaxyp
parents:
diff
changeset
|
25 'out/output.${out_type}' |
75e0c261bd1a
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 6e7368b7f178fbd1f08c28eea1b538add6943a65"
galaxyp
parents:
diff
changeset
|
26 |
75e0c261bd1a
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 6e7368b7f178fbd1f08c28eea1b538add6943a65"
galaxyp
parents:
diff
changeset
|
27 @@ -41,7 +49,8 @@ |
75e0c261bd1a
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 6e7368b7f178fbd1f08c28eea1b538add6943a65"
galaxyp
parents:
diff
changeset
|
28 <configfile name="hardcoded_json"><![CDATA[{"log": "log.txt", "threads": "\${GALAXY_SLOTS:-1}", "no_progress": true}]]></configfile> |
75e0c261bd1a
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 6e7368b7f178fbd1f08c28eea1b538add6943a65"
galaxyp
parents:
diff
changeset
|
29 </configfiles> |
75e0c261bd1a
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 6e7368b7f178fbd1f08c28eea1b538add6943a65"
galaxyp
parents:
diff
changeset
|
30 <inputs> |
75e0c261bd1a
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 6e7368b7f178fbd1f08c28eea1b538add6943a65"
galaxyp
parents:
diff
changeset
|
31 - <param name="in" argument="-in" type="data" format="idxml,mzid" multiple="true" optional="false" label="Input file(s)" help=" select idxml,mzid data sets(s)"/> |
75e0c261bd1a
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 6e7368b7f178fbd1f08c28eea1b538add6943a65"
galaxyp
parents:
diff
changeset
|
32 + <param name="in_single" argument="-in" type="data" format="idxml,mzid" multiple="false" optional="true" label="Input file for batch processing" help="(exactly one of -in or -in_list is required)"/> |
75e0c261bd1a
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 6e7368b7f178fbd1f08c28eea1b538add6943a65"
galaxyp
parents:
diff
changeset
|
33 + <param name="in" argument="-in" type="data" format="idxml,mzid" multiple="true" optional="true" label="Input file(s) for joint processing" help="(exactly one of -in or -in_list is required)"/> |
75e0c261bd1a
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 6e7368b7f178fbd1f08c28eea1b538add6943a65"
galaxyp
parents:
diff
changeset
|
34 <param name="out_type" argument="-out_type" display="radio" type="select" optional="false" label="Output file type -- default: determined from file extension or content" help=""> |
75e0c261bd1a
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 6e7368b7f178fbd1f08c28eea1b538add6943a65"
galaxyp
parents:
diff
changeset
|
35 <option value="idXML">idxml</option> |
75e0c261bd1a
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/openms commit 6e7368b7f178fbd1f08c28eea1b538add6943a65"
galaxyp
parents:
diff
changeset
|
36 <option value="mzid">mzid</option> |