Description Usage Arguments Details Value Examples
View source: R/quantifyViaProportion.R
The function plotProportionOfMitochondrialProteins
creates a
plot of the proportion of mitochondrial proteins
(obtained via calculateProportionOfMitochondrialProtein
).
1 | plotProportionOfMitochondrialProteins(proportion)
|
proportion |
numeric vector |
names(proportion)
are taken as x-axis labels.
If there are no names for proportion
(names(proportion)
is NULL), names from 1:length(proportion)
will be assigned to proportion
.
gg
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | set.seed(1)
## fake measured protein intensities and create matrix that stores
## intensities
prot_vals <- runif(1000, min = 10000, max = 1000000)
prot <- matrix(prot_vals, ncol = 10, nrow = 100)
## fake some protein names and sample names
rownames(prot) <- paste("prot", seq_len(nrow(prot)), sep = "_")
colnames(prot) <- paste("sample", seq_len(ncol(prot)), sep = "_")
## randomly assign 10 mitochondrial proteins to the matrix
inds_mito <- sample(seq_len(nrow(prot)), 10)
prot_mito <- c("MDH2", "OMA1", "NLN", "CS", "OPA1", "CSPG5", "SPATA9", "POLG", "RAB38", "NSD3")
rownames(prot)[inds_mito] <- prot_mito
prop_mito <- calculateProportionOfMitochondrialProteins(values = prot, id = "Symbol")
plotProportionOfMitochondrialProteins(proportion = prop_mito)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.