exprmat 0.1.30__tar.gz → 0.1.31__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.
Files changed (167) hide show
  1. {exprmat-0.1.30 → exprmat-0.1.31}/PKG-INFO +1 -1
  2. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/plotting/de.py +4 -4
  3. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/reader/experiment.py +3 -0
  4. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/reader/static.py +29 -5
  5. {exprmat-0.1.30 → exprmat-0.1.31}/pyproject.toml +1 -1
  6. {exprmat-0.1.30 → exprmat-0.1.31}/Cargo.lock +0 -0
  7. {exprmat-0.1.30 → exprmat-0.1.31}/Cargo.toml +0 -0
  8. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/__init__.py +0 -0
  9. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/ansi.py +0 -0
  10. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/clustering/__init__.py +0 -0
  11. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/clustering/cnmf.py +0 -0
  12. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/clustering/dbscan.py +0 -0
  13. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/clustering/kmeans.py +0 -0
  14. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/clustering/leiden.py +0 -0
  15. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/clustering/nmf.py +0 -0
  16. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/clustering/rogue.py +0 -0
  17. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/clustering/seriation.py +0 -0
  18. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/clustering/spectral.py +0 -0
  19. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/clustering/utils.py +0 -0
  20. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/cnv/__init__.py +0 -0
  21. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/cnv/cnvscore.py +0 -0
  22. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/cnv/infercnv.py +0 -0
  23. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/configuration.py +0 -0
  24. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/data/__init__.py +0 -0
  25. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/data/cistarget.py +0 -0
  26. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/data/delim.py +0 -0
  27. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/data/finders.py +0 -0
  28. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/data/geneset.py +0 -0
  29. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/data/gff.py +0 -0
  30. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/data/io.py +0 -0
  31. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/data/lr.py +0 -0
  32. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/data/presets.py +0 -0
  33. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/data/private.py +0 -0
  34. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/data/ranges.py +0 -0
  35. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/data/signature.py +0 -0
  36. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/data/tf.py +0 -0
  37. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/descriptive/__init__.py +0 -0
  38. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/descriptive/aggregate.py +0 -0
  39. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/descriptive/atac.py +0 -0
  40. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/descriptive/aucell.py +0 -0
  41. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/descriptive/de.py +0 -0
  42. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/descriptive/gse.py +0 -0
  43. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/descriptive/kde.py +0 -0
  44. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/descriptive/recovery.py +0 -0
  45. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/descriptive/summary.py +0 -0
  46. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/descriptive/tcr.py +0 -0
  47. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/dynamics/__init__.py +0 -0
  48. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/dynamics/generank.py +0 -0
  49. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/dynamics/linreg.py +0 -0
  50. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/dynamics/moments.py +0 -0
  51. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/dynamics/optimization.py +0 -0
  52. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/dynamics/parallel.py +0 -0
  53. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/dynamics/preprocess.py +0 -0
  54. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/dynamics/pseudotime.py +0 -0
  55. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/dynamics/transition.py +0 -0
  56. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/dynamics/utils.py +0 -0
  57. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/dynamics/velocity.py +0 -0
  58. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/grn/__init__.py +0 -0
  59. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/grn/infergrn.py +0 -0
  60. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/grn/modules.py +0 -0
  61. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/grn/prune.py +0 -0
  62. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/grn/regressors.py +0 -0
  63. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/grn/utils.py +0 -0
  64. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/lr/__init__.py +0 -0
  65. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/lr/aggregate.py +0 -0
  66. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/lr/method.py +0 -0
  67. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/lr/methods/__init__.py +0 -0
  68. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/lr/methods/cellchat.py +0 -0
  69. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/lr/methods/cellphonedb.py +0 -0
  70. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/lr/methods/connectome.py +0 -0
  71. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/lr/methods/geomean.py +0 -0
  72. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/lr/methods/logfc.py +0 -0
  73. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/lr/methods/natmi.py +0 -0
  74. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/lr/methods/rank_aggregate.py +0 -0
  75. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/lr/methods/scseqcomm.py +0 -0
  76. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/lr/methods/singlecellsignalr.py +0 -0
  77. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/lr/pipeline.py +0 -0
  78. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/lr/preprocess.py +0 -0
  79. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/lr/resources.py +0 -0
  80. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/lr/utils.py +0 -0
  81. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/plotting/__init__.py +0 -0
  82. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/plotting/atac.py +0 -0
  83. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/plotting/cnmf.py +0 -0
  84. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/plotting/cnv.py +0 -0
  85. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/plotting/expression.py +0 -0
  86. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/plotting/gse.py +0 -0
  87. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/plotting/lr.py +0 -0
  88. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/plotting/palettes.py +0 -0
  89. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/plotting/sankey.py +0 -0
  90. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/plotting/summary.py +0 -0
  91. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/plotting/track.py +0 -0
  92. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/plotting/utils.py +0 -0
  93. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/plotting/velocity.py +0 -0
  94. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/preprocessing/__init__.py +0 -0
  95. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/preprocessing/doublets/__init__.py +0 -0
  96. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/preprocessing/doublets/composite.py +0 -0
  97. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/preprocessing/doublets/scrublet.py +0 -0
  98. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/preprocessing/emptydrops.py +0 -0
  99. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/preprocessing/filter.py +0 -0
  100. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/preprocessing/impute/__init__.py +0 -0
  101. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/preprocessing/impute/magic.py +0 -0
  102. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/preprocessing/integrate.py +0 -0
  103. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/preprocessing/linear.py +0 -0
  104. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/preprocessing/normal.py +0 -0
  105. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/preprocessing/plot.py +0 -0
  106. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/preprocessing/qc.py +0 -0
  107. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/preprocessing/sctransform/__init__.py +0 -0
  108. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/preprocessing/sctransform/estimate.py +0 -0
  109. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/preprocessing/sctransform/ksmooth.py +0 -0
  110. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/preprocessing/sctransform/residual.py +0 -0
  111. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/preprocessing/sctransform/transform.py +0 -0
  112. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/preprocessing/sparse.py +0 -0
  113. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/preprocessing/uniform.py +0 -0
  114. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/reader/__init__.py +0 -0
  115. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/reader/matcher.py +0 -0
  116. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/reader/metadata.py +0 -0
  117. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/reader/peaks.py +0 -0
  118. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/reduction/__init__.py +0 -0
  119. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/reduction/forceatlas.py +0 -0
  120. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/reduction/mde.py +0 -0
  121. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/reduction/nn.py +0 -0
  122. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/reduction/outliers.py +0 -0
  123. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/reduction/pca.py +0 -0
  124. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/reduction/plot.py +0 -0
  125. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/reduction/spectral.py +0 -0
  126. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/reduction/tsne.py +0 -0
  127. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/reduction/umap.py +0 -0
  128. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/trajectory/pcurve.py +0 -0
  129. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/transfer/__init__.py +0 -0
  130. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/transfer/atlas.py +0 -0
  131. {exprmat-0.1.30 → exprmat-0.1.31}/exprmat/utils.py +0 -0
  132. {exprmat-0.1.30 → exprmat-0.1.31}/license +0 -0
  133. {exprmat-0.1.30 → exprmat-0.1.31}/readme.md +0 -0
  134. {exprmat-0.1.30 → exprmat-0.1.31}/snapatac2/Cargo.toml +0 -0
  135. {exprmat-0.1.30 → exprmat-0.1.31}/snapatac2/license +0 -0
  136. {exprmat-0.1.30 → exprmat-0.1.31}/snapatac2/readme +0 -0
  137. {exprmat-0.1.30 → exprmat-0.1.31}/snapatac2/src/call_peaks.rs +0 -0
  138. {exprmat-0.1.30 → exprmat-0.1.31}/snapatac2/src/embedding.rs +0 -0
  139. {exprmat-0.1.30 → exprmat-0.1.31}/snapatac2/src/export.rs +0 -0
  140. {exprmat-0.1.30 → exprmat-0.1.31}/snapatac2/src/knn.rs +0 -0
  141. {exprmat-0.1.30 → exprmat-0.1.31}/snapatac2/src/lib.rs +0 -0
  142. {exprmat-0.1.30 → exprmat-0.1.31}/snapatac2/src/motif.rs +0 -0
  143. {exprmat-0.1.30 → exprmat-0.1.31}/snapatac2/src/network.rs +0 -0
  144. {exprmat-0.1.30 → exprmat-0.1.31}/snapatac2/src/preprocessing.rs +0 -0
  145. {exprmat-0.1.30 → exprmat-0.1.31}/snapatac2/src/utils/anndata.rs +0 -0
  146. {exprmat-0.1.30 → exprmat-0.1.31}/snapatac2/src/utils.rs +0 -0
  147. {exprmat-0.1.30 → exprmat-0.1.31}/snapatac2-core/Cargo.toml +0 -0
  148. {exprmat-0.1.30 → exprmat-0.1.31}/snapatac2-core/src/embedding.rs +0 -0
  149. {exprmat-0.1.30 → exprmat-0.1.31}/snapatac2-core/src/export.rs +0 -0
  150. {exprmat-0.1.30 → exprmat-0.1.31}/snapatac2-core/src/feature_count/counter.rs +0 -0
  151. {exprmat-0.1.30 → exprmat-0.1.31}/snapatac2-core/src/feature_count/data_iter.rs +0 -0
  152. {exprmat-0.1.30 → exprmat-0.1.31}/snapatac2-core/src/feature_count/matrix.rs +0 -0
  153. {exprmat-0.1.30 → exprmat-0.1.31}/snapatac2-core/src/feature_count/mod.rs +0 -0
  154. {exprmat-0.1.30 → exprmat-0.1.31}/snapatac2-core/src/genome.rs +0 -0
  155. {exprmat-0.1.30 → exprmat-0.1.31}/snapatac2-core/src/lib.rs +0 -0
  156. {exprmat-0.1.30 → exprmat-0.1.31}/snapatac2-core/src/motif.rs +0 -0
  157. {exprmat-0.1.30 → exprmat-0.1.31}/snapatac2-core/src/network.rs +0 -0
  158. {exprmat-0.1.30 → exprmat-0.1.31}/snapatac2-core/src/preprocessing/bam/flagstat.rs +0 -0
  159. {exprmat-0.1.30 → exprmat-0.1.31}/snapatac2-core/src/preprocessing/bam/header.rs +0 -0
  160. {exprmat-0.1.30 → exprmat-0.1.31}/snapatac2-core/src/preprocessing/bam/mark_duplicates.rs +0 -0
  161. {exprmat-0.1.30 → exprmat-0.1.31}/snapatac2-core/src/preprocessing/bam.rs +0 -0
  162. {exprmat-0.1.30 → exprmat-0.1.31}/snapatac2-core/src/preprocessing/import.rs +0 -0
  163. {exprmat-0.1.30 → exprmat-0.1.31}/snapatac2-core/src/preprocessing/mod.rs +0 -0
  164. {exprmat-0.1.30 → exprmat-0.1.31}/snapatac2-core/src/preprocessing/qc.rs +0 -0
  165. {exprmat-0.1.30 → exprmat-0.1.31}/snapatac2-core/src/utils/knn.rs +0 -0
  166. {exprmat-0.1.30 → exprmat-0.1.31}/snapatac2-core/src/utils/mod.rs +0 -0
  167. {exprmat-0.1.30 → exprmat-0.1.31}/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.30
3
+ Version: 0.1.31
4
4
  Classifier: Programming Language :: Rust
5
5
  Classifier: Programming Language :: Python :: Implementation :: CPython
6
6
  Classifier: Programming Language :: Python :: Implementation :: PyPy
@@ -280,8 +280,8 @@ def marker_plot(
280
280
  adata,
281
281
  var_names,
282
282
  groupby,
283
- show=show,
284
- save=save,
283
+ show = False,
284
+ save = save,
285
285
  gene_symbols = gene_symbols,
286
286
  **kwds,
287
287
  )
@@ -293,8 +293,8 @@ def marker_plot(
293
293
  adata,
294
294
  var_names,
295
295
  groupby,
296
- show=show,
297
- save=save,
296
+ show = False,
297
+ save = save,
298
298
  gene_symbols = gene_symbols,
299
299
  **kwds,
300
300
  )
@@ -1103,6 +1103,9 @@ class experiment:
1103
1103
  def plot_rna_embedding(self, run_on_samples = False, **kwargs):
1104
1104
  return self.plot_for_rna(run_on_samples, st.rna_plot_embedding, **kwargs)
1105
1105
 
1106
+ def plot_rna_embedding_mask(self, run_on_samples = False, **kwargs):
1107
+ return self.plot_for_rna(run_on_samples, st.rna_plot_embedding_mask, **kwargs)
1108
+
1106
1109
  def plot_rna_embedding_atlas(self, run_on_samples = False, **kwargs):
1107
1110
  return self.plot_for_rna(run_on_samples, st.rna_plot_embedding_atlas, **kwargs)
1108
1111
 
@@ -765,6 +765,16 @@ def rna_plot_embedding(adata, sample_name, **kwargs):
765
765
  return embedding(adata, sample_name = sample_name, **kwargs)
766
766
 
767
767
 
768
+ def rna_plot_embedding_mask(adata, sample_name, color, values, **kwargs):
769
+ from exprmat.reduction.plot import embedding
770
+ if color in adata.obs.keys():
771
+ adata.obs['.mask'] = [x in values for x in adata.obs[color]]
772
+ else: error('`color` must be within adata.obs')
773
+ fig = embedding(adata, sample_name = sample_name, color = '.mask', **kwargs)
774
+ if color in adata.obs.keys(): del adata.obs['.mask']
775
+ return fig
776
+
777
+
768
778
  def rna_plot_embedding_atlas(adata, sample_name, **kwargs):
769
779
  from exprmat.reduction.plot import embedding_atlas
770
780
  return embedding_atlas(adata, sample_name = sample_name, **kwargs)
@@ -782,11 +792,25 @@ def rna_plot_gene_gene_regress(adata, sample_name, **kwargs):
782
792
  def rna_plot_markers(adata, sample_name, figsize, dpi, **kwargs):
783
793
  from exprmat.plotting.de import marker_plot
784
794
  pl = marker_plot(adata, sample_name = sample_name, **kwargs)
785
- pl.width = figsize[0]
786
- pl.height = figsize[1]
787
- pl.show()
788
- pl.fig.set_dpi(dpi)
789
- return pl.fig
795
+
796
+ from scanpy.plotting import DotPlot, StackedViolin, MatrixPlot
797
+ if isinstance(pl, DotPlot) or isinstance(pl, StackedViolin) or isinstance(pl, MatrixPlot):
798
+ pl.width = figsize[0]
799
+ pl.height = figsize[1]
800
+ pl.show()
801
+ pl.fig.set_dpi(dpi)
802
+ return pl.fig
803
+
804
+ else:
805
+ fig = pl['heatmap_ax'].figure if 'heatmap_ax' in pl.keys() else None
806
+ fig = pl['track_axes'][0].figure if 'track_axes' in pl.keys() else fig
807
+
808
+ if fig:
809
+ fig.set_dpi(dpi)
810
+ fig.set_figwidth(figsize[0])
811
+ fig.set_figheight(figsize[1])
812
+ return fig
813
+
790
814
 
791
815
 
792
816
  def rna_plot_expression_bar(
@@ -18,7 +18,7 @@ description = "exprmat: Routines for expression matrices"
18
18
  readme = "readme.md"
19
19
  license = {file = "license"}
20
20
  requires-python = ">=3.9, <3.13"
21
- version = "0.1.30"
21
+ version = "0.1.31"
22
22
  authors = [
23
23
  {name = "Zheng Yang", email = "xornent@outlook.com"}
24
24
  ]
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
File without changes
File without changes