Skip to content

Commit

Permalink
refactor zip_top
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Duane Walker authored and misterbrandonwalker committed Jul 23, 2024
1 parent 23fb84d commit 984c251
Show file tree
Hide file tree
Showing 17 changed files with 47 additions and 74,477 deletions.
2 changes: 2 additions & 0 deletions utils/pre-process/structure-change/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.top filter=lfs diff=lfs merge=lfs -text
*.itp filter=lfs diff=lfs merge=lfs -text
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
specVersion: "0.1.0"
name: zip_top
version: 0.1.0
container: zip-top-plugin
container: zip-top-tool
entrypoint:
title: zip_top
description: zips a gromacs topology TOP file (and/or itp include file).
author: Data Scientist
contact: [email protected]
author: Brandon Walker, Nazanin Donyapour
contact: [email protected], [email protected]
repository:
documentation:
citation:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ readme = "README.md"

[tool.poetry.dependencies]
python = ">=3.9,<3.12"
typer = "^0.7.0"
cwl-utils = "0.33"
cwltool = "3.1.20240404144621"
sophios = "0.1.1"

[tool.poetry.group.dev.dependencies]
bump2version = "^1.0.1"
Expand Down
Git LFS file not shown
Git LFS file not shown
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
"""Tests for zip_top."""
from pathlib import Path

from sophios.api.pythonapi import Step
from sophios.api.pythonapi import Workflow


def test_zip_top() -> None:
"""Test zip topology CWL."""
input_top_path = Path(__file__).resolve().parent / Path(
"ALL.Ala115Pro_step8_gio_gio.top",
)
input_itp_path = Path(__file__).resolve().parent / Path(
"ALL.Ala115Pro_step4_p2g_p2g_Protein_chain_A.itp",
)
cwl_file_str = "zip_top_0@[email protected]"
cwl_file = Path(__file__).resolve().parent.parent / Path(cwl_file_str)

zip_top = Step(clt_path=cwl_file)
zip_top.input_top_path = input_top_path
zip_top.input_itp_path = input_itp_path
zip_top.output_top_zip_path = "system.zip"

steps = [zip_top]
filename = "zip_top"
viz = Workflow(steps, filename)

viz.run()

outdir = Path("outdir")
files = list(outdir.rglob("system.zip"))

assert (
files
), f"The file 'system.zip' does not exist in any subdirectory of '{outdir}'."
File renamed without changes.
74,385 changes: 0 additions & 74,385 deletions utils/zip-top-plugin/tests/ALL.Ala115Pro_step4_p2g_p2g_Protein_chain_A.itp

This file was deleted.

55 changes: 0 additions & 55 deletions utils/zip-top-plugin/tests/ALL.Ala115Pro_step8_gio_gio.top

This file was deleted.

31 changes: 0 additions & 31 deletions utils/zip-top-plugin/tests/test_zip_top.py

This file was deleted.

0 comments on commit 984c251

Please sign in to comment.