SURE-tools 2.2.4__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 SURE-tools might be problematic. Click here for more details.
- sure_tools-2.2.4/LICENSE +21 -0
- sure_tools-2.2.4/PKG-INFO +79 -0
- sure_tools-2.2.4/README.md +39 -0
- sure_tools-2.2.4/SURE/DensityFlow.py +1366 -0
- sure_tools-2.2.4/SURE/SURE.py +1206 -0
- sure_tools-2.2.4/SURE/__init__.py +12 -0
- sure_tools-2.2.4/SURE/assembly/__init__.py +3 -0
- sure_tools-2.2.4/SURE/assembly/assembly.py +511 -0
- sure_tools-2.2.4/SURE/assembly/atlas.py +575 -0
- sure_tools-2.2.4/SURE/atac/__init__.py +1 -0
- sure_tools-2.2.4/SURE/atac/utils.py +151 -0
- sure_tools-2.2.4/SURE/codebook/__init__.py +4 -0
- sure_tools-2.2.4/SURE/codebook/codebook.py +472 -0
- sure_tools-2.2.4/SURE/flow/__init__.py +2 -0
- sure_tools-2.2.4/SURE/flow/flow_stats.py +324 -0
- sure_tools-2.2.4/SURE/flow/plot_quiver.py +199 -0
- sure_tools-2.2.4/SURE/perturb/__init__.py +1 -0
- sure_tools-2.2.4/SURE/perturb/perturb.py +143 -0
- sure_tools-2.2.4/SURE/utils/__init__.py +19 -0
- sure_tools-2.2.4/SURE/utils/custom_mlp.py +281 -0
- sure_tools-2.2.4/SURE/utils/queue.py +50 -0
- sure_tools-2.2.4/SURE/utils/utils.py +308 -0
- sure_tools-2.2.4/SURE_tools.egg-info/PKG-INFO +79 -0
- sure_tools-2.2.4/SURE_tools.egg-info/SOURCES.txt +28 -0
- sure_tools-2.2.4/SURE_tools.egg-info/dependency_links.txt +1 -0
- sure_tools-2.2.4/SURE_tools.egg-info/entry_points.txt +3 -0
- sure_tools-2.2.4/SURE_tools.egg-info/requires.txt +16 -0
- sure_tools-2.2.4/SURE_tools.egg-info/top_level.txt +1 -0
- sure_tools-2.2.4/setup.cfg +4 -0
- sure_tools-2.2.4/setup.py +31 -0
sure_tools-2.2.4/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 ZengFLab
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: SURE-tools
|
|
3
|
+
Version: 2.2.4
|
|
4
|
+
Summary: Succinct Representation of Single Cells
|
|
5
|
+
Home-page: https://github.com/ZengFLab/SURE
|
|
6
|
+
Author: Feng Zeng
|
|
7
|
+
Author-email: zengfeng@xmu.edu.cn
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Requires-Python: >=3.10
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
License-File: LICENSE
|
|
14
|
+
Requires-Dist: dill==0.3.8
|
|
15
|
+
Requires-Dist: scanpy
|
|
16
|
+
Requires-Dist: pytorch-ignite
|
|
17
|
+
Requires-Dist: datatable
|
|
18
|
+
Requires-Dist: scipy
|
|
19
|
+
Requires-Dist: numpy
|
|
20
|
+
Requires-Dist: scikit-learn
|
|
21
|
+
Requires-Dist: pandas
|
|
22
|
+
Requires-Dist: pyro-ppl
|
|
23
|
+
Requires-Dist: jax[cuda12]
|
|
24
|
+
Requires-Dist: leidenalg
|
|
25
|
+
Requires-Dist: python-igraph
|
|
26
|
+
Requires-Dist: networkx
|
|
27
|
+
Requires-Dist: matplotlib
|
|
28
|
+
Requires-Dist: seaborn
|
|
29
|
+
Requires-Dist: fa2-modified
|
|
30
|
+
Dynamic: author
|
|
31
|
+
Dynamic: author-email
|
|
32
|
+
Dynamic: classifier
|
|
33
|
+
Dynamic: description
|
|
34
|
+
Dynamic: description-content-type
|
|
35
|
+
Dynamic: home-page
|
|
36
|
+
Dynamic: license-file
|
|
37
|
+
Dynamic: requires-dist
|
|
38
|
+
Dynamic: requires-python
|
|
39
|
+
Dynamic: summary
|
|
40
|
+
|
|
41
|
+
# SURE: SUccinct REpresentation of cells
|
|
42
|
+
SURE introduces a vector quantization-based probabilistic generative model for calling metacells and use them as landmarks that form a coordinate system for cell ID. Analyzing single-cell omics data in a manner analogous to reference genome-based genomic analysis.
|
|
43
|
+
|
|
44
|
+
## **$$\color{red}\text{\textbf{UPDATE}}$$**
|
|
45
|
+
An update has been distributed. Users can access to it via [SUREv2](https://github.com/ZengFLab/SUREv2). It provides Python classes that users can call SURE in scripts. It also provide the command that users can run SURE in the shell. Additionally, SUREv2 supports the calling of metacells for multi-omics datasets.
|
|
46
|
+
|
|
47
|
+
## Installation
|
|
48
|
+
1. Create a virtual environment
|
|
49
|
+
```bash
|
|
50
|
+
conda create -n SUREv1 python=3.10 scipy numpy pandas scikit-learn && conda activate SUREv1
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
2. Install [PyTorch](https://pytorch.org/get-started/locally/) following the official instruction.
|
|
54
|
+
```bash
|
|
55
|
+
pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu126
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
3. Install SURE
|
|
59
|
+
```bash
|
|
60
|
+
pip3 install SURE-tools
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Example 1: Calling metacells for a single-cell dataset
|
|
64
|
+
|
|
65
|
+
Users can refer to [here](https://github.com/ZengFLab/SURE_example_1) for details.
|
|
66
|
+
|
|
67
|
+
## Example 2: The hierarchical assembly of large-scale dataset(s)
|
|
68
|
+
|
|
69
|
+
Users can refer to [here](https://github.com/ZengFLab/SURE_example_2) for details.
|
|
70
|
+
|
|
71
|
+
## Example 3: Human brain cell atlas
|
|
72
|
+
|
|
73
|
+
Users can refer to [here](https://github.com/ZengFLab/SURE_example_3) for details.
|
|
74
|
+
|
|
75
|
+
## Example 4: Metacell calling for scATAC-seq data
|
|
76
|
+
|
|
77
|
+
Users can refer to [here](https://github.com/ZengFLab/SURE_example_4) for details.
|
|
78
|
+
|
|
79
|
+
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# SURE: SUccinct REpresentation of cells
|
|
2
|
+
SURE introduces a vector quantization-based probabilistic generative model for calling metacells and use them as landmarks that form a coordinate system for cell ID. Analyzing single-cell omics data in a manner analogous to reference genome-based genomic analysis.
|
|
3
|
+
|
|
4
|
+
## **$$\color{red}\text{\textbf{UPDATE}}$$**
|
|
5
|
+
An update has been distributed. Users can access to it via [SUREv2](https://github.com/ZengFLab/SUREv2). It provides Python classes that users can call SURE in scripts. It also provide the command that users can run SURE in the shell. Additionally, SUREv2 supports the calling of metacells for multi-omics datasets.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
1. Create a virtual environment
|
|
9
|
+
```bash
|
|
10
|
+
conda create -n SUREv1 python=3.10 scipy numpy pandas scikit-learn && conda activate SUREv1
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
2. Install [PyTorch](https://pytorch.org/get-started/locally/) following the official instruction.
|
|
14
|
+
```bash
|
|
15
|
+
pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cu126
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
3. Install SURE
|
|
19
|
+
```bash
|
|
20
|
+
pip3 install SURE-tools
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Example 1: Calling metacells for a single-cell dataset
|
|
24
|
+
|
|
25
|
+
Users can refer to [here](https://github.com/ZengFLab/SURE_example_1) for details.
|
|
26
|
+
|
|
27
|
+
## Example 2: The hierarchical assembly of large-scale dataset(s)
|
|
28
|
+
|
|
29
|
+
Users can refer to [here](https://github.com/ZengFLab/SURE_example_2) for details.
|
|
30
|
+
|
|
31
|
+
## Example 3: Human brain cell atlas
|
|
32
|
+
|
|
33
|
+
Users can refer to [here](https://github.com/ZengFLab/SURE_example_3) for details.
|
|
34
|
+
|
|
35
|
+
## Example 4: Metacell calling for scATAC-seq data
|
|
36
|
+
|
|
37
|
+
Users can refer to [here](https://github.com/ZengFLab/SURE_example_4) for details.
|
|
38
|
+
|
|
39
|
+
|