Skip to content

Commit

Permalink
Reorganize (#19)
Browse files Browse the repository at this point in the history
* reorganize repo

* update pyproject

* add missing files
  • Loading branch information
rvhonorato authored Apr 30, 2024
1 parent 8692d45 commit 8bed487
Show file tree
Hide file tree
Showing 15 changed files with 16 additions and 10 deletions.
4 changes: 2 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ hypothesis = "^6.100.2"
[tool.poetry.scripts]
prodigy_cryst = "prodigy_cryst.interface_classifier:main"

[tool.setuptools]
include-package-data = true
packages = ["src"]

[tool.pytest.ini_options]
pythonpath = ["src"]

[build-system]
requires = ["poetry-core"]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
logging.error("[!] The interface classifier tool requires Biopython")
raise ImportError(e)

from prodigy_cryst.lib import aa_properties
from prodigy_cryst.lib.parsers import parse_structure
from prodigy_cryst.modules import aa_properties
from prodigy_cryst.modules.parsers import parse_structure

# from prodigy_cryst.lib.freesasa import execute_freesasa
from prodigy_cryst.lib.utils import _check_path
from prodigy_cryst.modules.utils import _check_path


def calculate_ic(structure, d_cutoff=5.0, selection=None):
Expand Down Expand Up @@ -99,7 +99,7 @@ def analyse_contacts(contact_list):
}

_data = aa_properties.aa_character_ic
for (res_i, res_j) in contact_list:
for res_i, res_j in contact_list:
contact_type = (_data.get(res_i.resname), _data.get(res_j.resname))
contact_type = "".join(sorted(contact_type))
bins[contact_type] += 1
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/test_aa_properties.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest

from prodigy_cryst.lib.aa_properties import (
from prodigy_cryst.modules.aa_properties import (
aa_character_ic,
aa_character_protorp,
rel_asa,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_interface_classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
analyse_contacts,
calculate_ic,
)
from prodigy_cryst.lib.parsers import parse_structure
from prodigy_cryst.modules.parsers import parse_structure
from tests import DATA_FOLDER


Expand Down
2 changes: 1 addition & 1 deletion tests/test_parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import pytest
from Bio.PDB.Structure import Structure

from prodigy_cryst.lib.parsers import parse_structure
from prodigy_cryst.modules.parsers import parse_structure

from . import DATA_FOLDER

Expand Down
2 changes: 1 addition & 1 deletion tests/test_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from tempfile import NamedTemporaryFile

from prodigy_cryst.lib.utils import _check_path
from prodigy_cryst.modules.utils import _check_path


def test__check_path():
Expand Down

0 comments on commit 8bed487

Please sign in to comment.