-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Brandon Duane Walker <[email protected]>
- Loading branch information
1 parent
871e79c
commit b09d841
Showing
14 changed files
with
39 additions
and
41 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
utils/grompp-plugin/ict.yml → ...ular-dynamics/gromacs/grompp-tool/ict.yml
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,12 +1,12 @@ | ||
specVersion: "0.1.0" | ||
name: grompp | ||
version: 0.1.0 | ||
container: grompp-plugin | ||
container: grompp-tool | ||
entrypoint: | ||
title: grompp | ||
description: Wrapper of the GROMACS grompp module. | ||
author: Data Scientist | ||
contact: [email protected] | ||
author: Brandon Walker, Nazanin Donyapour | ||
contact: [email protected], [email protected] | ||
repository: | ||
documentation: | ||
citation: | ||
|
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
35 changes: 35 additions & 0 deletions
35
utils/molecular-dynamics/gromacs/grompp-tool/tests/test_grompp.py
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
"""Tests for the GROMACS grompp tool.""" | ||
from pathlib import Path | ||
|
||
from sophios.api.pythonapi import Step | ||
from sophios.api.pythonapi import Workflow | ||
|
||
|
||
def test_grompp_cwl() -> None: | ||
"""Tests grompp.cwl.""" | ||
# Define paths and setup input properties | ||
cwl_file_str = "grompp_0@[email protected]" | ||
cwl_file = Path(__file__).resolve().parent.parent / Path(cwl_file_str) | ||
|
||
input_crd_path = Path(__file__).resolve().parent / Path("grompp.gro") | ||
input_top_zip_path = Path(__file__).resolve().parent / Path("grompp.zip") | ||
|
||
# Create the CWL step | ||
grompp_step = Step(clt_path=cwl_file) | ||
grompp_step.input_crd_path = input_crd_path | ||
grompp_step.input_top_zip_path = input_top_zip_path | ||
grompp_step.output_tpr_path = "system.tpr" | ||
|
||
# Create the workflow and run it | ||
steps = [grompp_step] | ||
filename = "grompp_workflow" | ||
workflow = Workflow(steps, filename) | ||
workflow.run() | ||
|
||
# Define output directory and check for expected output | ||
outdir = Path("outdir") | ||
files = list(outdir.rglob("system.tpr")) | ||
|
||
assert ( | ||
files | ||
), f"The file 'system.tpr' does not exist in any subdirectory of '{outdir}'." |