-
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 8e162a8
Showing
13 changed files
with
35 additions
and
36 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/duplicate-plugin/ict.yml → ...s/structure-change/duplicate-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: duplicate | ||
version: 0.1.0 | ||
container: duplicate-plugin | ||
container: duplicate-tool | ||
entrypoint: | ||
title: duplicate | ||
description: Duplicates a pdbqt file n times, where n is the length of another array. | ||
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
utils/pre-process/structure-change/duplicate-tool/tests/test_duplicate.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 duplicate.""" | ||
from pathlib import Path | ||
|
||
from sophios.api.pythonapi import Step | ||
from sophios.api.pythonapi import Workflow | ||
|
||
|
||
def test_duplicate() -> None: | ||
"""Test pdb.""" | ||
# Define paths and input properties | ||
cwl_file_str = "duplicate_0@[email protected]" | ||
cwl_file = Path(__file__).resolve().parent.parent / Path(cwl_file_str) | ||
input_pdbqt_singleton_path = Path(__file__).resolve().parent / Path( | ||
"1msn_protein.pdb", | ||
) | ||
repeats = 2 | ||
|
||
# Create the CWL step | ||
duplicate_step = Step(clt_path=cwl_file) | ||
duplicate_step.input_pdbqt_singleton_path = input_pdbqt_singleton_path | ||
|
||
# Prepare the input_pdbqt_array_path with duplicates | ||
file_dict = {"path": str(input_pdbqt_singleton_path)} | ||
duplicate_step.input_pdbqt_array_path = [file_dict.copy() for _ in range(repeats)] | ||
|
||
# Create the workflow and run it | ||
steps = [duplicate_step] | ||
filename = "duplicate_workflow" | ||
workflow = Workflow(steps, filename) | ||
workflow.run() | ||
|
||
# cant capture stdout to check status |