ScreenPro2 0.5.1__tar.gz → 0.6.1__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.
- {screenpro2-0.5.1 → screenpro2-0.6.1}/LICENSE +1 -1
- {screenpro2-0.5.1 → screenpro2-0.6.1}/PKG-INFO +8 -5
- {screenpro2-0.5.1 → screenpro2-0.6.1}/README.md +2 -1
- {screenpro2-0.5.1 → screenpro2-0.6.1}/pyproject.toml +3 -2
- {screenpro2-0.5.1 → screenpro2-0.6.1}/screenpro/assays/__init__.py +2 -2
- {screenpro2-0.5.1 → screenpro2-0.6.1}/screenpro/ngs/cas9.py +9 -10
- {screenpro2-0.5.1 → screenpro2-0.6.1}/screenpro/__init__.py +0 -0
- {screenpro2-0.5.1 → screenpro2-0.6.1}/screenpro/__main__.py +0 -0
- {screenpro2-0.5.1 → screenpro2-0.6.1}/screenpro/dashboard/__init__.py +0 -0
- {screenpro2-0.5.1 → screenpro2-0.6.1}/screenpro/load.py +0 -0
- {screenpro2-0.5.1 → screenpro2-0.6.1}/screenpro/main.py +0 -0
- {screenpro2-0.5.1 → screenpro2-0.6.1}/screenpro/ngs/__init__.py +0 -0
- {screenpro2-0.5.1 → screenpro2-0.6.1}/screenpro/ngs/cas12.py +0 -0
- {screenpro2-0.5.1 → screenpro2-0.6.1}/screenpro/phenoscore/__init__.py +0 -0
- {screenpro2-0.5.1 → screenpro2-0.6.1}/screenpro/phenoscore/_annotate.py +0 -0
- {screenpro2-0.5.1 → screenpro2-0.6.1}/screenpro/phenoscore/delta.py +0 -0
- {screenpro2-0.5.1 → screenpro2-0.6.1}/screenpro/phenoscore/deseq.py +0 -0
- {screenpro2-0.5.1 → screenpro2-0.6.1}/screenpro/phenoscore/evaluate.py +0 -0
- {screenpro2-0.5.1 → screenpro2-0.6.1}/screenpro/phenoscore/phenostat.py +0 -0
- {screenpro2-0.5.1 → screenpro2-0.6.1}/screenpro/plotting/__init__.py +0 -0
- {screenpro2-0.5.1 → screenpro2-0.6.1}/screenpro/plotting/_rank.py +0 -0
- {screenpro2-0.5.1 → screenpro2-0.6.1}/screenpro/plotting/_utils.py +0 -0
- {screenpro2-0.5.1 → screenpro2-0.6.1}/screenpro/plotting/pheno_plots.py +0 -0
- {screenpro2-0.5.1 → screenpro2-0.6.1}/screenpro/plotting/qc_plots.py +0 -0
- {screenpro2-0.5.1 → screenpro2-0.6.1}/screenpro/preprocessing.py +0 -0
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: ScreenPro2
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.6.1
|
|
4
4
|
Summary: Flexible analysis of high-content CRISPR screening
|
|
5
5
|
License: MIT
|
|
6
|
+
License-File: LICENSE
|
|
6
7
|
Keywords: CRISPR,screening,bioinformatics
|
|
7
|
-
Author:
|
|
8
|
-
Author-email:
|
|
8
|
+
Author: Abolfazl Arab
|
|
9
|
+
Author-email: abolfazl.arab@ucsf.edu
|
|
9
10
|
Requires-Python: >=3.9
|
|
10
11
|
Classifier: License :: OSI Approved :: MIT License
|
|
11
12
|
Classifier: Programming Language :: Python :: 3
|
|
@@ -14,16 +15,18 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
14
15
|
Classifier: Programming Language :: Python :: 3.11
|
|
15
16
|
Classifier: Programming Language :: Python :: 3.12
|
|
16
17
|
Classifier: Programming Language :: Python :: 3.13
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
17
19
|
Project-URL: Homepage, https://github.com/ArcInstitute/ScreenPro2
|
|
18
20
|
Project-URL: Repository, https://github.com/ArcInstitute/ScreenPro2
|
|
19
21
|
Description-Content-Type: text/markdown
|
|
20
22
|
|
|
21
23
|
[](https://arcinstitute.org/tools/screenpro2)
|
|
24
|
+
[](https://doi.org/10.5281/zenodo.18807934)
|
|
22
25
|
[](https://badge.fury.io/py/ScreenPro2)
|
|
23
26
|
[](https://screenpro2.readthedocs.io/en/latest/?version=latest)
|
|
24
27
|
[](https://pepy.tech/project/screenpro2)
|
|
25
28
|
[](https://pepy.tech/project/screenpro2)
|
|
26
|
-
|
|
29
|
+
|
|
27
30
|
# ScreenPro2
|
|
28
31
|
|
|
29
32
|
## Introduction
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
[](https://arcinstitute.org/tools/screenpro2)
|
|
2
|
+
[](https://doi.org/10.5281/zenodo.18807934)
|
|
2
3
|
[](https://badge.fury.io/py/ScreenPro2)
|
|
3
4
|
[](https://screenpro2.readthedocs.io/en/latest/?version=latest)
|
|
4
5
|
[](https://pepy.tech/project/screenpro2)
|
|
5
6
|
[](https://pepy.tech/project/screenpro2)
|
|
6
|
-
|
|
7
|
+
|
|
7
8
|
# ScreenPro2
|
|
8
9
|
|
|
9
10
|
## Introduction
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "ScreenPro2"
|
|
3
3
|
description = "Flexible analysis of high-content CRISPR screening"
|
|
4
|
-
version = "0.
|
|
4
|
+
version = "0.6.1"
|
|
5
5
|
authors = [
|
|
6
|
-
"
|
|
6
|
+
"Abolfazl Arab <abolfazl.arab@ucsf.edu>",
|
|
7
|
+
"Nick Youngblut <nick.youngblut@arcinstitute.org>",
|
|
7
8
|
]
|
|
8
9
|
license = "MIT"
|
|
9
10
|
readme = "README.md"
|
|
@@ -71,8 +71,8 @@ class PooledScreens(object):
|
|
|
71
71
|
growth_factors = []
|
|
72
72
|
# calculate growth factor for gamma, tau, or rho score per replicates
|
|
73
73
|
for replicate in adat.obs.replicate.unique():
|
|
74
|
-
db_untreated = adat.obs.query(f'condition == "{untreated}" & replicate == {str(replicate)}')[db_rate_col][0]
|
|
75
|
-
db_treated = adat.obs.query(f'condition == "{treated}" & replicate == {str(replicate)}')[db_rate_col][0]
|
|
74
|
+
db_untreated = adat.obs.query(f'condition == "{untreated}" & replicate == {str(replicate)}')[db_rate_col].iloc[0]
|
|
75
|
+
db_treated = adat.obs.query(f'condition == "{treated}" & replicate == {str(replicate)}')[db_rate_col].iloc[0]
|
|
76
76
|
|
|
77
77
|
growth_factors.append(('gamma', db_untreated, replicate, f'gamma_replicate_{replicate}'))
|
|
78
78
|
growth_factors.append(('tau', db_treated, replicate, f'tau_replicate_{replicate}'))
|
|
@@ -154,10 +154,9 @@ def map_to_library_single_guide(df_count, library, return_type='all', verbose=Fa
|
|
|
154
154
|
)
|
|
155
155
|
|
|
156
156
|
if verbose:
|
|
157
|
-
print(
|
|
158
|
-
|
|
159
|
-
res_map
|
|
160
|
-
int(res.select(pl.sum("count")).to_pandas()['count'])
|
|
157
|
+
print(
|
|
158
|
+
"% mapped reads",
|
|
159
|
+
100 * res_map['count'].sum() / res["count"].sum()
|
|
161
160
|
)
|
|
162
161
|
|
|
163
162
|
if return_type == 'unmapped':
|
|
@@ -221,8 +220,8 @@ def map_to_library_dual_guide(df_count, library, get_recombinant=False, return_t
|
|
|
221
220
|
if verbose:
|
|
222
221
|
print("% mapped reads",
|
|
223
222
|
100 * \
|
|
224
|
-
res_map
|
|
225
|
-
|
|
223
|
+
res_map['count'].sum() / \
|
|
224
|
+
res["count"].sum()
|
|
226
225
|
)
|
|
227
226
|
|
|
228
227
|
if get_recombinant:
|
|
@@ -230,8 +229,8 @@ def map_to_library_dual_guide(df_count, library, get_recombinant=False, return_t
|
|
|
230
229
|
if verbose:
|
|
231
230
|
print("% unmapped reads",
|
|
232
231
|
100 * \
|
|
233
|
-
res_unmap
|
|
234
|
-
|
|
232
|
+
res_unmap['count'].sum() / \
|
|
233
|
+
res["count"].sum()
|
|
235
234
|
)
|
|
236
235
|
|
|
237
236
|
sgRNA_table = pd.concat([
|
|
@@ -253,8 +252,8 @@ def map_to_library_dual_guide(df_count, library, get_recombinant=False, return_t
|
|
|
253
252
|
if verbose:
|
|
254
253
|
print("% fully remapped recombination events",
|
|
255
254
|
100 * \
|
|
256
|
-
res_recomb_events.drop_nulls()
|
|
257
|
-
|
|
255
|
+
res_recomb_events.drop_nulls()['count'].sum() / \
|
|
256
|
+
res['count'].sum()
|
|
258
257
|
)
|
|
259
258
|
|
|
260
259
|
if return_type == 'unmapped':
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|