R/bind_formal_tags.R
bind_formal_tags.Rd
add mapping from informal to formal cell type tags to a SummarizedExperiment colData
bind_formal_tags(se, informal, tagmap, force = FALSE)
SummarizedExperiment instance
character(1) name of colData element with uncontrolled vocabulary
data.frame with columns 'informal' and 'formal'
logical(1), defaults to FALSE; if TRUE, allows clobbering existing colData variable named "formal"
SummarizedExperiment instance with a new colData column 'label.ont' giving the formal tags associated with each sample
This function will fail if the value of `informal` is not among the colData variable names, or if "formal" is among the colData variable names.