Description Usage Arguments Value Examples
View source: R/plotMultipleProtein.R
Distributions of subcellular localizations of multiple proteins both ar the compartment and neighborhood level are plotted.
1 | plotMultipleProtein(sampleClassification, proteinList)
|
sampleClassification |
data.frame; merged classification, combination of compartment and neighborhood classifications per protein. |
proteinList |
vector; protein gene symbol names. |
multipleProt.df
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | {
df <- loadData(SubCellBarCode::hcc827Ctrl)
c.prots <- calculateCoveredProtein(rownames(df), markerProteins[,1])
r.markers <- markerQualityControl(c.prots, df)
cls <- svmClassification(r.markers, df, markerProteins)
test.A <- cls[[1]]$svm.test.prob.out
test.B <- cls[[2]]$svm.test.prob.out
t.c.df <- computeThresholdCompartment(test.A, test.B)
t.n.df <- computeThresholdNeighborhood(test.A, test.B)
all.A <- cls[[1]]$all.prot.pred
all.B <- cls[[2]]$all.prot.pred
c.cls.df <- applyThresholdCompartment(all.A, all.B, t.c.df)
n.cls.df <- applyThresholdNeighborhood(all.A, all.B, t.n.df)
cls.df <- mergeCls(c.cls.df, n.cls.df)
proteasome26s <- c("PSMA7", "PSMC3", "PSMB1", "PSMA1", "PSMA3","PSMA4",
"PSMA5", "PSMB4", "PSMB6", "PSMB5","PSMC2", "PSMC4", "PSMB3", "PSMB2",
"PSMD4", "PSMA6", "PSMC1", "PSMC5", "PSMC6", "PSMB7", "PSMD13")
multipleProt.df <- plotMultipleProtein(cls.df, "proteasome26s" )
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.