Skip to content

Commit

Permalink
Fix typing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
PauAndrio committed Oct 17, 2024
1 parent 1392095 commit a08ed1c
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 16 deletions.
46 changes: 34 additions & 12 deletions biobb_pmx/docs/source/command_line.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,40 @@ Command:
```python
pmxligand_hybrid -h
```
/Users/pau/mambaforge/envs/dev38/bin/pmxligand_hybrid: line 3: Module containing the PMX ligand_hybrid class and the command line interface.: command not found
/Users/pau/mambaforge/envs/dev38/bin/pmxligand_hybrid: line 4: import: command not found
/Users/pau/mambaforge/envs/dev38/bin/pmxligand_hybrid: line 5: import: command not found
from: can't read /var/mail/pathlib
/Users/pau/mambaforge/envs/dev38/bin/pmxligand_hybrid: line 7: import: command not found
/Users/pau/mambaforge/envs/dev38/bin/pmxligand_hybrid: line 8: import: command not found
from: can't read /var/mail/typing
from: can't read /var/mail/biobb_common.generic.biobb_object
from: can't read /var/mail/biobb_common.configuration
from: can't read /var/mail/biobb_common.tools.file_utils
/Users/pau/mambaforge/envs/dev38/bin/pmxligand_hybrid: line 15: syntax error near unexpected token `('
/Users/pau/mambaforge/envs/dev38/bin/pmxligand_hybrid: line 15: `class Pmxligand_hybrid(BiobbObject):'
usage: pmxligand_hybrid [-h] [-c CONFIG] --input_structure1_path INPUT_STRUCTURE1_PATH --input_structure2_path INPUT_STRUCTURE2_PATH --input_topology1_path INPUT_TOPOLOGY1_PATH --input_topology2_path INPUT_TOPOLOGY2_PATH --output_structure1_path OUTPUT_STRUCTURE1_PATH --output_structure2_path OUTPUT_STRUCTURE2_PATH --output_topology1_path OUTPUT_TOPOLOGY1_PATH --output_topology2_path OUTPUT_TOPOLOGY2_PATH --output_log_path OUTPUT_LOG_PATH [--input_scaffold1_path INPUT_SCAFFOLD1_PATH] [--input_scaffold2_path INPUT_SCAFFOLD2_PATH] [--input_pairs_path INPUT_PAIRS_PATH]

Run PMX ligand hybrid module

optional arguments:
-h, --help show this help message and exit
-c CONFIG, --config CONFIG
This file can be a YAML file, JSON file or JSON string
--input_scaffold1_path INPUT_SCAFFOLD1_PATH
Path to the index of atoms to consider for the ligand structure 1
--input_scaffold2_path INPUT_SCAFFOLD2_PATH
Path to the index of atoms to consider for the ligand structure 2
--input_pairs_path INPUT_PAIRS_PATH
Path to the input atom pair mapping.

required arguments:
--input_structure1_path INPUT_STRUCTURE1_PATH
Path to the input ligand structure file 1
--input_structure2_path INPUT_STRUCTURE2_PATH
Path to the input ligand structure file 2
--input_topology1_path INPUT_TOPOLOGY1_PATH
Path to the input ligand topology file 1
--input_topology2_path INPUT_TOPOLOGY2_PATH
Path to the input ligand topology file 2
--output_structure1_path OUTPUT_STRUCTURE1_PATH
Path to the output ligand structure file 1
--output_structure2_path OUTPUT_STRUCTURE2_PATH
Path to the output ligand structure file 2
--output_topology1_path OUTPUT_TOPOLOGY1_PATH
Path to the output ligand topology file 1
--output_topology2_path OUTPUT_TOPOLOGY2_PATH
Path to the output ligand topology file 2
--output_log_path OUTPUT_LOG_PATH
Path to the log file
### I / O Arguments
Syntax: input_argument (datatype) : Definition

Expand Down
1 change: 0 additions & 1 deletion biobb_pmx/pmxbiobb/pmxanalyse.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from typing import Optional
from pathlib import Path
import shutil
from typing import Optional
from biobb_common.generic.biobb_object import BiobbObject
from biobb_common.configuration import settings
from biobb_common.tools import file_utils as fu
Expand Down
5 changes: 2 additions & 3 deletions biobb_pmx/pmxbiobb/pmxligand_hybrid.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# !/usr/bin/env python3
#!/usr/bin/env python3

"""Module containing the PMX ligand_hybrid class and the command line interface."""
import os
Expand All @@ -7,7 +7,6 @@
import shutil
import argparse
from typing import Optional
from typing import Optional
from biobb_common.generic.biobb_object import BiobbObject
from biobb_common.configuration import settings
from biobb_common.tools.file_utils import launchlogger
Expand Down Expand Up @@ -221,7 +220,7 @@ def pmxligand_hybrid(input_structure1_path: str, input_structure2_path: str, inp
output_topology_path=output_topology_path, output_atomtypes_path=output_atomtypes_path,
input_scaffold1_path=input_scaffold1_path, input_scaffold2_path=input_scaffold2_path,
input_pairs_path=input_pairs_path,
properties=properties, **kwargs).launch()
properties=properties).launch()


def main():
Expand Down

0 comments on commit a08ed1c

Please sign in to comment.