Metadata-Version: 2.4
Name: scmiracle
Version: 0.0.2
Summary: A torch-based integration method for single-cell multi-omic data.
Author-email: labomics <omicshub@outlook.com>
Project-URL: Homepage, https://github.com/sc-miracle/miracle
Project-URL: Issues, https://github.com/sc-miracle/miracle/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: lightning>=2.4.0
Requires-Dist: lightning-utilities>=0.11.8
Requires-Dist: torch>=2.5.1
Requires-Dist: torchaudio>=2.5.1
Requires-Dist: torchmetrics>=1.5.1
Requires-Dist: torchvision>=0.20.1
Requires-Dist: tornado
Requires-Dist: tqdm
Requires-Dist: toml
Requires-Dist: requests
Requires-Dist: ipykernel
Requires-Dist: anndata
Requires-Dist: tensorboard
Requires-Dist: matplotlib
Requires-Dist: numpy
Requires-Dist: pandas
Requires-Dist: scanpy
Requires-Dist: scikit-learn
Requires-Dist: scipy
Dynamic: license-file

# MIRACLE: A Continual Integration Method for Single-cell Data

<div align="center">
  <img src="docs/source/_static/img/Figure1.png" alt="MIRACLE Logo" width="900px">
</div>

<p align="center">
By employing <strong> dynamic architecture adaptation and data rehearsal strategies </strong>, MIRACLE enables <strong> continual integration  </strong> of diverse datasets while preserving biological fidelity over time.
</p>

---

**MIRACLE** , an online integration framework for multimodal single-cell integration via continual learning (CL). CL enables models to incrementally incorporate new data while preserving previously acquired knowledge. MIRACLE employs CL strategies including dynamic architecture adaptation and data rehearsal to enhance adaptability and knowledge retention.

- **MIRACLE Documentation:** [**scmiracle.readthedocs.io**](https://miracle.readthedocs.io/index.html)
<!-- - **Publication:** [***Nature Biotechnology***](https://www.nature.com/articles/s41587-023-02040-y) -->

## ✨ Key Features
*    **Boosted Efficiency with Continual Integration**: Incrementally add new data batches to an existing model, which eliminates the need for complete retraining and significantly reduces computational requirements.
*    **Dynamic Feature Space Adaptation**: Seamlessly incorporate new data containing novel features (e.g., new genes or proteins not present in the original dataset). The model dynamically expands its feature space, ensuring no information is lost when integrating data from different technologies or antibody panels.
*    **Intelligent Data Summarization for Rehearsal**: Employs a distribution-preserving sampling strategy (BTS) to compress past data into a small, representative core set. This "rehearsal" dataset enables efficient knowledge retention during updates without needing to store all historical data, making the process highly scalable and shareable.

## 🚀 Installation

Get started with MIRACLE by setting up a conda environment.

```bash
conda create -n scmiracle python=3.12
conda activate scmiracle
pip install scmiracle
```

## ⚡ Getting Started

To get started, please refer to our [documentation](https://miracle.readthedocs.io/index.html).

## 📈 Reproducibility

To reproduce the results from our publication, please visit the `reproducibility` branch of this repository:
[**https://github.com/sc-miracle/miracle-reproducibility/**](https://github.com/sc-miracle/miracle-reproducibility)

<!-- ## 📜 Citation

If you use MIRACLE in your research, please cite our paper:

He, Z., Hu, S., Chen, Y. *et al*. Mosaic integration and knowledge transfer of single-cell multimodal data with MIDAS. *Nat Biotechnol* (2024). https://doi.org/10.1038/s41587-023-02040-y

```bibtex
@article{he2024mosaic,
  title={Mosaic integration and knowledge transfer of single-cell multimodal data with MIDAS},
  author={He, Zhen and Hu, Shuofeng and Chen, Yaowen and An, Sijing and Zhou, Jiahao and Liu, Runyan and Shi, Junfeng and Wang, Jing and Dong, Guohua and Shi, Jinhui and others},
  journal={Nature Biotechnology},
  pages={1--12},
  year={2024},
  publisher={Nature Publishing Group US New York}
}
``` -->

<!-- ## 🙌 Contributing

We welcome contributions from the community! If you have a suggestion, bug report, or want to contribute to the code, please feel free to open an issue or submit a pull request. -->

## 📝 License

 MIRACLE is available under the [MIT License](https://github.com/sc-miracle/miracle/LICENSE).
