View source: R/false_positive.R
| calculate_FalseNegative | R Documentation | 
Calculate False Negative markers for SingleCellExperiment object
calculate_FalseNegative(
  object,
  true_marker_list,
  differential_function = differential_ChromSCape,
  by = "IDcluster",
  logFC.th = log2(1.5),
  qval.th = 0.01,
  ...
)
| object | A SingleCellExperiment object | 
| differential_function | A function that take in entry a SingleCellExperiment object and parameters passed in ... and returns a data.frame containing the significantly differential features for each cluster. | 
| by | A character specifying the name of the metadata column referencing the clusters. | 
| ... | Additional parameters passed to the differential_function. See
 | 
| nThreads | If runFDR==TRUE. An integer specifying of threads to use for the calculation of the FDR. | 
| iterations | An integer specifyung the number of iterations of random subsampling to run. | 
if(requireNamespace("ChromSCape", quietly=TRUE)){
data("scExp", package = "IDclust")
scExp = ChromSCape::find_clusters_louvain_scExp(scExp, resolution = 0.1)
FDR_df = calculate_FalseNegative(scExp, nThreads = 1, iterations = 2)
head(FDR_df)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.