-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove some hardcoding for prefix output param
- Loading branch information
1 parent
f34809b
commit d5d2208
Showing
2 changed files
with
14 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,9 @@ | |
## Preprocessing | ||
mkdir in && | ||
cp '$in' 'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)' && | ||
mkdir outputDirectory && | ||
#if "outputDirectory_FLAG" in str($OPTIONAL_OUTPUTS).split(',') | ||
mkdir adv_opts.outputDirectory && | ||
#end if | ||
#if "out_qc_FLAG" in str($OPTIONAL_OUTPUTS).split(',') | ||
mkdir out_qc && | ||
#end if | ||
|
@@ -28,8 +30,10 @@ python3 '$__tool_directory__/fill_ctd.py' '@[email protected]' '$args_json' '$hard | |
@EXECUTABLE@ -ini @[email protected] | ||
-in | ||
'in/${re.sub("[^\w\-_]", "_", $in.element_identifier)}.$gxy2omsext($in.ext)' | ||
-outputDirectory | ||
outputDirectory/ | ||
#if "outputDirectory_FLAG" in str($OPTIONAL_OUTPUTS).split(',') | ||
-outputDirectory | ||
adv_opts.outputDirectory/ | ||
#end if | ||
#if "out_qc_FLAG" in str($OPTIONAL_OUTPUTS).split(',') | ||
-out_qc | ||
'out_qc/output.${gxy2omsext("json")}' | ||
|
@@ -58,17 +62,22 @@ outputDirectory/ | |
</param> | ||
</expand> | ||
<param name="OPTIONAL_OUTPUTS" type="select" optional="true" multiple="true" label="Optional outputs"> | ||
<option value="outputDirectory_FLAG">outputDirectory (Output file prefix)</option> | ||
<option value="out_qc_FLAG">out_qc (Optional QC meta data (charge distribution in MS1))</option> | ||
<option value="ctd_out_FLAG">Output used ctd (ini) configuration file</option> | ||
</param> | ||
</inputs> | ||
<outputs> | ||
<collection type="list" name="outputDirectory" label="${tool.name} on ${on_string}: outputDirectory"> | ||
<discover_datasets directory="outputDirectory" recurse="true" format="mzml" pattern="_?(?P<designation>.*)\.[^.]*"/> | ||
<collection type="list" name="adv_opts_outputDirectory" label="${tool.name} on ${on_string}: outputDirectory"> | ||
<discover_datasets directory="adv_opts_outputDirectory" recurse="true" format="txt" pattern="_?(?P<designation>.*)\.[^.]*"/> | ||
<filter>OPTIONAL_OUTPUTS is not None and "outputDirectory_FLAG" in OPTIONAL_OUTPUTS</filter> | ||
</collection> | ||
<data name="out_qc" label="${tool.name} on ${on_string}: out_qc" format="json"> | ||
<filter>OPTIONAL_OUTPUTS is not None and "out_qc_FLAG" in OPTIONAL_OUTPUTS</filter> | ||
</data> | ||
<data name="stdout" format="txt" label="${tool.name} on ${on_string}: stdout"> | ||
<filter>OPTIONAL_OUTPUTS is None</filter> | ||
</data> | ||
<data name="ctd_out" format="xml" label="${tool.name} on ${on_string}: ctd"> | ||
<filter>OPTIONAL_OUTPUTS is not None and "ctd_out_FLAG" in OPTIONAL_OUTPUTS</filter> | ||
</data> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters