pertpy 0.6.0__py3-none-any.whl → 0.7.0__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- pertpy/__init__.py +3 -2
- pertpy/data/__init__.py +5 -1
- pertpy/data/_dataloader.py +2 -4
- pertpy/data/_datasets.py +203 -92
- pertpy/metadata/__init__.py +4 -0
- pertpy/metadata/_cell_line.py +826 -0
- pertpy/metadata/_compound.py +129 -0
- pertpy/metadata/_drug.py +242 -0
- pertpy/metadata/_look_up.py +582 -0
- pertpy/metadata/_metadata.py +73 -0
- pertpy/metadata/_moa.py +129 -0
- pertpy/plot/__init__.py +1 -9
- pertpy/plot/_augur.py +53 -116
- pertpy/plot/_coda.py +277 -677
- pertpy/plot/_guide_rna.py +17 -35
- pertpy/plot/_milopy.py +59 -134
- pertpy/plot/_mixscape.py +152 -391
- pertpy/preprocessing/_guide_rna.py +88 -4
- pertpy/tools/__init__.py +8 -13
- pertpy/tools/_augur.py +315 -17
- pertpy/tools/_cinemaot.py +143 -4
- pertpy/tools/_coda/_base_coda.py +1210 -65
- pertpy/tools/_coda/_sccoda.py +50 -21
- pertpy/tools/_coda/_tasccoda.py +27 -19
- pertpy/tools/_dialogue.py +164 -56
- pertpy/tools/_differential_gene_expression.py +240 -14
- pertpy/tools/_distances/_distance_tests.py +8 -8
- pertpy/tools/_distances/_distances.py +184 -34
- pertpy/tools/_enrichment.py +465 -0
- pertpy/tools/_milo.py +345 -11
- pertpy/tools/_mixscape.py +668 -50
- pertpy/tools/_perturbation_space/_clustering.py +5 -1
- pertpy/tools/_perturbation_space/_discriminator_classifiers.py +526 -0
- pertpy/tools/_perturbation_space/_perturbation_space.py +135 -43
- pertpy/tools/_perturbation_space/_simple.py +51 -10
- pertpy/tools/_scgen/__init__.py +1 -1
- pertpy/tools/_scgen/_scgen.py +701 -0
- pertpy/tools/_scgen/_utils.py +1 -3
- pertpy/tools/decoupler_LICENSE +674 -0
- {pertpy-0.6.0.dist-info → pertpy-0.7.0.dist-info}/METADATA +31 -12
- pertpy-0.7.0.dist-info/RECORD +53 -0
- {pertpy-0.6.0.dist-info → pertpy-0.7.0.dist-info}/WHEEL +1 -1
- pertpy/plot/_cinemaot.py +0 -81
- pertpy/plot/_dialogue.py +0 -91
- pertpy/plot/_scgen.py +0 -337
- pertpy/tools/_metadata/__init__.py +0 -0
- pertpy/tools/_metadata/_cell_line.py +0 -613
- pertpy/tools/_metadata/_look_up.py +0 -342
- pertpy/tools/_perturbation_space/_discriminator_classifier.py +0 -381
- pertpy/tools/_scgen/_jax_scgen.py +0 -370
- pertpy-0.6.0.dist-info/RECORD +0 -50
- /pertpy/tools/_scgen/{_jax_scgenvae.py → _scgenvae.py} +0 -0
- {pertpy-0.6.0.dist-info → pertpy-0.7.0.dist-info}/licenses/LICENSE +0 -0
pertpy/__init__.py
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
__author__ = "Lukas Heumos"
|
4
4
|
__email__ = "lukas.heumos@posteo.net"
|
5
|
-
__version__ = "0.
|
5
|
+
__version__ = "0.7.0"
|
6
6
|
|
7
7
|
import warnings
|
8
8
|
|
@@ -11,9 +11,10 @@ from numba import NumbaDeprecationWarning
|
|
11
11
|
|
12
12
|
warnings.filterwarnings("ignore", category=NumbaDeprecationWarning)
|
13
13
|
warnings.filterwarnings("ignore", category=MatplotlibDeprecationWarning)
|
14
|
-
warnings.filterwarnings("ignore", category=UserWarning)
|
14
|
+
warnings.filterwarnings("ignore", category=UserWarning, module="scvi._settings")
|
15
15
|
|
16
16
|
from . import data as dt
|
17
|
+
from . import metadata as md
|
17
18
|
from . import plot as pl
|
18
19
|
from . import preprocessing as pp
|
19
20
|
from . import tools as tl
|
pertpy/data/__init__.py
CHANGED
@@ -7,12 +7,14 @@ from pertpy.data._datasets import (
|
|
7
7
|
burczynski_crohn,
|
8
8
|
chang_2021,
|
9
9
|
cinemaot_example,
|
10
|
+
combosciplex,
|
10
11
|
datlinger_2017,
|
11
12
|
datlinger_2021,
|
12
13
|
dialogue_example,
|
13
14
|
distance_example,
|
14
15
|
dixit_2016,
|
15
16
|
dixit_2016_raw,
|
17
|
+
dong_2023,
|
16
18
|
frangieh_2021,
|
17
19
|
frangieh_2021_protein,
|
18
20
|
frangieh_2021_raw,
|
@@ -36,12 +38,14 @@ from pertpy.data._datasets import (
|
|
36
38
|
schraivogel_2020_tap_screen_chr8,
|
37
39
|
schraivogel_2020_tap_screen_chr11,
|
38
40
|
sciplex3_raw,
|
41
|
+
sciplex_gxe1,
|
39
42
|
shifrut_2018,
|
40
|
-
|
43
|
+
smillie_2019,
|
41
44
|
srivatsan_2020_sciplex2,
|
42
45
|
srivatsan_2020_sciplex3,
|
43
46
|
srivatsan_2020_sciplex4,
|
44
47
|
stephenson_2021_subsampled,
|
48
|
+
tasccoda_example,
|
45
49
|
tian_2019_day7neuron,
|
46
50
|
tian_2019_ipsc,
|
47
51
|
tian_2021_crispra,
|
pertpy/data/_dataloader.py
CHANGED
@@ -2,7 +2,6 @@ import tempfile
|
|
2
2
|
from pathlib import Path
|
3
3
|
from random import choice
|
4
4
|
from string import ascii_lowercase
|
5
|
-
from typing import Union
|
6
5
|
from zipfile import ZipFile
|
7
6
|
|
8
7
|
import requests
|
@@ -13,7 +12,7 @@ from rich.progress import Progress
|
|
13
12
|
def _download( # pragma: no cover
|
14
13
|
url: str,
|
15
14
|
output_file_name: str = None,
|
16
|
-
output_path:
|
15
|
+
output_path: str | Path = None,
|
17
16
|
block_size: int = 1024,
|
18
17
|
overwrite: bool = False,
|
19
18
|
is_zip: bool = False,
|
@@ -64,5 +63,4 @@ def _download( # pragma: no cover
|
|
64
63
|
output_path = output_path or tempfile.gettempdir()
|
65
64
|
with ZipFile(download_to_path, "r") as zip_obj:
|
66
65
|
zip_obj.extractall(path=output_path)
|
67
|
-
|
68
|
-
print(extracted)
|
66
|
+
zip_obj.namelist()
|