Loads annotation features from a pre-annotated case variants CSV file.
load_case_annotations(csv_path, features = .default_PI_features())Numeric matrix with dimensions (N_variants x M_features). Row names are set to VarInfo values. May contain NA values.
The CSV file should have been generated by annotate_favor() or
similar FAVOR annotation tools. Expected columns include VarInfo (variant
identifier in CHR-POS-REF-ALT format) and the annotation features.
This function preserves NA values in the output. Use impute_na_median()
before passing to model_PI() if needed.
if (FALSE) { # \dontrun{
case_annot <- load_case_annotations("cases_annotated.csv")
dim(case_annot) # N_cases x 11
} # }