You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
conda env create -n Space -f environment.yml # by conda
62
+
mamba env create -n Space -f environment.yml # by mamba
62
63
```
63
64
64
65
*<fontcolor=red>Note:</font> The environment name can be changed by replacing "-n Space" to "-n environment_name".*
@@ -120,9 +121,11 @@ Space/
120
121
121
122
To reproduce the results of the Space article, users can run the scripts in the **Demo** folder. The scripts are organized into two folders: **Reference_Methods** and **Reproduce_Scripts**. The **Reference_Methods** folder contains scripts for reproducing the results of the ten SOTA algorithms. The **Reproduce_Scripts** folder contains scripts for reproducing the results of the Space.
122
123
123
-
#### How to integrate the results of different algorithms using Space
124
+
#### 3.2.1 Key functions of the Space
124
125
125
-
Here, for quick illustration, we directly apply Space to the results obtained from 10 SOTA methods. These methods have already been executed. The scripts are asved in **Reference_Methods** folder. The results of these methods are saved in the **Data** folder.
126
+
#### 3.2.2 How to integrate the results of different algorithms using Space
127
+
128
+
Here, for quick illustration, we directly apply Space to the results obtained from 10 SOTA methods. These methods have already been executed. The scripts are saved in **Reference_Methods** folder. The results of these methods are saved in the **Data** folder.
126
129
127
130
First, load the necessary packages and set R environment.
128
131
@@ -138,7 +141,7 @@ from sklearn.cluster import SpectralClustering
138
141
from Space.cons_func import get_results, get_domains
139
142
from Space.utils import calculate_location_adj, plot_results_ari, get_bool_martix
Now, read the results from 10 SOTA methods. To quickly reproduce the results, we directly read the outcomes from 10 SOTA methods. The code for these methods can be found in the "**/Demo/Reference_Methods/breast**" folder.
188
193
189
194
```python
190
195
mul_reults = pd.read_csv(
@@ -193,7 +198,6 @@ mul_reults = pd.read_csv(
193
198
index_col=0
194
199
)
195
200
mul_reults = mul_reults.iloc[:, 2:]
196
-
197
201
```
198
202
199
203
@@ -251,21 +255,22 @@ ari = adjusted_rand_score(labels, gt.values)
251
255
print(ari)
252
256
```
253
257
254
-
you will obtain a result from Space with an ARI of 0.648.
258
+
you will obtain a result from Space with an ARI of **0.648**.
255
259
256
260
**<fontcolor=red>In most cases, Space does not yield a fixed result. This is not due to an issue with Space, but because some methods exhibit randomness even when the random seed is fixed. Please refer to 'https://github.com/QIFEIDKN/STAGATE/issues/10' for more information. However, the variations in the results we obtain are minimal. The outcomes are stable across multiple runs.</font>**
257
261
258
262
259
-
#### Visualization
263
+
264
+
#### 3.2.3 Visualization
260
265
261
266
262
-
#### Domain-specific gene analysis
267
+
#### 3.2.4 Domain-specific gene analysis
263
268
264
269
265
-
#### Trajectory inference
270
+
#### 3.2.5 Trajectory inference
266
271
267
272
268
-
#### Use with Scanpy or Seurat
273
+
#### 3.2.6 Use with Scanpy or Seurat
269
274
270
275
271
276
### 3.3 How to choose and use different baseline algorithms
0 commit comments