This function loads a phenotype file, a covariates file and a plink fam file it's able to match the phenotype ID with genotype ID and generate input dataframe for L-BRAT/RGMMAT test.

lbrat_read_phe(y.file, cov.file, plink.file)

Arguments

y.file

Path to the input file

cov.file

Path to the covariates file

plink.file

Path to the plink file frefix

Value

A formatted dataframe used as L-BRAT/RGMMAT test input