Working with PolyGeniusData

Constructing robust data objects

Build PolyGeniusData with aligned model, genotype, and sample identifiers as the core analysis container.

Phenotypes and covariates

Attach outcome/covariate tables in a way that stays aligned with obs_names.

Score and matrix layers

Use scores, obsm, obsp, and related slots to organize derived artifacts predictably.

Readiness checks before heavy compute

Run minimal checks for IDs, builds, and required layers before scoring or regression.