Skip to main content

Genomap converts tabular gene expression data into spatially meaningful images.

Project description

Genomap creates images from gene expression data

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.

Required packages

scipy, scikit-learn, pot, numpy

If you face any issues with packages, please check the environment section of our Code-Ocean capsule (https://doi.org/10.24433/CO.0640398.v1), where you can check the package versions.

How to use genomap

The data should be in cell (row) x gene (column) format. Genomap construction needs only one parameter: the size of the genomap (row and column number). The row and column number can be any number starting from 1. You can create square or rectangular genomaps. The number of genes in your dataset should be less than or equal to the number of pixels in the genomap. Genomap construction is very fast and you should get the genomaps within a few seconds.

Sample data

To run the example code below, you will need to download the required data file. You can download it from here.

Example code

import pandas as pd # Please install pandas and matplotlib before you run this example

import matplotlib.pyplot as plt

import scipy

import genomap as gp

data = pd.read_csv('TM_data.csv', header=None, delim_whitespace=False)

colNum=31 # Column number of genomap

rowNum=31 # Row number of genomap

dataNorm=scipy.stats.zscore(data,axis=0,ddof=1) # Normalization of the data

genoMaps=gp.construct_genomap(dataNorm,rowNum,colNum) # Construction of genomaps

findI=genoMaps[0,:,:,:]

plt.figure(1) # Plot the first genomap

plt.imshow(findI, origin = 'lower', extent = [0, 10, 0, 10], aspect = 1)

plt.title('Genomap of a cell from TM dataset')

Citation

If you use the genomap code, please cite our Nature Communications paper: https://www.nature.com/articles/s41467-023-36383-6

Islam, M.T., Xing, L. Cartography of Genomic Interactions Enables Deep Analysis of Single-Cell Expression Data. Nat Commun 14, 679 (2023). https://doi.org/10.1038/s41467-023-36383-6

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

genomap-1.0.2.tar.gz (31.2 kB view details)

Uploaded Source

Built Distribution

genomap-1.0.2-py3-none-any.whl (30.8 kB view details)

Uploaded Python 3

File details

Details for the file genomap-1.0.2.tar.gz.

File metadata

  • Download URL: genomap-1.0.2.tar.gz
  • Upload date:
  • Size: 31.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for genomap-1.0.2.tar.gz
Algorithm Hash digest
SHA256 df4f68b195d24a7792b2ea311423001010266c561dafe6abf52a0572d974eb3e
MD5 2351262e18c222841e18fea088e75f63
BLAKE2b-256 bc3e3baefd5b8fbf4e444667754604ed244225e74d75edff04108156cb087edf

See more details on using hashes here.

File details

Details for the file genomap-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: genomap-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 30.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for genomap-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 af2ecbeec49c072c088eedb777ed848137836ca4df97b5caef2054454c5404d3
MD5 3c54665cb8c01aaf5a9625cc8cfb5236
BLAKE2b-256 d541486c403d097417f9b342bc890a14310b4657b73ad1f2fe186217c5adedc4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page