preprocess_genedata {ZIM4rv} | R Documentation |
preprocess_genedata
Description
Preprocess genotype files in PLINK format
This function converts PLINK format files into data frames containing genotypes information in proper format for the model fitting and testing.
Usage
preprocess_genedata(fam_file, dosage_file, region_file, gene_name)
Arguments
fam_file |
.fam file in PLINK format |
dosage_file |
a dosage file includes dosage information of each variant for all individuals |
region_file |
a file listing genetic regions where each row contains chromosome, basepairs and the name of genetic region respectively |
gene_name |
a character string of the name of a gene, e.g."CEPT". The name is case-sensitive. |
Value
a data frame containing genotypes for all individuals in the required format for model fitting and testing
Examples
data(Ex2_fam)
data(Ex2_dosage)
data(Ex2_region)
preprocess_genedata(Ex2_fam,Ex2_dosage,Ex2_region,"r2")
[Package ZIM4rv version 0.1.1 Index]