View source: R/Script_PLATE_08_DE_1_0_CompareValues.R
CompareValues | R Documentation |
Performs differential splicing and gene expression analysis between 2 groups of cells. This is a wrapper function for CompareValues.PSI
and CompareValues.Exp
functions.
CompareValues( MarvelObject, cell.group.g1 = NULL, cell.group.g2 = NULL, downsample = FALSE, seed = 1, min.cells = 25, pct.cells = NULL, method = NULL, nboots = 1000, n.permutations = 1000, method.adjust = "fdr", level, event.type = NULL, show.progress = TRUE, annotate.outliers = TRUE, n.cells.outliers = 10, assign.modality = TRUE, custom.gene_ids = NULL, psi.method = NULL, psi.pval = NULL, psi.delta = NULL, method.de.gene = NULL, method.adjust.de.gene = NULL, mast.method = "bayesglm", mast.ebayes = TRUE )
MarvelObject |
Marvel object. S3 object generated from |
cell.group.g1 |
Vector of character strings. Cell IDs corresponding to Group 1 (reference group). |
cell.group.g2 |
Vector of character strings. Cell IDs corresponding to Group 2. |
downsample |
Logical value. If set to |
seed |
Numeric value. The seed number for the random number generator to ensure reproducibility during during down-sampling of cells when |
min.cells |
Numeric value. The minimum no. of cells expressing the splicing event or genes for the event or genes to be included for differential splicing analysis. |
pct.cells |
Numeric value. The minimum percentage of cells expressing the splicing event or genes for the event or genes to be included for differential splicing analysis. If |
method |
Character string. Statistical test to compare the 2 groups of cells. |
nboots |
Numeric value.Only applicable when |
n.permutations |
Numeric value. Only applicable when |
method.adjust |
Character string. Adjust p-values for multiple testing. Options available as per |
level |
Character string. Indicate |
event.type |
Character string. Only applicable when |
show.progress |
Logical value. If set to |
annotate.outliers |
Numeric value. Only applicable when |
n.cells.outliers |
Numeric value. Only applicable when |
assign.modality |
Logical value. Only applicable when |
custom.gene_ids |
Character string. Only applicable when |
psi.method |
Vector of character string(s). Only applicable when |
psi.pval |
Vector of numeric value(s). Only applicable when |
psi.delta |
Numeric value. Only applicable when |
method.de.gene |
Character string. Only applicable when |
method.adjust.de.gene |
Character string. Only applicable when |
mast.method |
Character string. Only applicable when |
mast.ebayes |
Logical value. Only applicable when |
An object of class S3 containing with new slot MarvelObject$DE$PSI$Table[["method"]]
or MarvelObject$DE$Exp$Table
when level
option specified as "splicing"
or "gene"
, respectively.
marvel.demo <- readRDS(system.file("extdata/data", "marvel.demo.rds", package="MARVEL")) # Define cell groups for analysis df.pheno <- marvel.demo$SplicePheno cell.group.g1 <- df.pheno[which(df.pheno$cell.type=="iPSC"), "sample.id"] cell.group.g2 <- df.pheno[which(df.pheno$cell.type=="Endoderm"), "sample.id"] # DE marvel.demo <- CompareValues(MarvelObject=marvel.demo, cell.group.g1=cell.group.g1, cell.group.g2=cell.group.g2, min.cells=5, method="t.test", method.adjust="fdr", level="splicing", event.type=c("SE", "MXE", "RI", "A5SS", "A3SS", "AFE", "ALE"), show.progress=FALSE ) # Check output head(marvel.demo$DE$PSI$Table[["ad"]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.