Skip to content

Contrastive pre-training for technology-agnostic single-cell representations beyond reconstruction

Notifications You must be signed in to change notification settings

theislab/scConcept

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scConcept

This repository contains the python package to train and use scConcept (Single-cell contrastive cell pre-training) method for single-cell transcriptomics data.

Installation

Option 1: Using uv (Recommended)

  1. Install uv if you haven't already:
curl -LsSf https://astral.sh/uv/install.sh | sh
  1. Create and activate a virtual environment and install dependencies:
sh ./scripts/setup_uv.sh

Option 2: Using pip

  1. Create and activate virtual environment:
python -m venv venv
source venv/bin/activate
  1. Install the package and dependencies:
pip install -e .
  1. Install Flash Attention 2:
pip install flash-attn==2.7.* --no-build-isolation
  1. Install lamin-dataloader (optional: only required for training over large number of anndata objects):
pip install git+https://github.com/theislab/lamin_dataloader.git

Licence

scConcept is licensed under the MIT License

About

Contrastive pre-training for technology-agnostic single-cell representations beyond reconstruction

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published