Skip to content

berenslab/patch-seq-rrr

Repository files navigation

Sparse reduced-rank regression for exploratory visualization of paired multivariate data

Sparse reduced-rank regression for Patch-seq data

This repository holds all the code and all the data for the following manuscript:

BioRxiv link (first version from 2018): https://www.biorxiv.org/content/10.1101/302208v3

Jan 2025: switching from glmnet_py to scikit_learn

All analysis in the 2021 paper was done using the sRRR implementation based on the glmnet_py package. This package can cause conflicts with many versions of scipy and gets increasingly difficult to work with. We therefore now provide an equivalent sRRR implementation based on the MultiTaskElasticNet class from scikit-learn, and recommend this version for all users from now on. Please find it in sparseRRR_scikit.py and demo_scikit.ipynb.

In this implementation, we adopted the alpha and l1_ratio nomenclature from scikit-learn, meaning that alpha controls the strength of the overall group lasso + ridge regularization and l1_ratio controls how much lasso vs. ridge penalty is used (l1_ratio=1 corresponds to pure group lasso).

About

Sparse reduced-rank regression

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published