BioX-NKU / scButterfly

A versatile single-cell cross-modality translation method via dual-aligned variational autoencoders
MIT License
15 stars 3 forks source link

PyPI Documentation Status Downloads

scButterfly: a versatile single-cell cross-modality translation method via dual-aligned variational autoencoders

Installation

It's prefered to create a new environment for scButterfly

conda create -n scButterfly python==3.9
conda activate scButterfly

scButterfly is available on PyPI, and could be installed using

pip install scButterfly

Installation via Github is also provided

git clone https://github.com/Biox-NKU/scButterfly
cd scButterfly
pip install scButterfly-0.0.9-py3-none-any.whl

This process will take approximately 5 to 10 minutes, depending on the user's computer device and internet connectivition.

Quick Start

Illustrating with the translation between scRNA-seq and scATAC-seq data as an example, scButterfly could be easily used following 3 steps: data preprocessing, model training, predicting and evaluating. More details could be find in scButterfly documents.

Generate a scButterfly model first with following process:

from scButterfly.butterfly import Butterfly
butterfly = Butterfly()

1. Data preprocessing

2. Model training

3. Predicting and evaluating

Demo, document, tutorial and source code

We provide demos of basic scButterfly model and two variants (scButterfly-C and scButterfly-T) illustrating with CL datasets in scButterfly-B usage, scButterfly-C usage, and scButterfly-T usage, with data presented in Google drive. scButterfly-B, scButterfly-C and scButterfly-T repectively take about 12, 24, 18 minutes for the whole process (containing pre-processing, data augmentation, model training and evaluating) on desktop computer with NVIDIA RTX A6000 GPU.

We also provide richer tutorials and documents for scButterfly in scButterfly documents, including more details of provided APIs for customing data preprocessing, model structure and training strategy. The source code of experiments for scButterfly is available at source code, including more detailed source code for scButterfly.