TrimNN: an empowered bottom-up approach designed to estimate the prevalence of sizeable CC motifs in a triangulated cell graph
Project description
A bottom-up strategy to explore sizable cellular community motifs as building blocks of multicellular organization using TrimNN
Triangulation cellular community Motif Neural Network (TrimNN), an empowered bottom-up approach designed to estimate the prevalence of sizeable CC motifs in a triangulated cell graph. Spatially resolved transcriptomics, e.g., STARmap PLUS and 10X Xenium, and spatial proteomics data, e.g., MIBI-TOF and CODEX, are used as input to generate corresponding cellular community. After process of subgraph matching and pattern growth, TrimNN estimates different Size-K overrepresented CC motifs. These CC motifs can be biologically interpreted in the downstream analysis, including statistical summarization, cellular level interpretation within cell-cell communication analysis, gene level interpretation within differentially expressed gene analysis, e.g., GO enrichment analysis and pathway enrichment analysis, and phenotypical analysis within the availability of phenotypical information, e.g., survival curve and supervised analysis.
System Requirements
Install Dependencies
pip install -r requirements.txt
Install TrimNN from GitHub
git clone https://yuyang-0825/TrimNN
cd TrimNN
Data Preparation
Input Spatial Omics Data
A spatial omics data should include X, Y(coordinates) and cell_type columns to generate a cellular community graph. [example]
Generate gml file from your input CSV file as TrimNN's input.
cd src
python csv2gml.py --path spatial_data/demo_data.csv
- --path: The path of input data.
- The gml file with the same name will appear in the same folder.
Demo
Function 1: Identify specific size top overrepresented CC motif
To identify the specific size top overrepresented CC motif in the cellular community graph, run:
cd src
python specific_size.py -size 3 -k 2 -graph spatial_data/demo_data.gml -celltype 8 -outpath result/
Command Line Arguments:
- -size: specific size of CC motif (from 3 to 9).
- -k: k-hop.
- -graph: file path for input cellular community graph.
- -celltype: number of cell types.
- -outpath: folder path for output result.
Function 2: Identify all top overrepresented CC motifs
To identify all top overrepresented CC motifs from size3 to size5(default) in the cellular community graph, run:
cd src
python all_size.py -size 5 -k 2 -graph spatial_data/demo_data.gml -celltype 8 -outpath result/
Command Line Arguments:
- -size: The maximum size of the generated top overrepresented CC motifs.[default: 5] [maximum: 9]
- -k: k-hop.
- -graph: file path for input cellular community graph.
- -celltype: number of cell types.
- -outpath: folder path for output result.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file TrimNN-0.0.1.tar.gz.
File metadata
- Download URL: TrimNN-0.0.1.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a9b32f402cd60b5ea8adb12f8a9912d985f20d08353e76e51418b4aed693bdac
|
|
| MD5 |
9783e8ca5363ee2372100c3f4d0f5c6c
|
|
| BLAKE2b-256 |
d12a972ea46b93167be437568ac4a988076ad7cbd5ea9351b22852ad47d1228b
|
File details
Details for the file TrimNN-0.0.1-py3-none-any.whl.
File metadata
- Download URL: TrimNN-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
06aeb91bf26fdfa6f6bc8841b74b61d2a4e9b163af6ba31e622c626e3e2be28a
|
|
| MD5 |
bb9cdb58f69295aaa83567cd5afe627a
|
|
| BLAKE2b-256 |
31788ea2d4d0bc7424fdd83f4a39d44fbec25d8c0849a79e305a5d4c917fd11c
|