computeThresholdCompartment {SubCellBarCode} | R Documentation

## Probability threshold for compartment classification

### Description

Thresholds for each compartment are decided to get confident predictions.

### Usage

    computeThresholdCompartment(test.repA, test.repB)

### Arguments

`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

### Value

threshold.compartment.df

### Examples

    {

    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)
    }

[Package SubCellBarCode version 1.10.0 Index]