Skip to main content

CellCover

Project description

CellCover

This is the python version of CellCover. To run CellCover, Gurobi installation is necessary. Please follow the README.md in lanlanji/CoveringPackage (github.com) to acquire and install the Gurobi academic liscence.

Installing CellCover:

pip install CellCover

Using CellCover to obtain marker panel

To run the CelCover, the following python variables need to be define first:

  • data: a numpy array of your single cell RNA-seq data with shape (N,G) where N is the number of cells and G is the size of the gene portfolio.

  • gene: a numpy array of gene names with shape (G,)

  • CellTypeLabels: a numpy array of cell types with shape (N,)

  • CellTypeNames: a numpy array of distinct cell type names (string)

  • ct: a single string of the cell type name that user want to find covering markers for, e.g. "CD4"

What is more, there is a list of hyperparameters that need to be defined before running the covering:

  • binarization_threshold: the threshold above which we binarize the gene expression to 1, below which we binarize the gene expression to 0

  • minSize: the depth of covering

  • alpha: 1 - covering rate. The default is $0.05$

  • te: This is a parameter for pruning the data. For each cell type, the gene expressing more than te * 100 percent of time are selected for finding the covering markers. The default is $0.1$.

  • top_num_gene: This is another pruning parameter. In each class, top_num_gene number of genes with the highest margin score will be selected for marker selection. The default is $6000$.

The pipeline of getting the covering marker panel of the user defined cell type ct is

from CellCover import binarization
from CellCover import SensList
from CellCover import weight
from CellCover import covering
from CellCover import getCoveringVariables
data = binarization(mat = data, binarization_threshold =  binarization_threshold)
sens = SensList(mat = data, CellTypeLabels =  CellTypeLabels, CellTypeNames=CellTypeNames)
X,w,g = weight(mat = data,sens =sens, CellTypeLabels = CellTypeLabels, CellTypeNames = CellTypeNames, ct = ct,gene = gene)
cov = covering(Z=X, minSize = minSize, alpha = alpha,weights = w)
marker = getCoveringVariables(cov, ngenes = len(g), geneNames = g, nlevels = 1)

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

CellCover-0.1.9.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

CellCover-0.1.9-py2.py3-none-any.whl (4.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file CellCover-0.1.9.tar.gz.

File metadata

  • Download URL: CellCover-0.1.9.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.5

File hashes

Hashes for CellCover-0.1.9.tar.gz
Algorithm Hash digest
SHA256 68310a770ef3509340767f459674a043ccbcaec8b1f1b791799d8af3fe6c7a6f
MD5 9bd8b87e09f8c67f4c5eb0f4ec7e74da
BLAKE2b-256 ef88f6298dd86ae90fbe8e04a0e05a9e4bc24fa9139e7968638156280a76ea8b

See more details on using hashes here.

File details

Details for the file CellCover-0.1.9-py2.py3-none-any.whl.

File metadata

  • Download URL: CellCover-0.1.9-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.5

File hashes

Hashes for CellCover-0.1.9-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c8e504c75815e6e68e7ce73cb5c6ef13420fdffc13e08e18f7fd3c2283674f12
MD5 5ae4cc21f25bccbce72024f477fd629d
BLAKE2b-256 414af9bd6e0fb30f3c269574504202f3a910e48ddf8c2e274fa80b430b51b88c

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