cqc_match: find the the difference between the reference and target...

View source: R/cqc_match.R

cqc_matchR Documentation

find the the difference between the reference and target group

Description

find the the difference between the reference and target group

Usage

cqc_match(x, ...)

Arguments

x

cqc_check result returned by cqc_check call

...

ref – specifies the reference, which can be either an integer group id or a character vector giving the actual values of the reference

select – the group ids selected for processing

type – the qc type (either "channel", "marker", "gate"), automatically determined by the type of x

max.distance – Maximum distance allowed for a match. This is passed to the max.distance argument in agrep.

partial whether – to do the partial sub string matching before the approximate string matching

Examples

fcs_files <- list.files(system.file("extdata", "GvHD_QC", package = "cytoqc"), full.names = TRUE)
qc_cf_list <- cqc_load_fcs(fcs_files)
channel_groups <- cqc_check(qc_cf_list, type = "channel")
summary(channel_groups)

# Match to a reference group of samples
channel_match <- cqc_match(channel_groups, 3)

# Match to a character vector of target channel names
channel_match <- cqc_match(channel_groups, ref = c("FL1-H", "FL2-A", "FL2-H", "FL3-H", "FL4-H", "FSC-Height", "SSC-Height", "Time"))

RGLab/cytoqc documentation built on Jan. 25, 2023, 11:05 p.m.