sciv 0.0.90__tar.gz → 0.0.91__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.
- {sciv-0.0.90 → sciv-0.0.91}/PKG-INFO +1 -1
- {sciv-0.0.90 → sciv-0.0.91}/pyproject.toml +1 -1
- {sciv-0.0.90 → sciv-0.0.91}/src/sciv/preprocessing/_scvi_.py +10 -3
- {sciv-0.0.90 → sciv-0.0.91}/.gitignore +0 -0
- {sciv-0.0.90 → sciv-0.0.91}/LICENSE +0 -0
- {sciv-0.0.90 → sciv-0.0.91}/MANIFEST.in +0 -0
- {sciv-0.0.90 → sciv-0.0.91}/README.en.md +0 -0
- {sciv-0.0.90 → sciv-0.0.91}/README.md +0 -0
- {sciv-0.0.90 → sciv-0.0.91}/requirements.txt +0 -0
- {sciv-0.0.90 → sciv-0.0.91}/src/sciv/__init__.py +0 -0
- {sciv-0.0.90 → sciv-0.0.91}/src/sciv/file/__init__.py +0 -0
- {sciv-0.0.90 → sciv-0.0.91}/src/sciv/file/_read_.py +0 -0
- {sciv-0.0.90 → sciv-0.0.91}/src/sciv/file/_write_.py +0 -0
- {sciv-0.0.90 → sciv-0.0.91}/src/sciv/model/__init__.py +0 -0
- {sciv-0.0.90 → sciv-0.0.91}/src/sciv/model/_core_.py +0 -0
- {sciv-0.0.90 → sciv-0.0.91}/src/sciv/plot/__init__.py +0 -0
- {sciv-0.0.90 → sciv-0.0.91}/src/sciv/plot/_bar_.py +0 -0
- {sciv-0.0.90 → sciv-0.0.91}/src/sciv/plot/_barcode_.py +0 -0
- {sciv-0.0.90 → sciv-0.0.91}/src/sciv/plot/_box_.py +0 -0
- {sciv-0.0.90 → sciv-0.0.91}/src/sciv/plot/_bubble_.py +0 -0
- {sciv-0.0.90 → sciv-0.0.91}/src/sciv/plot/_core_.py +0 -0
- {sciv-0.0.90 → sciv-0.0.91}/src/sciv/plot/_graph_.py +0 -0
- {sciv-0.0.90 → sciv-0.0.91}/src/sciv/plot/_heat_map_.py +0 -0
- {sciv-0.0.90 → sciv-0.0.91}/src/sciv/plot/_kde_.py +0 -0
- {sciv-0.0.90 → sciv-0.0.91}/src/sciv/plot/_line_.py +0 -0
- {sciv-0.0.90 → sciv-0.0.91}/src/sciv/plot/_pie_.py +0 -0
- {sciv-0.0.90 → sciv-0.0.91}/src/sciv/plot/_radar_.py +0 -0
- {sciv-0.0.90 → sciv-0.0.91}/src/sciv/plot/_scatter_.py +0 -0
- {sciv-0.0.90 → sciv-0.0.91}/src/sciv/plot/_venn_.py +0 -0
- {sciv-0.0.90 → sciv-0.0.91}/src/sciv/plot/_violin_.py +0 -0
- {sciv-0.0.90 → sciv-0.0.91}/src/sciv/preprocessing/__init__.py +0 -0
- {sciv-0.0.90 → sciv-0.0.91}/src/sciv/preprocessing/_anndata_.py +0 -0
- {sciv-0.0.90 → sciv-0.0.91}/src/sciv/preprocessing/_gencode_.py +0 -0
- {sciv-0.0.90 → sciv-0.0.91}/src/sciv/preprocessing/_gsea_.py +0 -0
- {sciv-0.0.90 → sciv-0.0.91}/src/sciv/preprocessing/_scanpy_.py +0 -0
- {sciv-0.0.90 → sciv-0.0.91}/src/sciv/preprocessing/_snapatac_.py +0 -0
- {sciv-0.0.90 → sciv-0.0.91}/src/sciv/tool/__init__.py +0 -0
- {sciv-0.0.90 → sciv-0.0.91}/src/sciv/tool/_algorithm_.py +0 -0
- {sciv-0.0.90 → sciv-0.0.91}/src/sciv/tool/_matrix_.py +0 -0
- {sciv-0.0.90 → sciv-0.0.91}/src/sciv/tool/_random_walk_.py +0 -0
- {sciv-0.0.90 → sciv-0.0.91}/src/sciv/util/__init__.py +0 -0
- {sciv-0.0.90 → sciv-0.0.91}/src/sciv/util/_constant_.py +0 -0
- {sciv-0.0.90 → sciv-0.0.91}/src/sciv/util/_core_.py +0 -0
- {sciv-0.0.90 → sciv-0.0.91}/tests/scivTest/__init__.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sciv
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.91
|
|
4
4
|
Summary: Unveiling the pivotal cell types involved in variant function regulation at a single-cell resolution
|
|
5
5
|
Project-URL: github, https://github.com/YuZhengM/sciv
|
|
6
6
|
Author-email: Zheng-Min Yu <yuzmbio@163.com>
|
|
@@ -8,6 +8,7 @@ import numpy as np
|
|
|
8
8
|
import pandas as pd
|
|
9
9
|
|
|
10
10
|
from anndata import AnnData
|
|
11
|
+
from torch import OutOfMemoryError
|
|
11
12
|
|
|
12
13
|
from .. import util as ul
|
|
13
14
|
from ..tool import umap, tsne
|
|
@@ -126,11 +127,17 @@ def poisson_vi(
|
|
|
126
127
|
if model_dir is not None:
|
|
127
128
|
if os.path.exists(os.path.join(model_dir, "model.pt")):
|
|
128
129
|
ul.log(__name__).info(f"Due to the existence of file `model.pt`, it is loaded by default.")
|
|
130
|
+
|
|
129
131
|
try:
|
|
130
132
|
model = scvi.external.POISSONVI.load(model_dir, adata=adata)
|
|
131
|
-
except
|
|
132
|
-
ul.log(__name__).
|
|
133
|
-
|
|
133
|
+
except OutOfMemoryError as ome:
|
|
134
|
+
ul.log(__name__).warning(f"GPU failed to run, try to switch to CPU running.\n {ome}")
|
|
135
|
+
|
|
136
|
+
try:
|
|
137
|
+
model = scvi.external.POISSONVI.load(model_dir, adata=adata, accelerator="cpu", devices="cpu")
|
|
138
|
+
except Exception as e:
|
|
139
|
+
ul.log(__name__).error(f"File `model.pt` failed to load, you can execute `Poisson VI` again by deleting file `model.pt` ({model_dir}/model.pt).\n {e}")
|
|
140
|
+
raise ValueError(f"File `model.pt` failed to load, you can execute `Poisson VI` again by deleting file `model.pt` ({model_dir}/model.pt).")
|
|
134
141
|
else:
|
|
135
142
|
ul.file_method(__name__).makedirs(model_dir)
|
|
136
143
|
model = __train__()
|
|
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
|
|
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
|