-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wdl translation to 1.0 See merge request mass-spectrometry/metams!1
- Loading branch information
Showing
1 changed file
with
31 additions
and
33 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 |
---|---|---|
@@ -1,48 +1,46 @@ | ||
version 1.0 | ||
|
||
workflow gcmsMetabolomics { | ||
|
||
call runMetaMS | ||
} | ||
task runMetaMS { | ||
|
||
Array[File] file_paths | ||
|
||
File calibration_file_path | ||
|
||
String output_directory | ||
|
||
String output_filename | ||
|
||
String output_type | ||
|
||
File corems_toml_path | ||
output { | ||
String out = runMetaMS.out | ||
File output_file = runMetaMS.output_file | ||
File output_metafile = runMetaMS.output_metafile | ||
} | ||
} | ||
|
||
File nmdc_metadata_path | ||
task runMetaMS { | ||
input { | ||
Array[File] file_paths | ||
File calibration_file_path | ||
String output_directory | ||
String output_filename | ||
String output_type | ||
File corems_toml_path | ||
File nmdc_metadata_path | ||
Int jobs_count | ||
} | ||
|
||
Int jobs_count | ||
|
||
command { | ||
|
||
metaMS run-gcms-wdl-workflow ${sep=',' file_paths} \ | ||
${calibration_file_path} \ | ||
${output_directory} \ | ||
${output_filename} \ | ||
${output_type} \ | ||
${corems_toml_path} \ | ||
${nmdc_metadata_path} \ | ||
--jobs ${jobs_count} | ||
metaMS run-gcms-wdl-workflow \ | ||
${sep=',' file_paths} \ | ||
${calibration_file_path} \ | ||
${output_directory} \ | ||
${output_filename} \ | ||
${output_type} \ | ||
${corems_toml_path} \ | ||
${nmdc_metadata_path} \ | ||
--jobs ${jobs_count} | ||
} | ||
|
||
output { | ||
|
||
String out = read_string(stdout()) | ||
File output_file = "${output_directory}/${output_filename}.${output_type}" | ||
File output_metafile = "${output_directory}/${output_filename}.json" | ||
File output_metafile = "${output_directory}/${output_filename}.json" | ||
} | ||
|
||
runtime { | ||
docker: "microbiomedata/metams:2.2.2" | ||
|
||
} | ||
|
||
} | ||
|
||
} |