metacell pipeline functions |
|
---|---|
Build a cell graph using balanced knn after normalizing over a given metacell model |
|
Build a cell graph using blanacing of an extrenal distance matrix |
|
Build a cell graph using balanced knn graph on given gene features |
|
Build a cell graph using raw knn graph on given gene features |
|
Create a gene name xref for heuristc map of mars/10x |
|
mcell_gene_stat |
|
Creates a new matrix object from a given one by adding FACS index sorting data to matrix metadata table |
|
Compute metacell using a native implementation of a graph cover k-means-like approach |
|
generate a batch stat table for a given single cell umi matrix |
|
calc batch stats - essentially umi distribution |
|
Computing gene-gene correlation normaized over a similarity graph |
|
Return a filter (boolean vector) selecting only coclust edges that are nearly as frequent as a user defined K-nn parameter |
|
Compute metacell using resampling iterations of graph cover k-means-like approach |
|
Utility plot function to compare bulk expression of two batches/metadata factors |
|
wrap up an atlas object from mc, mc2d and matrix ids |
|
Compute a cell cell correlation matrix using features defined by a gene set |
|
Compute predictive value of MC cover as correlation of MC averages of sc umis |
|
adding genes to a gene set |
|
gnereate/filter gene features from coverage threshold in gstat table |
|
Select/filter gene features from using multiple statistics from the gstat table. All genes passing the selected thresholds are included |
|
gnereate/filter gene features from statistics on correlation with umi count |
|
gnereate/filter gene features from gstat normalized var/mean |
|
Generate a gene set of markers from a metacell cover |
|
add new gene set based on an existing one with filtering specific clusters |
|
split gene set into several modules using clustering of genes by correlation over cells downsampled umi vector |
|
Load a matrix from a MARS-seq multi-batch dataset. The scdb version of mcell_read_multi_scmat_mars |
|
Load a matrix from a 10x multi-batch dataset. The scdb version of mcell_read_multi_scmat_10x |
|
Load a matrix from a 10x dataset. The scdb version of mcell_read_multi_scmat_10x |
|
Load a matrix from a simple dense table with genes in rows and cells in columns. First column is the gene name |
|
Generate a new matrix object with a given ignore cell list |
|
Generate a new matrix object with a given ignore gene list |
|
Generate a new matrix object after removing cells without enough umis |
|
Find and report naive gene gene correlation over umi matrix |
|
Metacell layout using force directed projection of a low degree mc graph |
|
Compute cells 2d coordinates based on the mc graph when the mc coordinates are supplied externally |
|
Plot mc+cell graph using pre-defined mc colorization |
|
Plot mc+cells using pre-defined mc colorization, breakdown by given metadata field (e.g. patient) |
|
Plot the (log2) metacell footprint value of the selected gene on the 2d projection |
|
Rotatae/invert projection |
|
Update metacell annotation |
|
Update metacells colors |
|
Compute cell homogeneity - the fraction of intra mc edges per cell |
|
Compute confusion matrix on metacells using a coclustering object |
|
Compute confusion matrix on metacells |
|
for each MC we compute mean and variance of the intra-MC edge density |
|
Output genes cell modules footprint matrix with metadata on the cell modules |
|
build a metacell cover from co-clust data through filtering un-balanced edges and running graph cover |
|
build a metacell cover from a co-clust object using a simple hclust approach |
|
build a metacell cover from a big co-clust using louvain clustering and metacell coverage within clusters |
|
comput mc hierarchucal clustering using the normalized confusion matrix |
|
identify super structure in an mc cover, based on hcluster of the confusion matrix |
|
TEst if a graph object cover all cells in the mc |
|
plot a heatmap of number of cells per metacell and metadata factor (e.g. patient, condition, sample etc.) |
|
plot a metacel confusion matrix |
|
Utility plot function to compare two genes based on mc_fp |
|
plot super strucutre: super clust mc footprint, and selected genes |
|
plot a marker heat map give a metacell object |
|
plot a marker heat map for a subset of metacells - selecting relevant genes for separation |
|
plot a "gel" like diagram showing expression of a gene of interest over metacells that are classified into types |
|
Compute predictive value of MC cover as correlation of MC averages of sc umis |
|
Reorder metacells using hierarchical clustering |
|
Simple screen for outlier cells in a metacell cover, finding genes with overly high expression given their metacell mean |
|
Splits input metacell object into sub-objects by color group, naming the new metacells <mc_id>_submc_<group> |
|
Split and filter metacells using dbscan and outlier gene detection |
|
ncell_merge_mats: Merge two matrix using their ids in scdb. See scm_merge_mats for details on batch management and policies on missing genes |
|
Compute metacell manifod graph using the confusion matrix of balanced K-nn between individual cells projected on metacells |
|
Compute metacell manifold graph using logistic distances and balanced K-nn |
|
Generate a new metacell in scdb |
|
Generate a new metacell in scdb |
|
Generate a new metacell manifold graph object |
|
Generate a new atlas in scdb |
|
Generate a new network in scdb |
|
Linear simple pipeline for turning a matrix to a MC and plotting std figs |
|
plot batches stats |
|
Plotting a matrix of co-occurences between two metacell covers of the same dataset |
|
Plot gene set correlation matrices given a an scamt. See version using metacells for potentially more robust behavior. This is used to detemrine initial feature selectio (e.g. filtering biologically irrelevant gene modules) |
|
plot gene/feature statistics |
|
Plot and outlier heat map. |
|
Plot histogram of total number of umis per cell in the umis matrix |
|
Project a metacell object on a reference "atlas" |
|
read multiple 10x umi matrices and merge them, based on a table defining the datasets. Field amp_batch_id from the table is added to the cell name to prevent cell names clashes. |
|
read multiple MARS umi matrices and merge them, based on a table defining the datasets. |
|
Analyze cell cell cor |
|
Compute predictive value of MC cover as correlation of weighted MC averages of sc umis |
|
scdb functions |
|
scdb_add_cgraph - add cgraph to the DB and cahce |
|
scdb_add_coclust - add coclust to the DB and cahce |
|
scdb_add_gene_names_xref - add a gene name xref tab to the DB - will save it and cache |
|
scdb_add_gset - add gset to the DB and cahce |
|
scdb_add_gstat - add gstat to the DB and cahce |
|
scdb_add_mat - add amatrix to the DB - will save it and cache |
|
scdb_add_mc - add mc to the DB and cahce |
|
scdb_add_mc2d - add mc2d to the DB and cahce |
|
scdb_add_mcatlas - add mcatlas to the DB and cahce |
|
scdb_add_mctnetwork - add mctnetwork to the DB and cahce |
|
scdb_add_mgraph - add mgraph to the DB and cahce |
|
scdb_cgraph - get a cgraph object |
|
scdb_coclust - get a coclust object |
|
scdb_del_cgraph - del cgraph from the DB and cahce |
|
scdb_del_coclust - del coclust from the DB and cahce |
|
scdb_del_gene_names_xref - remove a gene names xref from the DB (not just the cache!) |
|
scdb_del_gset - del gset from the DB and cahce |
|
scdb_del_gstat - del gstat from the DB and cahce |
|
scdb_del_mat - remove a matrix from the DB (not just the cache!) |
|
scdb_del_mc - del mc from the DB and cahce |
|
scdb_del_mc2d - del mc2d from the DB and cahce |
|
scdb_del_mcatlas - del mcatlas from the DB and cahce |
|
scdb_del_mctnetwork - del mctnetwork from the DB and cahce |
|
scdb_del_mgraph - del mgraph from the DB and cahce |
|
scdb_gene_names_xref - get gene names convertor table from db |
|
scdb_gset - get a gene set |
|
scdb_gstat - get a gstat data frame. If it is missing and the id match an existing matrix, a gstat will be gerated for this matrix and added to scdb |
|
Initializing scdb |
|
Testing is scdb is initialized |
|
List all object of a given type from the current scdb |
|
scdb_ls_loaded - list loaded object of a certain type |
|
scdb_mat - get matrix from db, load it if needed |
|
scdb_mc - get a mc object |
|
scdb_mc2d - get a mc2d object |
|
scdb_mcatlas - get a mcatlas object |
|
scdb_mctnetwork - get a mctnetwork object |
|
scdb_mgraph - get a mgraph object |
|
scm functions |
|
Adds FACS index sorting data to matrix metadata table |
|
downsampl |
|
Export a mat object (umi matrix and metadata table) to a SingleCellExperiment object |
|
Calculate basic statistics on a matrix |
|
Set ignored (i.e. blacklisted) cells |
|
Set ignored (i.e. blacklisted) genes |
|
Import a umi count matrix with metadata per cell from a SingleCellExperiment objectto a scmat object to a SingleCellExperiment object |
|
Merge multiple single cell matrix object. |
|
Constract a tgScMat |
|
Extract sub-matrix. This return a matrix object on a subset of the genes and cells. |
|
Determine recommended downsampling depth. |
|
Read a matrix from the output of a 10x run. Batches can be stripped from the cell identifier if in BARCODE-LANE format. |
|
Read a custom count matrix from the output of a 10x run. Batches can be stripped from the cell identifier if in BARCODE-LANE format. |
|
metacell functions |
|
colorize metacell using a set of prefered markers and their colors |
|
colorize metacell using an ugly default color spectrum, or a user supplied one |
|
colorize metacell by projecting colors from another metacell on a similar (not identical) set of cells |
|
colorize metacells using a set of super MCs derived by hclust, colored according to a user defined table |
|
Compute fraction of non zero expressing cells per gene and mc |
|
Compute metacell absolute mean umi per cell |
|
Compute metacell gene footprint |
|
Compute distribution of cells over batches and metacell |
|
Compute log fold change expression of each gene given its regularized metacell expression |
|
Reorder metacell data given defined order |
|
Create a metacell object on a subset of the MCs, with all other cells becoming outliers. There is no re-normalization of mc_fp. |
|
Move all cels from specific metacells to the outliers |
|
Compute stats over metacell and update the object |
|
gene set functions |
|
Add specific genes to the set |
|
extract umi matrix for the genes in the set, possibly donwsampling |
|
Get genes of one set |
|
Import gene set for a text table |
|
Generating a new gset |
|
Generate a new gene set from an existing one, filtered by a list of genes |
|
Generate a new gene set from an existing one, filtered by a list of genes |
|
Exprt gene set to a table |
|
classes |
|
Cell graph |
|
Metacell colustering object |
|
Gene sets interface |
|
Meta cell 2d projection |
|
wrap up an atlas object from mc, mc2d and matrix ids |
|
Meta cell cover |
|
manifold graph structure over a metacell object |
|
temporal netwrok over metacells |
|
Single cell RNA-seq matrix |
|
This constructs graph object from a data frame on columns col1,col2, weight, (the format returened by tgs_cor_graph). Note this is not intended to serve natively complex graph algs etc, but is just a container for use by scdb and operaitons on scmats (creating a graph) and mcell (using the graph to compute graph covers) |
|
Construct a coclust object |
|
tgGeneSets public constructor |
|
Construct a meta cell 2D embedding |
|
Construct a meta cell reference atlas |
|
Construct a meta cell object |
|
Construct a meta cell manifold graph |
|
Construct a meta cell time network |
|
utils |
|
Plot a color bar with values |
|
port_cor matrix correlation wrap. Parameter selects which function to use, cor or tgs_cor. Tgs_cor can be more efficien if available |
|
computing correlations between all rows in two matrices |
|
Efficient version for scaling all columns in a sparse matrix |
|
wrapping tgs functions to compute balanced graph from a matrix |
|
Generate a standard figure dir name igven and object and figure type |
|
Generate a standard figure name igven and object and figure type |
|
scgfig_set_base - set base directory for metacell figures, creates it if it doesn't exist. |