Skip to content

Commit 9c5a476

Browse files
LindeSchoenmakermartin-sicho
authored andcommitted
add papyrus version as variavle papyrus_filter
1 parent 2513259 commit 9c5a476

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

qsprpred/data/sources/papyrus/papyrus_class.py

+1
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ def getData(
131131
raise ValueError(f"Output directory '{output_dir}' does not exist.")
132132
logger.debug(f"Filtering Papyrus for accession keys: {acc_keys}")
133133
data, path = papyrus_filter(
134+
version=self.version,
134135
acc_key=acc_keys,
135136
quality=quality,
136137
outdir=output_dir,

qsprpred/data/sources/papyrus/papyrus_filter.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616

1717
def papyrus_filter(
18+
version: str,
1819
acc_key: list[str],
1920
quality: str,
2021
outdir: str,
@@ -31,6 +32,7 @@ def papyrus_filter(
3132
and outputs a .tsv file of all compounds fulfilling these requirements.
3233
3334
Args:
35+
version (str): Papyrus database version
3436
acc_key (list): list of UniProt accession keys
3537
quality (str): str with minimum quality of dataset to keep
3638
outdir (str): path to the location of Papyrus data
@@ -59,7 +61,7 @@ def papyrus_filter(
5961
# read data
6062
logger.info(f"Reading data from {papyrus_dir}...")
6163
sample_data = read_papyrus(
62-
is3d=stereo, chunksize=chunk_size, source_path=papyrus_dir, plusplus=plusplus
64+
is3d=stereo, version=version, chunksize=chunk_size, source_path=papyrus_dir, plusplus=plusplus
6365
)
6466
logger.info("Read all data.")
6567

0 commit comments

Comments
 (0)