filter_signatures: Filter Out Lowly-Correlated Genes from Signature(s)

View source: R/filter_signatures.R

filter_signaturesR Documentation

Filter Out Lowly-Correlated Genes from Signature(s)

Description

This function removes signature genes whose expression level is poorly correlated to the signature score. This is relevant if the signatures themselves were defined from a different dataset, as might be the case in applying single-cell signatures to bulk, or in moving between datasets generated with different protocols (e.g. single-nuclei RNA seq. vs single-cell RNA seq.).

Usage

filter_signatures(m, sigs, filter.threshold = 0.4)

Arguments

m

expression matrix of genes X cells to score. Not centered.

sigs

list of gene signatures to be refined.

filter.threshold

minimum pearson's r below which genes are filtered out of the signature. Default: 0.4

Value

a filtered list of signatures, whose genes' expression levels all had correlation values to the signature score above or equal to <filter.threshold>.


jlaffy/scalop documentation built on March 24, 2024, 9 a.m.