Skip to main content

scHyper: Reconstructing cell-cell communication through hypergraph neural networks

Project description

scHyper: Reconstructing cell-cell communication through hypergraph neural networks

What is scHyper?

workflow

We developed scHyper, which aims to decode context-driven intercellular communication from scRNA-seq data by constructing hypergraph networks and applying hypergraph neural network models . (i) scHyper integrates the Cellinker and CellChatDB to obtain rich L-R interaction relationships and signaling pathway annotations. (ii) scHyper constructs intercellular communication networks in the form of hypergraphs, analyzing intercellular communication from a global perspective. (iii) scHyper uses hypergraph neural network models to learn intercellular communication patterns and capture nonlinear relationships and complex interaction patterns. (iv) scHyper implements nonparametric tests to evaluate the statistical significance of interactions between cell types and thus identifies intercellular communication relationships that are biologically significant.

How to use scHyper?

First, we construct the intercellular communication tensor and hypergraph network. The relevant code can be found in the dataprocess.py. Through data processing, we generated the following three files,and the user needs to specify the save path, such as save_path='to/path/data/demo'.

------test_data.npz;

------train_data.npz;

------use_to_predict.npz.

Second, we train model by graph neural networks. To run the code:

cd model
python main_torch.py --data demo 

Users can experiment by modifying the following parameters:

The --data argument can take a folder that contains the three files from the first step.

The --save-path argument specifies the path where the model will be saved.

The --load-path argument specifies the loading paths for the training set, test set and prediction arrays (from Step 1).

Finally, we used nonparametric tests to identify significant intercellular communications. The relevant code can be found in the dataprocess.py.

Tutorial

To facilitate understanding and use of scHyper, we provide a simple demo, including count and meta, which provides tutorials on data processing, results and visualization.

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

scHyper-1.0.14.tar.gz (23.0 kB view details)

Uploaded Source

File details

Details for the file scHyper-1.0.14.tar.gz.

File metadata

  • Download URL: scHyper-1.0.14.tar.gz
  • Upload date:
  • Size: 23.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.12

File hashes

Hashes for scHyper-1.0.14.tar.gz
Algorithm Hash digest
SHA256 26e03a1e85c43489ce1ebf7997fe2666e301954cf1a18f47056649ea9095fbe3
MD5 91da5214f9d68893741bbc6dca2d4d63
BLAKE2b-256 8bcf00017925b44cf61b7ec80789f040c9caa65593f7d5c945cb892e29acd367

See more details on using hashes here.

Supported by

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