arrange_covars: Prepare covariates for 'scones'

View source: R/utils.R

arrange_covarsR Documentation

Prepare covariates for scones

Description

Prepares de covariates data.frame for the functions used in scones, like single_snp_association or score_folds .

Usage

arrange_covars(gwas, covars)

Arguments

gwas

A SnpMatrix object with the GWAS information.

covars

A data frame with the covariates. It must contain a column 'sample' containing the sample IDs, and an additional columns for each covariate.

Value

The covars data.frame, with the rows in the same order as gwas.


hclimente/martini documentation built on Feb. 26, 2024, 6:23 p.m.