Skip to content

Commit

Permalink
Merge branch 'wdl1.0' into 'master'
Browse files Browse the repository at this point in the history
wdl translation to 1.0

See merge request mass-spectrometry/metams!1
  • Loading branch information
corilo committed May 14, 2024
2 parents a4fcc85 + 4f8fee3 commit dc62c93
Showing 1 changed file with 31 additions and 33 deletions.
64 changes: 31 additions & 33 deletions wdl/metaMS.wdl
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"

}

}

}

0 comments on commit dc62c93

Please sign in to comment.