View source: R/pseudobulk_functions.R
iteratePseudoBulk | R Documentation |
This function iterates 'pseudobulk' DE analysis using DESeq2 pipeline \ on scRNAseq data for genes of interest. It is essentially bootstrapping for scRNAseq pseudobulk analysis.
iteratePseudoBulk( sce, cellIDs = NULL, obs, contrasts, replicates = NULL, alpha = 0.05, genes = NULL, iterations = 10 )
sce: |
SCE object, takes raw counts |
cellIDs: |
IDs of cells of interest belonging to cluster(s) |
obs: |
obs/metadata variable to group by - must column name in be in sce colData |
replicates: |
number of artificial replicates to split each condition into, recommend at least 500 cells per replicate after splitting |
contrast: |
DESeq contrast for results - take a vector of 2, eg. c('treatment','control') |
alpha: |
significance level |
genes: |
vector of genes of interest, if NULL, iterate and test for all |
iterations: |
number of times to permute random sampling and results function |
A list of LogFoldChange, adjusted P value, and p value statistics for genes of interest
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.