Selector: Select signatures from candidate list (according to the...

View source: R/Selector.R

SelectorR Documentation

Select signatures from candidate list (according to the consistence in most samples).

Description

Select signatures from candidate list (according to the consistence in most samples).

Usage

Selector(mat, cutoff = 0, type = "<", select = 0.8)

Arguments

mat

A matrix, each row is candidates (genes), each column is samples.

cutoff

Numeric, specifying the cutoff to define the signatures.

type

Character, ">" or "<".

select

Numeric, specifying the proportion of samples in which signature is selected.

Value

An list containing two elements, the first is the selected signature and the second is a ggplot object.

Examples

mat = matrix(rnorm(1000*30), 1000, 30)
rownames(mat) = paste0("Gene", 1:1000)
colnames(mat) = paste0("Sample", 1:30)
hits = Selector(mat, select = 0.68)
print(hits$p)


WubingZhang/MAGeCKFlute documentation built on Jan. 27, 2024, 2:43 p.m.