Skip to content

Commit e02187c

Browse files
authored
Merge pull request #44 from tauhidstanford/main
edited readme
2 parents 1f42809 + ca9da51 commit e02187c

3 files changed

Lines changed: 11 additions & 13 deletions

File tree

README.md

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Genomap creates images from gene expression data and offers high-performance dimensionality reduction and visualization, data clustering, classification and regression, gene signature extraction, multi-omics data integration, and trajectory analysis
1+
# Genomap creates images from gene expression data and offers high-performance dimensionality reduction and visualization, data clustering, classification and regression, automatic cell annotation, gene signature extraction, multi-omics data integration, and trajectory analysis
22

33
Genomap is an entropy-based cartography strategy to contrive the high dimensional gene expression data into a configured image format with explicit integration of the genomic interactions. This unique cartography casts the gene-gene interactions into a spatial configuration and enables us to extract the deep genomic interaction features and discover underlying discriminative patterns of the data. For a wide variety of applications (cell clustering and recognition, gene signature extraction, single-cell data integration, cellular trajectory analysis, dimensionality reduction, and visualization), genomap drastically improves the accuracy of data analyses as compared to state-of-the-art techniques.
44

@@ -198,45 +198,45 @@ ybatch = np.squeeze(dx['batchLabel'])
198198
# returns 2D visualization, cluster labels, and intgerated data
199199
resVis,cli,int_data=gp.genoMOIvis(data, data2, data3, data4, data5, colNum=12, rowNum=12, n_dim=32, epoch=10, prealign_method='scanorama')
200200

201-
201+
# Plot colored with cell class labels
202202
plt.figure(figsize=(15, 10))
203203
plt.rcParams.update({'font.size': 28})
204-
h1=plt.scatter(resVis[:, 0], resVis[:, 1], c=y,cmap='jet', marker='o', s=18) # ax = plt.subplot(3, n, i + 1*10+1)
204+
h1=plt.scatter(resVis[:, 0], resVis[:, 1], c=y,cmap='jet', marker='o', s=18)
205205
plt.xlabel('genoVis1')
206206
plt.ylabel('genoVis2')
207207
plt.tight_layout()
208208
plt.colorbar(h1)
209209
plt.show()
210210

211+
# Plot colored with batch labels
211212
plt.figure(figsize=(15, 10))
212213
plt.rcParams.update({'font.size': 28})
213-
h1=plt.scatter(resVis[:, 0], resVis[:, 1], c=ybatch,cmap='jet', marker='o', s=18) # ax = plt.subplot(3, n, i + 1*10+1)
214+
h1=plt.scatter(resVis[:, 0], resVis[:, 1], c=ybatch,cmap='jet', marker='o', s=18)
214215
plt.xlabel('genoVis1')
215216
plt.ylabel('genoVis2')
216217
plt.tight_layout()
217218
plt.colorbar(h1)
218219
plt.show()
219-
```
220220

221-
```python
222221
# Apply genomap-based multi omic integration and visualize the integrated data with global structure for trajectory analysis
223222

224223
# returns 2D embedding, cluster labels, and intgerated data
225224
resTraj,cli,int_data=gp.genoMOItraj(data, data2, data3, data4, data5, colNum=12, rowNum=12, n_dim=32, epoch=10, prealign_method='scanorama')
226225

227-
226+
# Plot colored with cell class labels
228227
plt.figure(figsize=(15, 10))
229228
plt.rcParams.update({'font.size': 28})
230-
h1=plt.scatter(resTraj[:, 0], resTraj[:, 1], c=y,cmap='jet', marker='o', s=18) # ax = plt.subplot(3, n, i + 1*10+1)
229+
h1=plt.scatter(resTraj[:, 0], resTraj[:, 1], c=y,cmap='jet', marker='o', s=18)
231230
plt.xlabel('genoTraj1')
232231
plt.ylabel('genoTraj2')
233232
plt.tight_layout()
234233
plt.colorbar(h1)
235234
plt.show()
236235

236+
# Plot colored with batch labels
237237
plt.figure(figsize=(15, 10))
238238
plt.rcParams.update({'font.size': 28})
239-
h1=plt.scatter(resTraj[:, 0], resTraj[:, 1], c=ybatch,cmap='jet', marker='o', s=18) # ax = plt.subplot(3, n, i + 1*10+1)
239+
h1=plt.scatter(resTraj[:, 0], resTraj[:, 1], c=ybatch,cmap='jet', marker='o', s=18)
240240
plt.xlabel('genoTraj1')
241241
plt.ylabel('genoTraj2')
242242
plt.tight_layout()
@@ -260,11 +260,9 @@ adata = sc.read_10x_mtx("./pbmc3k_filtered_gene_bc_matrices/")
260260
adataP=gp.genoAnnotate(adata,species="human", tissue_type="Immune system")
261261
cell_annotations=adataP.obs['cell_type'].values # numpy array containing the
262262
# cell annotations
263-
264263
# Compute t-SNE
265264
sc.tl.tsne(adataP)
266265
# Create a t-SNE plot colored by cell type labels
267-
cell_annotations=adataP.obs['cell_type']
268266
sc.pl.tsne(adataP, color='cell_type')
269267
```
270268

genomap/genoAnnotate/genoAnnotate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
@author: Md Tauhidul Islam
66
# This code is inspired by scType (https://github.com/IanevskiAleksandr/sc-type)
7-
# We are in the process of using image matching techique for further enhancement
7+
# We are in the process of using image matching technique for further enhancement
88
# of the cell annotation
99
"""
1010

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setup(
77
name="genomap",
8-
version="1.3.4",
8+
version="1.3.5",
99
author="Md Tauhidul Islam",
1010
author_email="tauhid@stanford.edu",
1111
description="Genomap converts tabular gene expression data into spatially meaningful images.",

0 commit comments

Comments
 (0)