All functions

CLRnorm()

Center log ratio normalisation

CVTune_ncomp()

Tune ncomp using cross-validation.

CVTune_nfeat()

Tune nfeat using cross-validation.

KeepCommonGenes()

Keep common genes of two SingleCellExperiment objects.

PhiSpace()

PhiSpace continuous phenotyping

PhiSpaceR_1ref()

PhiSpace annotation using a single reference

RTassay()

Apply rank transform to a gene by cell matrix.

RankTransf()

Rank transform of a SingleCellExperiment object.

Score2Prob()

Convert PhiSpace Scores to Probabilities

SuperPC()

Compute regression model using selected features.

VizSpatial()

Visualising features (eg gene expression), metadata (eg cell type) or reducedDim component (eg PhiSpace cell type score) in 2D tissue space.

as.sparse.matrix()

Convert a matrix to sparse metrix.

basicPlotFormat()

Plot formatting for presentation and publication

cellTypeCorMat()

Create cell type correlation matrices

classErr()

Calculate classification errors.

clusterPhiSpace()

K-means clustering on PhiSpace principal components

codeY()

Convert discrete annotations to dummy variable matrices.

codeY_vec()

Convert discrete annotations to dummy variable matrices.

computeUMAP()

Compute UMAP.

compute_kernel_weights()

Compute kernel weights based on distances

doubleCent()

Double center a matrix by column and row means, resulting in a new matrix with zero row and column means.

findNiches()

Find spatial niches by clustering PhiSpace scores

getErr()

Compute different errors for cross-validation.

getErr_nfeat()

Calculate errors for the cross-validation for selecting nfeat.

getLabels()

Turn scores into labels

getPC()

Principal component analysis (PCA) based on partial singular value decomposition (SVD).

logNormTransf()

Log-normalise counts with size factors

logTransf()

Relative counts normalisation.

mvr()

Multivariate regression via principal component analysis (PCA) or partial least squares (PLS).

normPhiScores()

Normalise PhiSpace phenotypic scores by row or by column.

phenotype()

Soft phenotyping of query assay.

piScore()

Compute pi-score for ranking differentially expressed genes

plot(<PhiSpaceClustering>)

Plot method for PhiSpaceClustering objects

plotPhiSpaceHeatMap()

Plot PhiSpace scores as a heatmap

predict(<PhiSpaceModel>)

Score a query with a stored PhiSpace model

print(<PhiSpaceClustering>)

Print method for PhiSpaceClustering objects

pseudoBulk()

Converting single cells to pseudo-bulks.

rankFeatures()

Rank Features by Discriminative Power

reNameCols()

Turn a matrix to a data.frame withe newly defined colnames.

saveCellTypeMaps()

Save spatial cell type annotation heatmaps

scoreCells()

Score query cells against reference classes

scranTransf()

Run scran normalisation

selectFeat()

Select nfeat top features from each column (label) of impScores

spatialSampler()

Spatially-aware subsampling of SpatialExperiment objects

spatialSmoother()

Spatial smoother wrapper for SpatialExperiment and SingleCellExperiment objects

spatial_smooth_expression()

Spatial smoothing of gene expression using KNN with kernel weighting

split2()

Create partitions of data for cross-validation.

subsample()

Subsample from a sce object

summary(<PhiSpaceClustering>)

Summary method for PhiSpaceClustering objects

trainPhiSpace()

Train a PhiSpace model from a reference

translateLabel()

Translate cell type labels from finer to coarser according to a dictionary.

tunePhiSpace()

Tune ncomp and nfeat by cross-validation

zeroFeatQC()

Minimal quality control (QC): remove features with all zero values.