Skip to contents

This function prepares separate male and female PLINK binary files from combined PLINK files.

Usage

GetMFPlink(
  DataDir,
  ResultDir = tempdir(),
  finput,
  foutput,
  sex,
  xplink = FALSE,
  autoplink = FALSE
)

Arguments

DataDir

Character string for the file path of the input PLINK binary files.

ResultDir

Character string for the file path where all output files will be stored. The default is tempdir().

finput

Character string, specifying the prefix of the input PLINK binary files.

foutput

Character string, specifying the prefix of the output PLINK binary files.

sex

Boolean value, 'males' or 'females', specifying output PLINK binary files with male or female samples.

Boolean value, TRUE or FALSE, specifying output PLINK binary files with only X chromosome or not. Default is FALSE.

Boolean value, TRUE or FALSE, specifying output PLINK binary files with only autosome or not. Default is FALSE.

Value

None

Author

Banabithi Bose

Examples

DataDir <- GXwasR:::GXwasR_data()
ResultDir <- tempdir()
finput <- "GXwasR_example"
foutput <- "Test_output"
sex <- "females"
x <- GetMFPlink(
    DataDir = DataDir, ResultDir = ResultDir,
    finput = finput, foutput = foutput, sex = sex,
    xplink = FALSE, autoplink = FALSE
)
#>  Output PLINK files, prefixed as Test_output, are in /var/folders/d6/gtwl3_017sj4pp14fbfcbqjh0000gp/T//RtmpO7c0S8