Skip to content

Commit

Permalink
Begin to specify wdl calls for gcms
Browse files Browse the repository at this point in the history
  • Loading branch information
kheal committed Sep 23, 2024
1 parent 34e822d commit 53d609c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/wdl_checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
- name: Run MiniWDL
run: |
# Add the commands to run your MiniWDL workflow
miniwdl run wdl/metaMS.wdl -i wdl/metams_input.json --verbose --no-cache --copy-input-files
miniwdl run wdl/metaMS_gcms.wdl -i wdl/metams_input.json --verbose --no-cache --copy-input-files
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ To be able to open chemstation files a installation of pythonnet is needed:
## Execution

```bash
metaMS dump-toml-template metams.toml
metaMS dump-gcms-toml-template metams.toml
```
```bash
metaMS dump-corems-toml-template corems.toml
metaMS dump-gcms-corems-toml-template corems.toml
```

Modify the metams.toml and corems.toml accordingly to your dataset and workflow parameters
Expand Down
10 changes: 5 additions & 5 deletions metaMS/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,20 @@ def run_gcms_workflow(gcms_workflow_paramaters_file, jobs, nmdc):
else:
run_gcms_metabolomics_workflow(gcms_workflow_paramaters_file, jobs)

@cli.command()
@cli.command(name='dump-gcms-toml-template')
@click.argument('toml_file_name', required=True, type=str)
def dump_toml_template(toml_file_name):
def dump_gcms_toml_template(toml_file_name):
'''Dumps a toml file template
to be used as the workflow parameters input
to be used as the workflow parameters input for the GCMS workflow
'''
ref_lib_path = Path(toml_file_name).with_suffix('.toml')
with open(ref_lib_path, 'w') as workflow_param:

toml.dump(WorkflowParameters().__dict__, workflow_param)

@cli.command()
@cli.command(name='dump-corems-toml-template')
@click.argument('toml_file_name', required=True, type=str)
def dump_corems_toml_template(toml_file_name):
def dump_gcms_corems_toml_template(toml_file_name):
'''Dumps a CoreMS toml file template
to be used as the workflow parameters input
'''
Expand Down
File renamed without changes.

0 comments on commit 53d609c

Please sign in to comment.