This function checks if labels are available for all samples in features. Additionally validates metadata, if available.
validate.data(siamcat, verbose = 1)
siamcat | an object of class siamcat-class |
---|---|
verbose | control output: |
an object of class siamcat-class with validated data
This function validates the data by checking that labels are available for all samples in the feature matrix. Furthermore, the number of samples per class is checked to ensure a minimum number. If metadata is available, the overlap between labels and metadata is checked as well.
data(siamcat_example) # simple working example siamcat_validated <- validate.data(siamcat_example)#> Error in label$label: $ operator not defined for this S4 class