View source: R/MULTIseq.Classification.Suite.R
findThresh | R Documentation |
'findThresh' summarizes the results of the quantile sweep performed during each round of the MULTI-seq sample classification workflow. Output is used to select the barcode-specific threshold used to classify cells during each round.
findThresh(call.list)
call.list |
List containing the singlet/doublet/negative classifications for each quantile threshold tested during a round of the MULTI-seq sample classification workflow. |
Requires the 'reshape2' R package.
Returns a list containing (1) 'res': proportion of cells called as singlets (pSinglet), doublets (pDoublet), and negatives (pNegative) at each quantile tested, and (2) 'extrema': the local maxima for the pSinglet qunatile distribution.
Chris McGinnis
Hadley Wickham (2007). Reshaping Data with the reshape Package. Journal of Statistical Software, 21(12), 1-20.
bar.table_sweep.list <- list()
n <- 0
for (q in seq(0.01, 0.99, by=0.02)) {
print(q)
n <- n + 1
bar.table_sweep.list[[n]] <- classifyCells(data=barTable, q=q)
names(bar.table_sweep.list)[n] <- paste("q=",q,sep="")
}
threshold.results1 <- findThresh(bar.table_sweep.list)
round1.calls <- classifyCells(barTable, q=findQ(threshold.results1$res, threshold.results1$extrema))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.