run_downsampling | R Documentation |
Function designed to pack random cell downsampling code to ease
running multiple iterations of this process during acorde
benchmarking.
Each of these iterations includes three steps: randomly selecting a number of
cells form the specified cell types, subsetting the expression matrix and
creating an SCE object including ZINBWaVE weights for DE testing
(see cell_type_DE
).
run_downsampling(data, id_table, downsampling_ct, cell_no, isoform_col = NULL)
data |
A data.frame or tibble object including isoforms as rows and cells
as columns. Isoform IDs should be included in an independent column, not defined
as |
id_table |
A data frame including two columns named |
downsampling_ct |
A character vector including one or more cell type names
(matching those in |
cell_no |
A numeric indicating the number of cells to be randomly sampled during downsampling. Should be the same for all targeted cell types. |
isoform_col |
Name of the column in |
An SCE object containing the data after downsampling in
assay(counts = data)
and id_table
as
metadata in the colData()
slot. This format corresponds to the input of
cell_type_DE
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.