R/VGM_expanded_clones.R
VGM_expanded_clones.Rd
Adds discrete columns containing TRUE / FALSE on whether a given cell is part of a expanded or not-expanded clonotype. Threshold frequency can be set.
VGM_expanded_clones(VGM, add.to.VDJ, add.to.GEX, expansion.threshold)
Output object from the VDJ_GEX_matrix function (VDJ_GEX_matrix.output)
Boolean. Whether to add expanded columns to VDJ matrix. Defaults to TRUE
Boolean. Whether to add expanded columns to GEX matrix. Defaults to TRUE
Integer. Defaults to 1. Cells in clonotypes above this threshold will be marked as expanded = TRUE.
An output object from the VDJ_GEX_matrix function with added columns containing TRUE / FALSE values based on clonotype frequency.
#Add info to whole VGM object
VGM <- VGM_expanded_clones(
VGM = Platypus::small_vgm, add.to.VDJ = TRUE, add.to.GEX = TRUE,
expansion.threshold = 1)
#> Added new columns to VDJ: expanded_clonotype_frequency
#> Added new columns to GEX: expanded_clonotype_frequency