Skip to content

Commit

Permalink
Minor bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Joeres authored and Roman Joeres committed Mar 15, 2024
1 parent 4696362 commit 7e17032
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/pipeline_package_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
import pytest

from datasail.cluster.clustering import cluster
from datasail.reader.utils import read_csv
from datasail.reader.utils import read_csv, parse_fasta

from datasail.reader.read_molecules import read_molecule_data
from datasail.reader.read_proteins import read_protein_data, parse_fasta
from datasail.reader.read_proteins import read_protein_data

base = Path("data") / "rw_data"

Expand Down
7 changes: 3 additions & 4 deletions tests/test_real_world_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
import pandas as pd
import pytest

from datasail.reader.read_proteins import parse_fasta
from datasail.reader.utils import read_csv
from datasail.reader.utils import read_csv, parse_fasta
from datasail.settings import NOT_ASSIGNED
from tests.utils import run_sail

Expand Down Expand Up @@ -76,7 +75,7 @@ def test_full_single_colds(ligand_data, ligand_weights, protein_data, protein_we
assert (output / "I1e" / "inter.tsv").is_file()
assert check_inter_completeness(interactions, output / "I1e" / "inter.tsv", ["train", "test"])
assert (output / "I1e" / name_prefix + "_splits.tsv").is_file()
assert check_split_completeness(ligand_data, output / "I1e"/ name_prefix + "_splits.tsv", ["train", "test"])
assert check_split_completeness(ligand_data, output / "I1e" / name_prefix + "_splits.tsv", ["train", "test"])

assert (output / "C1e").is_dir()
if interactions is not None:
Expand Down Expand Up @@ -104,7 +103,7 @@ def test_full_single_colds(ligand_data, ligand_weights, protein_data, protein_we
assert (output / "C1f" / "Protein_f_seqs_clusters.png").is_file()
assert (output / "C1f" / "Protein_f_seqs_clusters.tsv").is_file()
assert (output / "C1f" / "Protein_f_seqs_splits.tsv").is_file()
assert check_split_completeness(protein_data, output /"C1f" / "Protein_f_seqs_splits.tsv", ["train", "test"])
assert check_split_completeness(protein_data, output / "C1f" / "Protein_f_seqs_splits.tsv", ["train", "test"])

assert (output / "logs").is_dir()
assert (output / "tmp").is_dir()
Expand Down

0 comments on commit 7e17032

Please sign in to comment.