theislab/scgen
theislab/scgen has 364 GitHub stars and 74 forks. GitHot measured +1 stars in 24 hours. Last checked 2026-11-22 05:11 UTC. Last push 2024-12-05.
측정된 스타 증가
- in 24h
- +1
- in 7 days
- 기록 수집 중
- in 15 days
- 기록 수집 중
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
소개
Single cell perturbation prediction
머신러닝README.md
OriginalscGen


Introduction
scGen is a generative model to predict single-cell perturbation response across cell types, studies and species (Nature Methods, 2019). scGen is implemented using the scvi-tools framework.
Getting Started
What you can do with scGen:
Train on a dataset with multiple cell types and conditions and predict the perturbation effect on the cell type which you only have in one condition. This scenario can be extended to multiple species where you want to predict the effect of a specific species using another or all the species.
Train on a dataset where you have two conditions (e.g. control and perturbed) and predict on second dataset with similar genes.
Remove batch effect on labeled data. In this scenario you need to provide cell_type and batch labels to the method. Note that
batch_removaldoes not require all cell types to be present in all datasets (batches). If you have dataset specific cell type it will preserved as before.We assume there exist two conditions in you dataset (e.g. control and perturbed). You can train the model and with your data and predict the perturbation for the cell type/species of interest.
We recommend to use normalized data for the training. A simple example for normalization pipeline using scanpy:
import scanpy as sc
adata = sc.read(data)
sc.pp.normalize_total(adata)
sc.pp.log1p(adata)
- We further recommend to use highly variable genes (HVG). For the most examples in the paper we used top ~7000 HVG. However, this is optional and highly depend on your application and computational power.
Installation
Installation with pip
To install the latest version scGen via pip:
pip install scgen
or install the development version via pip:
pip install git+https://github.com/theislab/scgen.git
Examples
See examples at our documentation site.
Reproducing paper results
In order to reproduce paper results visit here.
References
Lotfollahi, Mohammad and Wolf, F. Alexander and Theis, Fabian J. "scGen predicts single-cell perturbation responses." Nature Methods, 2019. pdf
관련 프로젝트 살펴보기
불러오는 중…