Description Usage Arguments Value
Sample a certain number of cells from a DGE data.frame and apply a specific function to the subset.
1 2 |
dge |
A data.frame containing DGE data, with rows being genes and columns cells. The first column is assumed to provide the gene identifiers. |
size |
Number of cells that should be sampled. If different sizes should
be sampled each specified group, |
fun |
Function to apply to sampled cells. Needs to take a DGE data.frame as it's first positional argument. |
groups |
Optional; a factor of the same length as the number of cells
providing group assignments for each cell in dge. If |
n |
Number of times a sample is drawn and the function is applied. |
simplify |
Logical or character string specifying if and how the output should be simplified. See help for sapply for more information. |
replace |
Should samples be drawn with replacement? |
funArgs |
Optional; a list with additional arguments for the applied
function |
A list of output objects from each sampling iteration of the selected
function fun
if simplify = FALSE
. If simplify = TRUE
a
vector, matrix, or, if simplify = "array"
, an array if appropriate.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.