classify_doublets {Cleanet}R Documentation

Classify doublets (or multiplets) based on component singlets.

Description

Extends a classification of singlets into a classification of doublets.

Usage

classify_doublets(cleanet_res, singlet_clas, max_multi = 4)

Arguments

cleanet_res

The output of a call to the cleanet function.

singlet_clas

An array giving a classification of the singlets, whose length must match the number of singlet events returned in cleanet_res.

max_multi

The highest cardinality of a multiplet to be considered.

Value

An array with the same length as the number of doublets found in cleanet_res, specifying the composition of each doublet.

Examples

path <- system.file("extdata", "df_mdipa.csv", package="Cleanet")
df_mdipa <- read.csv(path, check.names=FALSE)
cols <- c("CD45", "CD123", "CD19", "CD11c", "CD16",
          "CD56", "CD294", "CD14", "CD3", "CD20",
          "CD66b", "CD38", "HLA-DR", "CD45RA",
          "DNA1", "DNA2")
cleanet_res <- cleanet(df_mdipa, cols, cofactor=5)
singlet_clas <- df_mdipa$label[which(cleanet_res$status!="Doublet")]
doublet_clas <- classify_doublets(cleanet_res, singlet_clas)

[Package Cleanet version 1.0.0 Index]