randomize_top: Randomize the top window.

Description Usage Arguments Details Value

Description

Randomly sorts the values of each row of the supplied object.

Usage

1
randomize_top(dataset)

Arguments

dataset

A list containing the top window data frame as the first element.

Details

randomize_top generates the result of a single randomization. To create a consistent negative control, this function should be called a sufficient number of times, using the average of all randomizations as such.

Randomization takes place one row at a time, sorting the column values and returning the randomized row to a newly created matrix. Since they are no longer relevant, due to the sorting, column names are removed.

Important note: This function uses the output of extract_top_genes as an input, or any list containing the top subset of genes as the first element. If that is the case, it should be noted that it will be subset as $topgenes.

Value

A matrix containing a sample of randomized values of the top window.


angelesarzalluz/scfilters documentation built on May 10, 2019, 11:46 a.m.