Description Usage Arguments Value Examples
View source: R/probabilityThresholdCompartments.R
Thresholds for each compartment are decided to get confident predictions.
1 | computeThresholdCompartment(test.repA, test.repB)
|
test.repA |
data.frame; test predictions, observation and probablity vectors for each protein in replicate A |
test.repB |
data.frame; test predictions, observation and probablity vectors for each protein in replicate B |
threshold.compartment.df
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | {
df <- loadData(SubCellBarCode::hcc827Ctrl)
c.prots <- calculateCoveredProtein(rownames(df), markerProteins[,1])
set.seed(7)
c.prots <- sample(c.prots, 550)
cls <- svmClassification(c.prots, 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)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.