Skip to main content

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)

Metadata

Release files for CellCover 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for CellCover 0.1.9
File Size Uploaded Provenance
CellCover-0.1.9.tar.gz 3.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for CellCover 0.1.9
File Interpreter ABI Platform
CellCover-0.1.9-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 8.1 kB

Release files / CellCover-0.1.9.tar.gz

Download URL CellCover-0.1.9.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
68310a770ef3509340767f459674a043ccbcaec8b1f1b791799d8af3fe6c7a6f
BLAKE2b-256 checksum
How to use checksums
ef88f6298dd86ae90fbe8e04a0e05a9e4bc24fa9139e7968638156280a76ea8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.5

Release files / CellCover-0.1.9-py2.py3-none-any.whl

Download URL CellCover-0.1.9-py2.py3-none-any.whl
Size 4.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
c8e504c75815e6e68e7ce73cb5c6ef13420fdffc13e08e18f7fd3c2283674f12
BLAKE2b-256 checksum
How to use checksums
414af9bd6e0fb30f3c269574504202f3a910e48ddf8c2e274fa80b430b51b88c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.5

Security for CellCover 0.1.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page