|
1 | | -# Installation |
| 1 | +# Cell2Net Installation Guide |
2 | 2 |
|
3 | | -## install from github |
| 3 | +## About Cell2Net |
4 | 4 |
|
5 | | -pip install cell2net |
| 5 | +**Cell2Net** is a comprehensive Python framework for analyzing multimodal single-cell data, specifically designed to dissect multi-scale gene regulation by predicting expression using multiple input features, including TF expression, peak accessibility, and DNA sequence. This powerful toolkit enables researchers to model and understand gene regulatory networks by connecting chromatin accessibility patterns with gene expression profiles. |
| 6 | + |
| 7 | +### Key Features |
| 8 | + |
| 9 | +🧬 **Multiome Data Preprocessing** |
| 10 | + |
| 11 | +- Seamless handling of paired RNA-seq and ATAC-seq data |
| 12 | +- Built on MuData framework for efficient multimodal data storage |
| 13 | +- Supports 10x Genomics multiome and other paired assay formats |
| 14 | + |
| 15 | +🤖 **Deep Learning Models** |
| 16 | + |
| 17 | +- Sequence-to-accessibility prediction models (similar to ChromBPNet) |
| 18 | +- Joint RNA-ATAC modeling with neural networks |
| 19 | +- Pretrained encoders for transfer learning across cell types |
| 20 | + |
| 21 | +🔬 **Regulatory Network Analysis** |
| 22 | + |
| 23 | +- Peak-to-gene linking algorithms |
| 24 | +- Transcription factor motif scanning and analysis |
| 25 | +- TF-target gene relationship inference |
| 26 | +- Regulatory circuit reconstruction |
| 27 | + |
| 28 | +📊 **Comprehensive Preprocessing** |
| 29 | + |
| 30 | +- Metacell generation for noise reduction |
| 31 | +- Genomic annotation integration (genes, peaks, motifs) |
| 32 | +- Batch effect correction and normalization |
| 33 | + |
| 34 | +🎯 **Interpretability Tools** |
| 35 | + |
| 36 | +- Attribution-based model interpretation |
| 37 | +- Saturation mutagenesis for sequence analysis |
| 38 | +- Perturbation prediction and analysis (Ongoing) |
| 39 | +- Visualization utilities for regulatory networks |
| 40 | + |
| 41 | +### Use Cases |
| 42 | + |
| 43 | +- **Gene Regulatory Network Reconstruction**: Build interpretable models connecting TFs → chromatin accessibility → gene expression |
| 44 | +- **Cell Type Analysis**: Compare regulatory programs across different cell types and conditions |
| 45 | +- **Perturbation Prediction**: Model effects of genetic variants, TF knockdowns, or drug treatments |
| 46 | +- **Developmental Biology**: Analyze regulatory changes during differentiation and development |
| 47 | +- **Disease Research**: Understand regulatory dysregulation in disease contexts |
| 48 | + |
| 49 | +### Scientific Background |
| 50 | + |
| 51 | +Cell2Net addresses the challenge of understanding how chromatin accessibility changes drive gene expression differences across cells. By jointly modeling both modalities with deep learning, it captures complex regulatory relationships that traditional correlation-based methods miss. The framework incorporates: |
| 52 | + |
| 53 | +- **Sequence context**: DNA sequence features that determine TF binding |
| 54 | +- **Chromatin state**: Accessibility patterns that enable or restrict binding |
| 55 | +- **Expression coupling**: Direct modeling of accessibility-expression relationships |
| 56 | +- **Regulatory hierarchy**: TF → peak → gene causal relationships |
| 57 | + |
| 58 | +## Installation |
| 59 | + |
| 60 | +### Prerequisites |
| 61 | + |
| 62 | +- Python 3.8 or higher |
| 63 | +- CUDA-compatible GPU (recommended for model training) |
| 64 | +- At least 16GB RAM for large datasets |
| 65 | + |
| 66 | +### Install from PyPI (Recommended) |
| 67 | + |
| 68 | +```bash |
| 69 | +pip install cell2net |
| 70 | +``` |
| 71 | + |
| 72 | +### Install from GitHub (Latest Development Version) |
| 73 | + |
| 74 | +```bash |
| 75 | +pip install git+https://github.com/pinellolab/cell2net.git |
| 76 | +``` |
| 77 | + |
| 78 | +### Install in Development Mode |
| 79 | + |
| 80 | +For contributors or users wanting to modify the source code: |
| 81 | + |
| 82 | +```bash |
| 83 | +git clone https://github.com/pinellolab/cell2net.git |
| 84 | +cd cell2net |
| 85 | +pip install -e . |
| 86 | +``` |
| 87 | + |
| 88 | +### Optional Dependencies |
| 89 | + |
| 90 | +For enhanced functionality, install additional packages: |
| 91 | + |
| 92 | +```bash |
| 93 | +# For advanced visualization |
| 94 | +pip install plotly kaleido |
| 95 | + |
| 96 | +# For motif analysis |
| 97 | +pip install logomaker |
| 98 | + |
| 99 | +# For GPU acceleration (if not already installed) |
| 100 | +pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 |
| 101 | +``` |
| 102 | + |
| 103 | +## Quick Start |
| 104 | + |
| 105 | +After installation, verify your setup: |
| 106 | + |
| 107 | +```python |
| 108 | +import cell2net as cn |
| 109 | +import mudata as md |
| 110 | + |
| 111 | +# Load example data |
| 112 | +mdata = md.read_h5mu("path/to/multiome_data.h5mu") |
| 113 | + |
| 114 | +# Basic preprocessing |
| 115 | +cn.pp.add_peaks(mdata, mod_name='atac') |
| 116 | +cn.pp.add_dna_sequence(mdata, ref_fasta='genome.fa') |
| 117 | + |
| 118 | +# Create and train a model |
| 119 | +model = cn.tl.Cell2Net(mdata, gene='GENE_OF_INTEREST') |
| 120 | +model.train() |
| 121 | +``` |
| 122 | + |
| 123 | +## Getting Help |
| 124 | + |
| 125 | +- 📖 **Documentation**: [Complete tutorials and API reference](docs/) |
| 126 | +- 🐛 **Issues**: [Report bugs or request features](https://github.com/pinellolab/cell2net/issues) |
| 127 | +- 💬 **Discussions**: [Community Q&A and discussions](https://github.com/pinellolab/cell2net/discussions) |
| 128 | +- 📧 **Contact**: For research collaborations or questions |
| 129 | + |
| 130 | +## Citation |
| 131 | + |
| 132 | +If you use Cell2Net in your research, please cite our paper: |
| 133 | + |
| 134 | +```bibtex |
| 135 | +[Citation information will be added upon publication] |
| 136 | +``` |
0 commit comments