Turn bulk RNA-seq cohorts into synthetic single-cell datasets using omicverse's Bulk2Single workflow for cell fraction estimation, beta-VAE generation, and quality control comparisons against reference scRNA-seq.
The 'bulk-rna-seq-deconvolution-with-bulk2single' skill offers a robust solution for transforming bulk RNA-seq data into synthetic single-cell datasets. This tool is specifically designed to help researchers and data scientists reconstruct single-cell profiles from bulk RNA-seq cohorts using matched reference scRNA-seq atlases. The skill applies the Bulk2Single workflow, which involves harmonizing bulk RNA-seq replicates, training a beta-VAE generator, and performing quality control to benchmark synthetic cells against reference scRNA-seq data. It is an ideal solution for users aiming to leverage bulk RNA-seq data for single-cell analysis when actual single-cell sequencing is unavailable or impractical. This method facilitates in-depth biological analysis by providing a high-fidelity approximation of single-cell data from bulk sequencing input.
To load data, import necessary libraries like 'omicverse', 'scanpy', 'scvelo', and 'matplotlib', then use 'ov.read(...)' to load the bulk RNA-seq data. Gene identifiers can be harmonized using 'ov.bulk.Matrix_ID_mapping'. The reference single-cell data can be loaded using 'scv.datasets.dentategyrus()' for the PDAC example.
Yes, you can either train a new model using your bulk RNA-seq data or load an existing model. The model can be reloaded using the 'model.load()' function, which allows you to resume training or generate synthetic cells based on pre-trained weights.
No, GPU is not required, but it is highly recommended for faster training. By setting 'gpu=0', the model will use available CUDA devices, while 'gpu=-1' forces the usage of the CPU, which can be much slower.
If marker selection fails, try increasing the 'top_marker_num' parameter or manually providing a curated list of marker genes. This will improve the accuracy of cell-type identification in the synthetic cells.
The skill requires Python libraries like 'omicverse', 'scanpy', 'scvelo', 'anndata', and 'matplotlib'. For optimal performance, especially when training models, using a machine with GPU support (CUDA-enabled) is recommended, although it can also run on CPU with longer processing times.
Quick Setup:
.claude/skills/Repository
Starlitnightly/omicverse