Skip to content

A Python implementation of of the scTransform method

License

Notifications You must be signed in to change notification settings

deto/scTransformPy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scTransformPy

A Python implementation of of the scTransform method

Based on the R package sctransform originally by Christoph Hafemeister

Currently this supports basic functionality - variance stabilizing transform of UMI count data based on a general linear model and kernel-regularized parameters.

Installation

pip install git+https://github.com/deto/scTransformPy.git

Usage

import scTransform

residuals = scTransform.vst(
    umi, latent_var=['log_umi'], cell_attr
)

Feature comparison with original R package

Supported:

  • cell_attr
  • latent_var

Unsupported:

  • batch variables (batch_var)
  • non-regularized latent variables (latent_var_nonreg)
  • gene sub-sampling (n_genes)
  • cell sub-sampling (n_cells)
  • alternate GLM fitting procedures (only the default, method="poisson" supported)
  • sparse input umi matrix

About

A Python implementation of of the scTransform method

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages