RunCojoRule

COJO model rule

Description

RunCojoRule resolves one polygenius.model output for COJO.

Details

Reactive rule for model outputs generated by algorithm cojo.

Execution logic:

  • requests GWAS input at required pval.max;

  • currently returns a stub model with unchanged GWAS variants.

Super class

PolyGenius::Rule -> RunCojoRule

Methods

Public methods

Inherited methods

Method new()

Create the COJO rule.

Usage
RunCojoRule$new()

Method matches()

Check whether this rule can produce the requested output.

Usage
RunCojoRule$matches(output.spec)
Arguments
output.spec

Output resource specification.

Returns

TRUE for cojo model outputs.


Method inputs()

Build input specifications for this output.

Usage
RunCojoRule$inputs(output.spec)
Arguments
output.spec

Output resource specification.

Returns

Named list with required GWAS input.


Method requirements()

Declare resource requirements for this rule.

Usage
RunCojoRule$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 COJO model construction (stub).

Usage
RunCojoRule$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
RunCojoRule$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.