View source: R/Script_PLATE_06_MODALITY_ANALYSIS_1_AssignModality.R
AssignModality | R Documentation |
Assigns modalities to each splicing event for a specified group of cells.
AssignModality( MarvelObject, sample.ids, min.cells = 25, sigma.sq = 0.001, bimodal.adjust = TRUE, bimodal.adjust.fc = 3, bimodal.adjust.diff = 50, seed = 1, tran_ids = NULL )
MarvelObject |
Marvel object. S3 object generated from |
sample.ids |
Vector of character strings. Sample IDs that constitute the cell group. |
min.cells |
Numeric value. The minimum no. of cells expressing the splicing event for the event to be included for modality assignment. |
sigma.sq |
Numeric value. The variance threshold below which the included/excluded modality will be defined as primary sub-modality, and above which it will be defined as dispersed sub-modality. |
bimodal.adjust |
Logical. When set to |
bimodal.adjust.fc |
Numeric value. The ratio between the proportion of cells with >0.75 PSI vs <0.25 PSI (and vice versa) below which the splicing event will be classified as bimodal. Only applicable when |
bimodal.adjust.diff |
Numeric value. The difference between the percentage of cells with >0.75 PSI vs <0.25 PSI (and vice versa) below which the splicing event will be classified as bimodal. Only applicable when |
seed |
Numeric value. Ensure the |
tran_ids |
Character strings. Specific vector of transcript IDs for modality assignment. This will be a subset of all transcripts expressed in sufficient number of cells as defined in |
An object of class S3 containing with new slot MarvelObject$Modality$Results
.
Sean Wen <sean.wenwx@gmail.com>
marvel.demo <- readRDS(system.file("extdata/data", "marvel.demo.rds", package="MARVEL")) df.pheno <- marvel.demo$SplicePheno sample.ids <- df.pheno[which(df.pheno$cell.type=="iPSC"), "sample.id"] # Assign modality marvel.demo <- AssignModality(MarvelObject=marvel.demo, sample.ids=sample.ids, min.cells=5 ) # Check output head(marvel.demo$Modality$Results)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.