Skip to main content

Transfer learning framework for single cell gene expression analysis in Python

Project description

PyPI Downloads PyPI - License Read the Docs

scProject

Overview

Transfer learning for gene expression signatures in Python.

Description

scProject is a software package that allows biologists to use transfer learning to understand the usage of previously discovered features in genomic datasets. Tools like NNMF allow biologists to find a set of vectors that linearly combine to approximately reconstruct a dataset. These features can have biological meaning as a pathway, cell type, gene program, cell feature, etc.

Built on top of ProjectR, scProject leverages scikit-learn’s and scipy’s regression tools to effectively perform a change of basis with the new basis being the features discovered from NNMF or another previous analysis tool. For example, the values in the first column of the pattern matrix are the coefficients of the features to approximate the first sample in the dataset. This analysis allows the user to see the usage of features from a previously examined dataset and see if those same features are utilized in a new dataset. Using umap-learn to decrease the dimensionality of the regressed pattern matrix allows the user to visualize the pattern matrix in intuitive and informative ways.

Installation

scProject package can be installed by the following code:

pip install scProject

It is recommended to install the package and run the code in a virtual environment (venv). Use the code below to create and activate venv:

python -m venv env
source env/bin/activate

Contents

Name Link
scProject API https://scproject.readthedocs.io/en/master/contents.html
Regression https://scproject.readthedocs.io/en/master/contents.html#module-scProject.rg
Visualization https://scproject.readthedocs.io/en/master/contents.html#module-scProject.viz
Statistics https://scproject.readthedocs.io/en/master/contents.html#module-scProject.stats
Utilities https://scproject.readthedocs.io/en/master/contents.html#module-scProject.matcher

FAQ

I'm getting NumbaDeprecationWarning while importing scProject in Python. What should I do?
NumbaDeprecationWarning: The 'nopython' keyword argument was not supplied to the 'numba.jit' 
decorator. The implicit default value for this argument is currently False, but it will be changed to True in 
Numba 0.59.0. See https://numba.readthedocs.io/en/stable/reference/deprecation.html#deprecation-of-
object-mode-fall-back-behaviour-when-using-jit for details.
  @numba.jit()

The following error is coming from umap package, not scProject. Please ignore this warning message.

Additional Information

For more instructions and guidelines, read the documentation.
If you would like to leave feedback, please contact cshin12@jhu.edu and gsteinobrien@jhmi.edu.

Copyright © 2022-2024 Goff Lab, Stein-O'Brien Lab. All rights reserved.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scProject-1.1.4.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

scProject-1.1.4-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

Details for the file scProject-1.1.4.tar.gz.

File metadata

  • Download URL: scProject-1.1.4.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.5

File hashes

Hashes for scProject-1.1.4.tar.gz
Algorithm Hash digest
SHA256 1a6cfecc4411b5d22d2fe3debbdfe641977e12aa3a612b75dd998476ac2d8862
MD5 6ea130a1b9df31fdf06a0d08d012d40e
BLAKE2b-256 951691c8dd744f604d4b96427b378cbe5145205ac6abdd09598b0f698af86b0f

See more details on using hashes here.

File details

Details for the file scProject-1.1.4-py3-none-any.whl.

File metadata

  • Download URL: scProject-1.1.4-py3-none-any.whl
  • Upload date:
  • Size: 16.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.5

File hashes

Hashes for scProject-1.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c38393ad00b6fcebe1768714cb8f91c8eb89431641dd81a1facee8dfeff07819
MD5 5faf5ad91fa2a5187716c6faeea948c6
BLAKE2b-256 8fe367b0a0255daa668cdbd1a527853982cf4b76eb4e1f2b21692e5441e926fd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page