-
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.
- Loading branch information
1 parent
23fb84d
commit f5d197f
Showing
13 changed files
with
35 additions
and
27 deletions.
There are no files selected for viewing
24 changes: 0 additions & 24 deletions
24
utils/extract-model-pdbqt-plugin/tests/test_extract_model_pdbqt.py
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/extract-model-pdbqt-plugin/ict.yml → ...e-change/extract-model-pdbqt-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: extract_model_pdbqt | ||
version: 0.1.0 | ||
container: extract-model-pdbqt-plugin | ||
container: extract-model-pdbqt-tool | ||
entrypoint: | ||
title: extract_model_pdbqt | ||
description: Extracts a model from a PDBQT file with several models. | ||
author: Data Scientist | ||
contact: [email protected] | ||
author: Brandon Walker, Nazanin Donyapour | ||
contact: [email protected], [email protected] | ||
repository: | ||
documentation: | ||
citation: | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
32 changes: 32 additions & 0 deletions
32
...s/pre-process/structure-change/extract-model-pdbqt-tool/tests/test_extract_model_pdbqt.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,32 @@ | ||
"""Tests for extract_model_pdbqt.""" | ||
from pathlib import Path | ||
|
||
from sophios.api.pythonapi import Step | ||
from sophios.api.pythonapi import Workflow | ||
|
||
|
||
def test_extract_model_pdbqt() -> None: | ||
"""Test extract_model_pdbqt.""" | ||
# Define paths and input properties | ||
cwl_file_str = "extract_model_pdbqt_0@[email protected]" | ||
cwl_file = Path(__file__).resolve().parent.parent / Path(cwl_file_str) | ||
input_pdbqt_path = Path(__file__).resolve().parent / Path("models.pdbqt") | ||
|
||
# Create the CWL step | ||
extract_model_pdbqt_step = Step(clt_path=cwl_file) | ||
extract_model_pdbqt_step.input_pdbqt_path = input_pdbqt_path | ||
extract_model_pdbqt_step.output_pdbqt_path = "system.pdbqt" | ||
|
||
# Create the workflow and run it | ||
steps = [extract_model_pdbqt_step] | ||
filename = "extract_model_pdbqt_workflow" | ||
workflow = Workflow(steps, filename) | ||
workflow.run() | ||
|
||
# Check for the expected output file | ||
outdir = Path("outdir") | ||
files = list(outdir.rglob("system.pdbqt")) | ||
|
||
assert ( | ||
files | ||
), f"The file 'system.pdbqt' does not exist in any subdirectory of '{outdir}'." |