Checks if shinycell config data.table contains any errors. It is useful and reccomended to run this function if users have motified the shinycell config manually. Errors can include (i) levels in scConf does not match that in the Seurat/SingleCellExperiment object, (ii) number of levels does not match number of colours and (iii) specified colours are invalid colours.

check_config(scConf, obj)

Arguments

scConf

shinycell config data.table

obj

input single-cell object for Seurat (v3+) / SingleCellExperiment data or input file path for h5ad / loom files

Value

any potential error messages

Author

John F. Ouyang

Examples

if (FALSE) {
check_config(scConf, seu)
}