Load a GwasSumStats collection from a manifest
Source:R/manifestLoaders.R
loadGwasSumStatsFromManifest.RdBuild a GwasSumStats from a manifest with one row
per study. No QC is run (the result carries qcInfo = list()).
Usage
loadGwasSumStatsFromManifest(
manifest,
genome = NULL,
ldSketch = NULL,
region = NULL,
minLdOverlapWarn = 0.5,
columnMapping = NULL,
sampleSelect = NULL,
formatMapping = NULL
)Arguments
- manifest
A data.frame or path. Columns (snake_case aliases accepted):
study(required, unique),sumStatsPath(required),columnMapping(optional),nCase/nControl(optional),varY(optional), and the single-valuedgenome/ldSketchPath.- genome
Genome build; reconciled with a
genomecolumn.- ldSketch
A
GenotypeHandleor a spec (path/prefix/genoMeta); reconciled with anldSketchPathcolumn.- region
Optional
chr:start-endstring, GRanges, or one-row data.frame restricting the variants read (honoured only for tabix-indexed text and bgzipped+tabixed VCF; ignored with a warning otherwise).- minLdOverlapWarn
Warn when the fraction of sumstats variants present in the LD sketch falls below this (default 0.5).
- columnMapping
Optional default column mapping (a named list/vector, or a path to a YAML file of
standardName: sourceNameentries) applied when a row has nocolumnMapping.- sampleSelect
Optional GWAS-VCF FORMAT sample (study) column to read.
- formatMapping
Optional GWAS-VCF FORMAT tag mapping (canonical stat -> FORMAT field), overriding ES/SE/LP/SS/EAF defaults.