-
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
5965ec4
commit fb47176
Showing
19 changed files
with
52 additions
and
47 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
utils/rename-residues-mol-plugin/Dockerfile → ...anges/rename-residues-mol-tool/Dockerfile
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.
4 changes: 4 additions & 0 deletions
4
utils/pre-process/structure-changes/rename-residues-mol-tool/build-docker.sh
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,4 @@ | ||
#!/bin/bash | ||
|
||
version=$(<VERSION) | ||
docker build . -t polusai/rename-residues-mol-tool:${version} |
2 changes: 1 addition & 1 deletion
2
utils/rename-residues-mol-plugin/ict.yml → ...-changes/rename-residues-mol-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
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
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.
File renamed without changes.
File renamed without changes.
44 changes: 44 additions & 0 deletions
44
.../pre-process/structure-changes/rename-residues-mol-tool/tests/test_rename_residues_mol.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,44 @@ | ||
"""Tests for rename_residues_mol.""" | ||
from pathlib import Path | ||
|
||
from polus.mm.utils.rename_residues_mol.rename_residues_mol import rename_residues_mol | ||
from sophios.api.pythonapi import Step | ||
from sophios.api.pythonapi import Workflow | ||
|
||
|
||
def test_rename_residues_mol() -> None: | ||
"""Test rename_residues_mol.""" | ||
input_mol2_path = "5umx_ligand.mol2" | ||
input_mol2_path_path = Path(__file__).resolve().parent / Path(input_mol2_path) | ||
output_mol2_path = "output.mol2" | ||
rename_residues_mol(input_mol2_path_path, output_mol2_path) | ||
assert Path(output_mol2_path).exists() | ||
|
||
|
||
def test_rename_residues_mol_cwl() -> None: | ||
"""Test rename_residues_mol CWL.""" | ||
cwl_file_str = "rename_residues_mol_0@[email protected]" | ||
cwl_file = Path(__file__).resolve().parent.parent / Path(cwl_file_str) | ||
|
||
# Create a Step instance | ||
rename_residues_step = Step(clt_path=cwl_file) | ||
|
||
# Define input paths | ||
input_mol2_path = Path(__file__).resolve().parent / "5umx_ligand.mol2" | ||
rename_residues_step.input_mol2_path = input_mol2_path | ||
rename_residues_step.output_mol2_path = "system.mol2" | ||
|
||
# Create a Workflow instance | ||
steps = [rename_residues_step] | ||
viz = Workflow(steps, "rename_residues_mol") | ||
|
||
# Run the workflow | ||
viz.run() | ||
|
||
# Check if the expected output file exists | ||
outdir = Path("outdir") | ||
files = list(outdir.rglob("system.mol2")) | ||
|
||
assert ( | ||
files | ||
), f"The file 'system.mol2' does not exist in any subdirectory of '{outdir}'." |
This file was deleted.
Oops, something went wrong.
38 changes: 0 additions & 38 deletions
38
utils/rename-residues-mol-plugin/tests/test_rename_residues_mol.py
This file was deleted.
Oops, something went wrong.