papyrus-scripts 2.0.0__tar.gz → 2.0.0.post1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {papyrus_scripts-2.0.0/src/papyrus_scripts.egg-info → papyrus_scripts-2.0.0.post1}/PKG-INFO +1 -1
- {papyrus_scripts-2.0.0 → papyrus_scripts-2.0.0.post1}/src/papyrus_scripts/__init__.py +1 -1
- {papyrus_scripts-2.0.0 → papyrus_scripts-2.0.0.post1}/src/papyrus_scripts/oop.py +4 -4
- {papyrus_scripts-2.0.0 → papyrus_scripts-2.0.0.post1}/src/papyrus_scripts/reader.py +3 -1
- {papyrus_scripts-2.0.0 → papyrus_scripts-2.0.0.post1}/src/papyrus_scripts/utils/IO.py +1 -1
- {papyrus_scripts-2.0.0 → papyrus_scripts-2.0.0.post1/src/papyrus_scripts.egg-info}/PKG-INFO +1 -1
- {papyrus_scripts-2.0.0 → papyrus_scripts-2.0.0.post1}/LICENSE +0 -0
- {papyrus_scripts-2.0.0 → papyrus_scripts-2.0.0.post1}/README.md +0 -0
- {papyrus_scripts-2.0.0 → papyrus_scripts-2.0.0.post1}/setup.cfg +0 -0
- {papyrus_scripts-2.0.0 → papyrus_scripts-2.0.0.post1}/setup.py +0 -0
- {papyrus_scripts-2.0.0 → papyrus_scripts-2.0.0.post1}/src/papyrus_scripts/__main__.py +0 -0
- {papyrus_scripts-2.0.0 → papyrus_scripts-2.0.0.post1}/src/papyrus_scripts/cli.py +0 -0
- {papyrus_scripts-2.0.0 → papyrus_scripts-2.0.0.post1}/src/papyrus_scripts/download.py +0 -0
- {papyrus_scripts-2.0.0 → papyrus_scripts-2.0.0.post1}/src/papyrus_scripts/fingerprint.py +0 -0
- {papyrus_scripts-2.0.0 → papyrus_scripts-2.0.0.post1}/src/papyrus_scripts/matchRCSB.py +0 -0
- {papyrus_scripts-2.0.0 → papyrus_scripts-2.0.0.post1}/src/papyrus_scripts/modelling.py +0 -0
- {papyrus_scripts-2.0.0 → papyrus_scripts-2.0.0.post1}/src/papyrus_scripts/neuralnet.py +0 -0
- {papyrus_scripts-2.0.0 → papyrus_scripts-2.0.0.post1}/src/papyrus_scripts/preprocess.py +0 -0
- {papyrus_scripts-2.0.0 → papyrus_scripts-2.0.0.post1}/src/papyrus_scripts/subsim_search.py +0 -0
- {papyrus_scripts-2.0.0 → papyrus_scripts-2.0.0.post1}/src/papyrus_scripts/utils/UniprotMatch.py +0 -0
- {papyrus_scripts-2.0.0 → papyrus_scripts-2.0.0.post1}/src/papyrus_scripts/utils/__init__.py +0 -0
- {papyrus_scripts-2.0.0 → papyrus_scripts-2.0.0.post1}/src/papyrus_scripts/utils/aliases.json +0 -0
- {papyrus_scripts-2.0.0 → papyrus_scripts-2.0.0.post1}/src/papyrus_scripts/utils/links.json +0 -0
- {papyrus_scripts-2.0.0 → papyrus_scripts-2.0.0.post1}/src/papyrus_scripts/utils/mol_reader.py +0 -0
- {papyrus_scripts-2.0.0 → papyrus_scripts-2.0.0.post1}/src/papyrus_scripts.egg-info/SOURCES.txt +0 -0
- {papyrus_scripts-2.0.0 → papyrus_scripts-2.0.0.post1}/src/papyrus_scripts.egg-info/dependency_links.txt +0 -0
- {papyrus_scripts-2.0.0 → papyrus_scripts-2.0.0.post1}/src/papyrus_scripts.egg-info/entry_points.txt +0 -0
- {papyrus_scripts-2.0.0 → papyrus_scripts-2.0.0.post1}/src/papyrus_scripts.egg-info/requires.txt +0 -0
- {papyrus_scripts-2.0.0 → papyrus_scripts-2.0.0.post1}/src/papyrus_scripts.egg-info/top_level.txt +0 -0
- {papyrus_scripts-2.0.0 → papyrus_scripts-2.0.0.post1}/tests/test_oop.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: papyrus_scripts
|
|
3
|
-
Version: 2.0.0
|
|
3
|
+
Version: 2.0.0.post1
|
|
4
4
|
Summary: A collection of scripts to handle the Papyrus bioactivity dataset
|
|
5
5
|
Home-page: https://github.com/OlivierBeq/Papyrus-scripts
|
|
6
6
|
Author: Olivier J. M. Béquignon - Brandon J. Bongers - Willem Jespers
|
|
@@ -27,16 +27,16 @@ class PapyrusDataset:
|
|
|
27
27
|
chunksize: Optional[int] = 1_000_000, source_path: Optional[str] = None,
|
|
28
28
|
download_progress: bool = False):
|
|
29
29
|
version = IO.PapyrusVersion(version=version)
|
|
30
|
+
if not IO.is_local_version_available(version=version.version_old_fmt, root_folder=source_path):
|
|
31
|
+
download.download_papyrus(outdir=source_path, version=version.version_old_fmt, nostereo=True, stereo=True,
|
|
32
|
+
only_pp=False, structures=True, descriptors='all', progress=download_progress,
|
|
33
|
+
disk_margin=0.0)
|
|
30
34
|
self.papyrus_params = dict(is3d=is3d, version=version, plusplus=plusplus,
|
|
31
35
|
chunksize=chunksize, source_path=source_path,
|
|
32
36
|
num_rows=IO.get_num_rows_in_file(filetype='bioactivities', is3D=is3d,
|
|
33
37
|
version=version, plusplus=plusplus,
|
|
34
38
|
root_folder=source_path),
|
|
35
39
|
download_progress=download_progress)
|
|
36
|
-
if not IO.is_local_version_available(version=version, root_folder=source_path):
|
|
37
|
-
download.download_papyrus(outdir=source_path, version=version, nostereo=not is3d, stereo=is3d,
|
|
38
|
-
only_pp=plusplus, structures=True, descriptors=None, progress=download_progress,
|
|
39
|
-
disk_margin=0.0)
|
|
40
40
|
self.papyrus_bioactivity_data = reader.read_papyrus(is3d=is3d, version=version, plusplus=plusplus,
|
|
41
41
|
chunksize=chunksize, source_path=source_path)
|
|
42
42
|
self.papyrus_protein_data = reader.read_protein_set(source_path=source_path, version=version)
|
|
@@ -17,7 +17,9 @@ from .utils.mol_reader import MolSupplier
|
|
|
17
17
|
from .utils.IO import locate_file, process_data_version, TypeDecoder, PapyrusVersion
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
def read_papyrus(is3d: bool = False, version: str = 'latest', plusplus: bool = True,
|
|
20
|
+
def read_papyrus(is3d: bool = False, version: str | PapyrusVersion = 'latest', plusplus: bool = True,
|
|
21
|
+
chunksize: Optional[int] = None, source_path: Optional[str] = None
|
|
22
|
+
) -> Union[Iterator[pd.DataFrame], pd.DataFrame]:
|
|
21
23
|
|
|
22
24
|
"""Read the Papyrus dataset.
|
|
23
25
|
|
|
@@ -205,7 +205,7 @@ def is_local_version_available(version: str, root_folder: str = None):
|
|
|
205
205
|
try:
|
|
206
206
|
_ = process_data_version(version=version, root_folder=root_folder)
|
|
207
207
|
return True
|
|
208
|
-
except IOError:
|
|
208
|
+
except (IOError, ValueError):
|
|
209
209
|
return False
|
|
210
210
|
|
|
211
211
|
def locate_file(dirpath: str, regex_pattern: str):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: papyrus_scripts
|
|
3
|
-
Version: 2.0.0
|
|
3
|
+
Version: 2.0.0.post1
|
|
4
4
|
Summary: A collection of scripts to handle the Papyrus bioactivity dataset
|
|
5
5
|
Home-page: https://github.com/OlivierBeq/Papyrus-scripts
|
|
6
6
|
Author: Olivier J. M. Béquignon - Brandon J. Bongers - Willem Jespers
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{papyrus_scripts-2.0.0 → papyrus_scripts-2.0.0.post1}/src/papyrus_scripts/utils/UniprotMatch.py
RENAMED
|
File without changes
|
|
File without changes
|
{papyrus_scripts-2.0.0 → papyrus_scripts-2.0.0.post1}/src/papyrus_scripts/utils/aliases.json
RENAMED
|
File without changes
|
|
File without changes
|
{papyrus_scripts-2.0.0 → papyrus_scripts-2.0.0.post1}/src/papyrus_scripts/utils/mol_reader.py
RENAMED
|
File without changes
|
{papyrus_scripts-2.0.0 → papyrus_scripts-2.0.0.post1}/src/papyrus_scripts.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{papyrus_scripts-2.0.0 → papyrus_scripts-2.0.0.post1}/src/papyrus_scripts.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{papyrus_scripts-2.0.0 → papyrus_scripts-2.0.0.post1}/src/papyrus_scripts.egg-info/requires.txt
RENAMED
|
File without changes
|
{papyrus_scripts-2.0.0 → papyrus_scripts-2.0.0.post1}/src/papyrus_scripts.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|