Extract only candidate-tier annotations from an
AnnotationMatrix.
Examples
snpRanges <- GenomicRanges::GRanges(
"22", IRanges::IRanges((1:10) * 100, width = 1))
annotations <- matrix(rbinom(50, 1, 0.3), 10, 5,
dimnames = list(NULL, paste0("annot", 1:5)))
meta <- data.frame(name = paste0("annot", 1:5),
tier = c(rep("baseline", 3), rep("candidate", 2)), type = "binary")
am <- AnnotationMatrix(annotations, snpRanges, annotationMeta = meta)
getCandidates(am)
#> AnnotationMatrix: 10 SNPs x 2 annotations
#> Baseline: 0, Candidate: 2
#> Binary: 2, Continuous: 0
#> Genome build: hg19