scez 0.1.0__tar.gz → 0.1.2__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.
Potentially problematic release.
This version of scez might be problematic. Click here for more details.
- {scez-0.1.0 → scez-0.1.2}/PKG-INFO +21 -6
- scez-0.1.2/README.md +35 -0
- {scez-0.1.0 → scez-0.1.2}/pyproject.toml +9 -5
- {scez-0.1.0 → scez-0.1.2}/scez/__init__.py +2 -1
- {scez-0.1.0 → scez-0.1.2}/scez/diffexp.py +4 -3
- scez-0.1.0/README.md +0 -24
- {scez-0.1.0 → scez-0.1.2}/LICENSE +0 -0
- {scez-0.1.0 → scez-0.1.2}/scez/preprocess.py +0 -0
- {scez-0.1.0 → scez-0.1.2}/scez/representation.py +0 -0
- {scez-0.1.0 → scez-0.1.2}/scez/tests/__init__.py +0 -0
- {scez-0.1.0 → scez-0.1.2}/scez/tests/test_scez.py +0 -0
- {scez-0.1.0 → scez-0.1.2}/scez/utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
2
|
Name: scez
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: Single Cell Analysis, Easy Mode!
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: Abe Arab
|
|
@@ -12,22 +12,36 @@ Classifier: Programming Language :: Python :: 3.9
|
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.10
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.11
|
|
14
14
|
Classifier: Programming Language :: Python :: 3.12
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
15
16
|
Requires-Dist: adjustText (>=0.7.3,<0.8.0)
|
|
16
17
|
Requires-Dist: adpbulk (>=0.1.4,<0.2.0)
|
|
17
|
-
Requires-Dist: anndata (>=0.
|
|
18
|
+
Requires-Dist: anndata (>=0.8.0,<0.9.0)
|
|
18
19
|
Requires-Dist: blitzgsea (>=1.3.0,<2.0.0)
|
|
20
|
+
Requires-Dist: bottleneck (>=1.3.6,<2.0.0)
|
|
19
21
|
Requires-Dist: matplotlib (>=3.7,<4.0)
|
|
20
|
-
Requires-Dist: numpy (>=1.
|
|
21
|
-
Requires-Dist: pandas (>=
|
|
22
|
+
Requires-Dist: numpy (>=1.26.0,<2.0.0)
|
|
23
|
+
Requires-Dist: pandas (>=2.1.4,<3.0.0)
|
|
22
24
|
Requires-Dist: pydeseq2 (>=0.4.0,<0.5.0)
|
|
23
25
|
Requires-Dist: pytdc (>=1.0.0,<2.0.0)
|
|
26
|
+
Requires-Dist: scanpy (>=1.9.6,<2.0.0)
|
|
24
27
|
Requires-Dist: seaborn (>=0.12.2,<0.13.0)
|
|
28
|
+
Requires-Dist: tomli
|
|
25
29
|
Requires-Dist: tqdm
|
|
26
30
|
Project-URL: Source, https://github.com/abearab/scez
|
|
27
31
|
Description-Content-Type: text/markdown
|
|
28
32
|
|
|
29
33
|
## scez – single cell, easy mode
|
|
30
34
|
[](https://github.com/abearab/scez/actions/workflows/main.yml)
|
|
35
|
+
[](https://badge.fury.io/py/scez)
|
|
36
|
+
[](https://pepy.tech/project/scez)
|
|
37
|
+
[](https://pepy.tech/project/scez)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Description
|
|
41
|
+
There are many tools available for single-cell RNA-seq analysis, but they often require a lot of understanding of the underlying algorithms, reading of documentation, and setting up analysis environments. This takes time and effort, and can be a barrier to entry for many projects. [Single-Cell Best Practices](https://github.com/theislab/single-cell-best-practices) is a great resource for learning about the best practices for single-cell analysis. `scez` aims to provide functionalities for single-cell analysis through definitions of analysis "tasks" and implementation of these "best practices" in a user-friendly way.
|
|
42
|
+
|
|
43
|
+
This is more a personal effort to streamline my own analysis workflows, but I hope it can be useful to others as well.
|
|
44
|
+
|
|
31
45
|
|
|
32
46
|
### Installation
|
|
33
47
|
Make sure you have mamba installed in your base environment. If not, install it with:
|
|
@@ -36,7 +50,7 @@ conda install mamba -n base -c conda-forge
|
|
|
36
50
|
```
|
|
37
51
|
Then, create a new conda environment with the provided `environment.yml` file and activate it. This will install all necessary dependencies for scez.
|
|
38
52
|
```bash
|
|
39
|
-
conda env create -f environment.yml
|
|
53
|
+
conda env create -f https://raw.githubusercontent.com/abearab/scez/main/environment.yml
|
|
40
54
|
|
|
41
55
|
conda activate scez
|
|
42
56
|
```
|
|
@@ -46,6 +60,7 @@ Finally, install scez with:
|
|
|
46
60
|
pip install scez
|
|
47
61
|
```
|
|
48
62
|
|
|
63
|
+
___
|
|
49
64
|
Or, if you want to install the latest version from the repository:
|
|
50
65
|
```bash
|
|
51
66
|
pip install git+https://github.com/abearab/scez.git
|
scez-0.1.2/README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
## scez – single cell, easy mode
|
|
2
|
+
[](https://github.com/abearab/scez/actions/workflows/main.yml)
|
|
3
|
+
[](https://badge.fury.io/py/scez)
|
|
4
|
+
[](https://pepy.tech/project/scez)
|
|
5
|
+
[](https://pepy.tech/project/scez)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Description
|
|
9
|
+
There are many tools available for single-cell RNA-seq analysis, but they often require a lot of understanding of the underlying algorithms, reading of documentation, and setting up analysis environments. This takes time and effort, and can be a barrier to entry for many projects. [Single-Cell Best Practices](https://github.com/theislab/single-cell-best-practices) is a great resource for learning about the best practices for single-cell analysis. `scez` aims to provide functionalities for single-cell analysis through definitions of analysis "tasks" and implementation of these "best practices" in a user-friendly way.
|
|
10
|
+
|
|
11
|
+
This is more a personal effort to streamline my own analysis workflows, but I hope it can be useful to others as well.
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Installation
|
|
15
|
+
Make sure you have mamba installed in your base environment. If not, install it with:
|
|
16
|
+
```bash
|
|
17
|
+
conda install mamba -n base -c conda-forge
|
|
18
|
+
```
|
|
19
|
+
Then, create a new conda environment with the provided `environment.yml` file and activate it. This will install all necessary dependencies for scez.
|
|
20
|
+
```bash
|
|
21
|
+
conda env create -f https://raw.githubusercontent.com/abearab/scez/main/environment.yml
|
|
22
|
+
|
|
23
|
+
conda activate scez
|
|
24
|
+
```
|
|
25
|
+
Finally, install scez with:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
pip install scez
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
___
|
|
32
|
+
Or, if you want to install the latest version from the repository:
|
|
33
|
+
```bash
|
|
34
|
+
pip install git+https://github.com/abearab/scez.git
|
|
35
|
+
```
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "scez"
|
|
3
|
-
version = "0.1.
|
|
3
|
+
version = "0.1.2"
|
|
4
4
|
authors = [
|
|
5
5
|
"Abe Arab <abarbiology@gmail.com>"
|
|
6
6
|
]
|
|
@@ -12,6 +12,7 @@ classifiers = [
|
|
|
12
12
|
]
|
|
13
13
|
packages = [
|
|
14
14
|
{ include = "scez" },
|
|
15
|
+
{ include = "pyproject.toml" },
|
|
15
16
|
]
|
|
16
17
|
|
|
17
18
|
[tool.poetry.urls]
|
|
@@ -19,17 +20,20 @@ Source = "https://github.com/abearab/scez"
|
|
|
19
20
|
|
|
20
21
|
[tool.poetry.dependencies]
|
|
21
22
|
python = "^3.9 <4.0"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
numpy = "^1.26.0"
|
|
24
|
+
pandas = "^2.1.4 <3.0.0"
|
|
25
|
+
bottleneck = "^1.3.6"
|
|
26
|
+
tqdm = "*"
|
|
27
|
+
tomli = "*"
|
|
25
28
|
matplotlib = "^3.7"
|
|
26
29
|
seaborn = "^0.12.2"
|
|
27
30
|
adjustText = "^0.7.3"
|
|
31
|
+
scanpy = "^1.9.6"
|
|
32
|
+
anndata = "^0.8.0"
|
|
28
33
|
adpbulk = "^0.1.4"
|
|
29
34
|
pydeseq2 = "^0.4.0"
|
|
30
35
|
pytdc = "^1.0.0"
|
|
31
36
|
blitzgsea = "^1.3.0"
|
|
32
|
-
tqdm = "*"
|
|
33
37
|
|
|
34
38
|
|
|
35
39
|
[tool.poetry.group.test.dependencies]
|
|
@@ -8,8 +8,9 @@ import scanpy as sc
|
|
|
8
8
|
import matplotlib.pyplot as plt
|
|
9
9
|
|
|
10
10
|
import tomli
|
|
11
|
+
from pathlib import Path
|
|
11
12
|
|
|
12
|
-
toml_dict = tomli.load(open('pyproject.toml','rb'))
|
|
13
|
+
toml_dict = tomli.load(open(Path(__file__).parent.parent / 'pyproject.toml','rb'))
|
|
13
14
|
__version__ = toml_dict['tool']['poetry']['version']
|
|
14
15
|
|
|
15
16
|
|
|
@@ -136,7 +136,8 @@ def plot_volcano(df, title=None, labels=None, n_genes=False, side='both',
|
|
|
136
136
|
plt.show()
|
|
137
137
|
|
|
138
138
|
|
|
139
|
-
def plot_top_DEG_violinplot(adata, df, title=None, labels=None, n_genes=False, side='both', font_scale=1, figsize=(10, 4), **kwargs):
|
|
139
|
+
def plot_top_DEG_violinplot(adata, df, layer=None, title=None, labels=None, n_genes=False, side='both', font_scale=1, figsize=(10, 4), **kwargs):
|
|
140
|
+
|
|
140
141
|
label_font_size = 9 * font_scale
|
|
141
142
|
title_font_size = 10 * font_scale
|
|
142
143
|
|
|
@@ -167,11 +168,11 @@ def plot_top_DEG_violinplot(adata, df, title=None, labels=None, n_genes=False, s
|
|
|
167
168
|
selected_genes = df.nlargest(n_genes, '-log10(pvalue)')
|
|
168
169
|
|
|
169
170
|
# Filter the single-cell dataset for the selected genes
|
|
170
|
-
subset_adata = adata[:, selected_genes.index]
|
|
171
|
+
subset_adata = adata[:, selected_genes.index].copy()
|
|
171
172
|
subset_adata.var.index = subset_adata.var.index.str.split('_').str[0]
|
|
172
173
|
|
|
173
174
|
# Convert the subset of adata to a DataFrame
|
|
174
|
-
subset_df = subset_adata.to_df()
|
|
175
|
+
subset_df = subset_adata.to_df(layer=layer)
|
|
175
176
|
|
|
176
177
|
# Merge the DataFrame with .obs to include the 'sample' information
|
|
177
178
|
merged_df = pd.merge(subset_df, adata.obs[['sample']], left_index=True, right_index=True)
|
scez-0.1.0/README.md
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
## scez – single cell, easy mode
|
|
2
|
-
[](https://github.com/abearab/scez/actions/workflows/main.yml)
|
|
3
|
-
|
|
4
|
-
### Installation
|
|
5
|
-
Make sure you have mamba installed in your base environment. If not, install it with:
|
|
6
|
-
```bash
|
|
7
|
-
conda install mamba -n base -c conda-forge
|
|
8
|
-
```
|
|
9
|
-
Then, create a new conda environment with the provided `environment.yml` file and activate it. This will install all necessary dependencies for scez.
|
|
10
|
-
```bash
|
|
11
|
-
conda env create -f environment.yml
|
|
12
|
-
|
|
13
|
-
conda activate scez
|
|
14
|
-
```
|
|
15
|
-
Finally, install scez with:
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
pip install scez
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
Or, if you want to install the latest version from the repository:
|
|
22
|
-
```bash
|
|
23
|
-
pip install git+https://github.com/abearab/scez.git
|
|
24
|
-
```
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|