Skip to contents

Read genomic annotations from files (BED, BigWig, S-LDSC .annot format, or GRanges objects) and create an AnnotationMatrix.

Usage

readAnnotations(paths, snpRanges, annotationMeta = NULL, genome = "hg19", ...)

# S4 method for class 'character'
readAnnotations(paths, snpRanges, annotationMeta = NULL, genome = "hg19", ...)

Arguments

paths

Named character vector of file paths, or a named list of GRanges objects. Names become annotation names.

snpRanges

A GRanges object defining SNP positions.

annotationMeta

A data.frame with annotation metadata (name, tier, type). If NULL, auto-detected from file format.

genome

Character, genome build.

...

Additional arguments.

Value

An AnnotationMatrix object.