Reading .raw file that was previously exported from PLINK - see details. Additional information about SNP mapping is read from .map file.
screen_snps(
rawFile,
mapFile = "",
phenotype,
pValMax = 0.05,
chunkSize = 100,
verbose = TRUE
)
object of class screeningResult
character, name of .raw file
character, name of .map file
numeric vector or an object of class phenotypeData
numeric, p-value threshold value used for screening
integer, number of snps that will be processed together. The bigger chunkSize is, the faster function works but computer might run out of RAM
if TRUE (default) information about progress is printed
Exporting data from PLINK
To import data to R, it needs to be exported from
PLINK using the option "--recodeAD"
The PLINK command should therefore look like
plink --file input --recodeAD --out output
.
For more information, please refer to:
https://zzz.bwh.harvard.edu/plink/dataman.shtml