LoadLocalGWASRule
Local GWAS load rule
Description
LoadLocalGWASRule resolves a local GWAS request into one gwas.sumstats resource.
Details
Reactive rule that materializes gwas.sumstats resources from local GWAS data provided in request metadata.
Execution logic:
-
reads
gwas,metadata, andpval.maxfrom request metadata; -
evaluates
gwaswhen provided as a function; -
validates presence and wraps data in
PolyGeniusModel; -
returns normalized metadata for cache/index tracking.
Super class
PolyGenius::Rule -> LoadLocalGWASRule
Methods
Public methods
Inherited methods
Method new()
Create the local GWAS load rule.
Usage
LoadLocalGWASRule$new()
Method matches()
Check whether this rule can produce the requested output.
Usage
LoadLocalGWASRule$matches(output.spec)
Arguments
-
output.spec -
Output resource specification.
Returns
TRUE for local gwas.sumstats outputs.
Method inputs()
Build rule input specifications.
Usage
LoadLocalGWASRule$inputs(output.spec)
Arguments
-
output.spec -
Output resource specification.
Returns
Named list with one gwas.request input.
Method requirements()
Declare resource requirements for this rule.
Usage
LoadLocalGWASRule$requirements(output.spec, inputs)
Arguments
-
output.spec -
Output resource specification.
-
inputs -
Bound input values/specifications.
Returns
Named list with cores and memory.
Method run()
Execute local GWAS materialization for one request.
Usage
LoadLocalGWASRule$run(output.spec, inputs, logger)
Arguments
-
output.spec -
Output resource specification.
-
inputs -
Named list of bound input values.
-
logger -
Rule logger.
Returns
Rule result list with data, meta, and logs.
Method clone()
The objects of this class are cloneable with this method.
Usage
LoadLocalGWASRule$clone(deep = FALSE)
Arguments
-
deep -
Whether to make a deep clone.