Read the QC-control samples from an annotation file
Source:R/quality-score.R
qc_samples_from_annotation.RdReturns the Sample values that the annotation flags as experiment QC
controls in qc_column (TRUE, T, 1, QC, qc, yes or Yes). This
is how 01_mhc_overview turns its QCColumn param into
the qc_samples of score_sample_quality(). A missing file, an unreadable
annotation, an empty qc_column or a column the annotation does not have all
give an empty vector, because QC tagging is optional.
Arguments
- annotation_file
Path to the annotation csv (read with
read_annot()).- qc_column
Name of the flag column (default
"QC").