Calculate gene-wise correlation to target gene profile
Source:R/tools.R
correlate_genes_to_target.RdComputes the correlation between every gene in a \codeSummarizedExperiment object and a target gene profile across all samples. When multiple target genes are provided, their sample-wise median expression is used as the reference profile.
The target genes can be matched either against row names of the assay matrix or, when available, against \coderowData(se)$gene.
Value
A data.frame with one row per gene and correlation values. The returned columns include: \describe \itemfeature_idRow names of the assay matrix. \itemgeneGene label. Uses \coderowData(se)$gene when available, otherwise row names. \itemcorrelationCorrelation between each gene and the target profile.