Description Usage Arguments Value See Also Examples
View source: R/oncoMix_two_component_mixture_models.R
This function allows you to generate the parameters for two 2-component mixture models with equal variances
1 | scatterMixPlot(mmParams, selIndThresh = 1, geneLabels = NULL)
|
mmParams |
The output from the mixModelParams function. Will utilize the deltaMu2 and deltaMu1 rows. |
selIndThresh |
This is the selectivity index threshold to use. All genes with SI values above this threshold will be highlighted in purple. Specify either selIndThresh or geneLabels (not both simultaneously). |
geneLabels |
A character vector of gene names used to label the genes with that name on the scatter plot. Specify either selIndThresh or geneLabels (not both simultaneously). |
Returns a ggplot scatter object that can be plotted
1 2 3 4 5 6 7 8 9 10 11 12 | exprNml <- as.data.frame(matrix(data=rgamma(n=150, shape=2, rate=2),
nrow=10, ncol=15))
colnames(exprNml) <- paste0("patientN", seq_len(ncol(exprNml)))
rownames(exprNml) <- paste0("gene", seq_len(nrow(exprNml)))
exprTum <- as.data.frame(matrix(data=rgamma(n=150, shape=4, rate=3),
nrow=10, ncol=15))
colnames(exprTum) <- paste0("patientT", seq_len(ncol(exprTum)))
rownames(exprTum) <- paste0("gene", seq_len(nrow(exprTum)))
mmParams <- mixModelParams(exprNml, exprTum)
scatterMixPlot(mmParams)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.