exprmat 0.1.33__tar.gz → 0.1.35__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.
- {exprmat-0.1.33 → exprmat-0.1.35}/PKG-INFO +6 -1
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/__init__.py +2 -1
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/configuration.py +2 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/descriptive/gse.py +6 -0
- exprmat-0.1.35/exprmat/image/align.py +1021 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/plotting/cnmf.py +1 -1
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/plotting/expression.py +28 -11
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/reader/experiment.py +367 -7
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/reader/matcher.py +48 -8
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/reader/metadata.py +34 -0
- exprmat-0.1.35/exprmat/reader/spatial.py +830 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/reader/static.py +138 -8
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/reduction/plot.py +11 -6
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/utils.py +34 -0
- exprmat-0.1.35/license +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/pyproject.toml +7 -2
- {exprmat-0.1.33 → exprmat-0.1.35}/Cargo.lock +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/Cargo.toml +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/ansi.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/clustering/__init__.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/clustering/cnmf.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/clustering/dbscan.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/clustering/kmeans.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/clustering/leiden.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/clustering/nmf.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/clustering/rogue.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/clustering/seriation.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/clustering/spectral.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/clustering/utils.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/cnv/__init__.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/cnv/cnvscore.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/cnv/infercnv.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/data/__init__.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/data/cistarget.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/data/delim.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/data/finders.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/data/geneset.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/data/gff.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/data/io.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/data/lr.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/data/presets.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/data/private.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/data/ranges.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/data/signature.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/data/tf.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/descriptive/__init__.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/descriptive/aggregate.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/descriptive/atac.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/descriptive/aucell.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/descriptive/de.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/descriptive/kde.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/descriptive/recovery.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/descriptive/summary.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/descriptive/tcr.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/dynamics/__init__.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/dynamics/generank.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/dynamics/linreg.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/dynamics/moments.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/dynamics/optimization.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/dynamics/parallel.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/dynamics/preprocess.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/dynamics/pseudotime.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/dynamics/transition.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/dynamics/utils.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/dynamics/velocity.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/grn/__init__.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/grn/infergrn.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/grn/modules.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/grn/prune.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/grn/regressors.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/grn/utils.py +0 -0
- {exprmat-0.1.33/exprmat/lr/methods → exprmat-0.1.35/exprmat/image}/__init__.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/lr/__init__.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/lr/aggregate.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/lr/method.py +0 -0
- {exprmat-0.1.33/exprmat/preprocessing/doublets → exprmat-0.1.35/exprmat/lr/methods}/__init__.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/lr/methods/cellchat.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/lr/methods/cellphonedb.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/lr/methods/connectome.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/lr/methods/geomean.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/lr/methods/logfc.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/lr/methods/natmi.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/lr/methods/rank_aggregate.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/lr/methods/scseqcomm.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/lr/methods/singlecellsignalr.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/lr/pipeline.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/lr/preprocess.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/lr/resources.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/lr/utils.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/plotting/__init__.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/plotting/atac.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/plotting/cnv.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/plotting/de.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/plotting/gse.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/plotting/lr.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/plotting/palettes.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/plotting/sankey.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/plotting/summary.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/plotting/track.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/plotting/utils.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/plotting/velocity.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/preprocessing/__init__.py +0 -0
- {exprmat-0.1.33/exprmat/preprocessing/impute → exprmat-0.1.35/exprmat/preprocessing/doublets}/__init__.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/preprocessing/doublets/composite.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/preprocessing/doublets/scrublet.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/preprocessing/emptydrops.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/preprocessing/filter.py +0 -0
- {exprmat-0.1.33/exprmat/preprocessing/sctransform → exprmat-0.1.35/exprmat/preprocessing/impute}/__init__.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/preprocessing/impute/magic.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/preprocessing/integrate.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/preprocessing/linear.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/preprocessing/normal.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/preprocessing/plot.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/preprocessing/qc.py +0 -0
- {exprmat-0.1.33/exprmat/transfer → exprmat-0.1.35/exprmat/preprocessing/sctransform}/__init__.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/preprocessing/sctransform/estimate.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/preprocessing/sctransform/ksmooth.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/preprocessing/sctransform/residual.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/preprocessing/sctransform/transform.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/preprocessing/sparse.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/preprocessing/uniform.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/reader/__init__.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/reader/peaks.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/reduction/__init__.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/reduction/forceatlas.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/reduction/mde.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/reduction/nn.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/reduction/outliers.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/reduction/pca.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/reduction/spectral.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/reduction/tsne.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/reduction/umap.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/trajectory/pcurve.py +0 -0
- /exprmat-0.1.33/license → /exprmat-0.1.35/exprmat/transfer/__init__.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/exprmat/transfer/atlas.py +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/readme.md +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/snapatac2/Cargo.toml +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/snapatac2/license +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/snapatac2/readme +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/snapatac2/src/call_peaks.rs +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/snapatac2/src/embedding.rs +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/snapatac2/src/export.rs +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/snapatac2/src/knn.rs +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/snapatac2/src/lib.rs +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/snapatac2/src/motif.rs +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/snapatac2/src/network.rs +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/snapatac2/src/preprocessing.rs +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/snapatac2/src/utils/anndata.rs +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/snapatac2/src/utils.rs +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/snapatac2-core/Cargo.toml +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/snapatac2-core/src/embedding.rs +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/snapatac2-core/src/export.rs +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/snapatac2-core/src/feature_count/counter.rs +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/snapatac2-core/src/feature_count/data_iter.rs +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/snapatac2-core/src/feature_count/matrix.rs +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/snapatac2-core/src/feature_count/mod.rs +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/snapatac2-core/src/genome.rs +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/snapatac2-core/src/lib.rs +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/snapatac2-core/src/motif.rs +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/snapatac2-core/src/network.rs +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/snapatac2-core/src/preprocessing/bam/flagstat.rs +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/snapatac2-core/src/preprocessing/bam/header.rs +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/snapatac2-core/src/preprocessing/bam/mark_duplicates.rs +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/snapatac2-core/src/preprocessing/bam.rs +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/snapatac2-core/src/preprocessing/import.rs +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/snapatac2-core/src/preprocessing/mod.rs +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/snapatac2-core/src/preprocessing/qc.rs +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/snapatac2-core/src/utils/knn.rs +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/snapatac2-core/src/utils/mod.rs +0 -0
- {exprmat-0.1.33 → exprmat-0.1.35}/snapatac2-core/src/utils/similarity.rs +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: exprmat
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.35
|
|
4
4
|
Classifier: Programming Language :: Rust
|
|
5
5
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
6
6
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
@@ -63,6 +63,11 @@ Requires-Dist: scikit-image
|
|
|
63
63
|
Requires-Dist: spatial-image
|
|
64
64
|
Requires-Dist: multiscale-spatial-image
|
|
65
65
|
Requires-Dist: tangram-sc
|
|
66
|
+
Requires-Dist: shapely>=2.0.0
|
|
67
|
+
Requires-Dist: pyogrio>=0.7.2
|
|
68
|
+
Requires-Dist: pyproj>=3.3.0
|
|
69
|
+
Requires-Dist: geopandas
|
|
70
|
+
Requires-Dist: packaging
|
|
66
71
|
Requires-Dist: sphinx ; extra == 'dev'
|
|
67
72
|
Requires-Dist: twine ; extra == 'dev'
|
|
68
73
|
Requires-Dist: ipykernel ; extra == 'dev'
|
|
@@ -10,12 +10,13 @@ import anndata as ad
|
|
|
10
10
|
import scanpy as sc
|
|
11
11
|
import pandas as pd
|
|
12
12
|
import pathlib
|
|
13
|
+
from PIL import Image
|
|
13
14
|
|
|
14
15
|
from exprmat.configuration import default as config
|
|
15
16
|
from exprmat.ansi import warning, info
|
|
16
17
|
|
|
17
18
|
mu.set_options(pull_on_update = False)
|
|
18
|
-
|
|
19
|
+
Image.MAX_IMAGE_PIXELS = config['max.image']
|
|
19
20
|
|
|
20
21
|
DATABASE_SETUP_MESSAGE = """
|
|
21
22
|
The exprmat package do not come with a included database after version 0.1.25,
|
|
@@ -14,6 +14,7 @@ def gse(
|
|
|
14
14
|
de_slot, group_name = None,
|
|
15
15
|
min_pct = 0.0, max_pct_reference = 1,
|
|
16
16
|
min_lfc = None, max_lfc = None, remove_zero_pval = False,
|
|
17
|
+
max_q = 0.05,
|
|
17
18
|
|
|
18
19
|
key_added = 'gsea',
|
|
19
20
|
gene_sets = 'all',
|
|
@@ -46,6 +47,8 @@ def gse(
|
|
|
46
47
|
tab = tab[tab['lfc'] >= min_lfc]
|
|
47
48
|
if max_lfc is not None and 'lfc' in tab.columns:
|
|
48
49
|
tab = tab[tab['lfc'] <= max_lfc]
|
|
50
|
+
if max_q is not None and 'q' in tab.columns:
|
|
51
|
+
tab = tab[tab['q'] <= max_q]
|
|
49
52
|
if remove_zero_pval:
|
|
50
53
|
tab = tab[~ np.isinf(tab['log10.q'].to_numpy())]
|
|
51
54
|
|
|
@@ -117,6 +120,7 @@ def opa(
|
|
|
117
120
|
min_pct = 0.0, max_pct_reference = 1,
|
|
118
121
|
min_lfc = None, max_lfc = None, remove_zero_pval = False,
|
|
119
122
|
use_abs_lfc = False, min_abs_lfc = 1.0, max_abs_lfc = 25.0,
|
|
123
|
+
max_q = 0.05,
|
|
120
124
|
|
|
121
125
|
key_added = 'opa',
|
|
122
126
|
gene_sets = 'kegg',
|
|
@@ -152,6 +156,8 @@ def opa(
|
|
|
152
156
|
tab = tab[tab['pct'] >= min_pct]
|
|
153
157
|
if max_pct_reference is not None and 'pct.reference' in tab.columns:
|
|
154
158
|
tab = tab[tab['pct.reference'] <= max_pct_reference]
|
|
159
|
+
if max_q is not None and 'q' in tab.columns:
|
|
160
|
+
tab = tab[tab['q'] <= max_q]
|
|
155
161
|
|
|
156
162
|
if not use_abs_lfc:
|
|
157
163
|
if min_lfc is not None and 'lfc' in tab.columns:
|