scez 0.1.1__py3-none-any.whl → 0.1.2__py3-none-any.whl

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.

pyproject.toml ADDED
@@ -0,0 +1,45 @@
1
+ [tool.poetry]
2
+ name = "scez"
3
+ version = "0.1.2"
4
+ authors = [
5
+ "Abe Arab <abarbiology@gmail.com>"
6
+ ]
7
+ license = "MIT"
8
+ readme = "README.md"
9
+ description = "Single Cell Analysis, Easy Mode!"
10
+ classifiers = [
11
+ "License :: OSI Approved :: MIT License"
12
+ ]
13
+ packages = [
14
+ { include = "scez" },
15
+ { include = "pyproject.toml" },
16
+ ]
17
+
18
+ [tool.poetry.urls]
19
+ Source = "https://github.com/abearab/scez"
20
+
21
+ [tool.poetry.dependencies]
22
+ python = "^3.9 <4.0"
23
+ numpy = "^1.26.0"
24
+ pandas = "^2.1.4 <3.0.0"
25
+ bottleneck = "^1.3.6"
26
+ tqdm = "*"
27
+ tomli = "*"
28
+ matplotlib = "^3.7"
29
+ seaborn = "^0.12.2"
30
+ adjustText = "^0.7.3"
31
+ scanpy = "^1.9.6"
32
+ anndata = "^0.8.0"
33
+ adpbulk = "^0.1.4"
34
+ pydeseq2 = "^0.4.0"
35
+ pytdc = "^1.0.0"
36
+ blitzgsea = "^1.3.0"
37
+
38
+
39
+ [tool.poetry.group.test.dependencies]
40
+ pytest = "*"
41
+ tomli = "*"
42
+
43
+ [build-system]
44
+ requires = ["poetry-core>=1.0.0", "poetry-dynamic-versioning>=1.0.0,<2.0.0"]
45
+ build-backend = "poetry_dynamic_versioning.backend"
scez/diffexp.py CHANGED
@@ -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)
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: scez
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: Single Cell Analysis, Easy Mode!
5
5
  License: MIT
6
6
  Author: Abe Arab
@@ -12,6 +12,7 @@ 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
18
  Requires-Dist: anndata (>=0.8.0,<0.9.0)
@@ -1,11 +1,12 @@
1
+ pyproject.toml,sha256=2d1qGZM5rM0Jttr_6ZTfqe0VX6qF200vJvtIQcAZN-E,900
1
2
  scez/__init__.py,sha256=3zXd7gUTFNJK-_l89LYFI-8yqkjt99dYLmZozK6qk0c,1412
2
- scez/diffexp.py,sha256=V8qjqpTZVaoAb-iCa3jYmPDmDBtg5AK9OqNzRow6ic0,6770
3
+ scez/diffexp.py,sha256=q76lqldFa4_fWNmx3I1xpnurZ6drbJAIZKXf3MHVw_A,6805
3
4
  scez/preprocess.py,sha256=3iaxACkmKQjKZdaFBLRAXz1kwkNnhbdnd_gwF8rI4nw,2572
4
5
  scez/representation.py,sha256=IW0pwa_yoKf-2a3lbtxRwLTdCjB2PkS9oN4WGCLwED0,1596
5
6
  scez/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
7
  scez/tests/test_scez.py,sha256=hoBSYB5k1WtF1hY_kyWXw1W7NolBornmTdAng6tDpjw,452
7
8
  scez/utils.py,sha256=lPmt01JILiKoBUhhxZeyhl2CfAzailTp4dIefP4FqGQ,1955
8
- scez-0.1.1.dist-info/LICENSE,sha256=59TS1D5RmGh66RJikXvFoq_ZW9pGirB4zUOUXLfptJM,1071
9
- scez-0.1.1.dist-info/METADATA,sha256=RzrXbfCm1W6Nt5s55S54YDb-XWW2WOq7P482DG3tSf4,2930
10
- scez-0.1.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
11
- scez-0.1.1.dist-info/RECORD,,
9
+ scez-0.1.2.dist-info/LICENSE,sha256=59TS1D5RmGh66RJikXvFoq_ZW9pGirB4zUOUXLfptJM,1071
10
+ scez-0.1.2.dist-info/METADATA,sha256=tRmPIrFKlzcb09QVpyEoU0meDAYzrZ7_0RlUd4cfTtI,2981
11
+ scez-0.1.2.dist-info/WHEEL,sha256=RaoafKOydTQ7I_I3JTrPCg6kUmTgtm4BornzOqyEfJ8,88
12
+ scez-0.1.2.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.9.0
2
+ Generator: poetry-core 2.0.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
File without changes