Description Usage Arguments Value Examples
View source: R/applyThresholdToNeighborhood.R
Apply thresholds for all predictions at the neighborhood level to increase the true positive rate and remove poor classification.
1 | applyThresholdNeighborhood(all.repA, all.repB, threshold.df)
|
all.repA |
data.frame; all predictions and probablity vectors for each protein in replicate A |
all.repB |
data.frame; all predictions and probablity vectors for each protein in replicate B |
threshold.df |
data.frame; collection od precision and recall values for each neighborhood |
n.cls.df
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | {
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.n.df <- computeThresholdNeighborhood(test.A, test.B)
all.A <- cls[[1]]$all.prot.pred
all.B <- cls[[2]]$all.prot.pred
n.cls.df <- applyThresholdNeighborhood(all.A, all.B, t.n.df)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.