Skip to contents

This function filters out the multi-allelic SNPs from the input dataset.

Usage

FilterAllele(DataDir, ResultDir, finput, foutput)

Arguments

DataDir

A character string for the file path of the input PLINK binary files.

ResultDir

A 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. If multi-allelic variants are present, this file will be produced after filtering out these variants.

Value

NULL. After multi-allelic variant filtering, the filtered PLINK files with only biallelic SNPs will be saved in ResultDir.

Author

Banabithi Bose

Examples

DataDir <- GXwasR:::GXwasR_data()
ResultDir <- tempdir()
finput <- "GXwasR_example"
foutput <- "Filter_Test"
x <- FilterAllele(DataDir, ResultDir, finput, foutput)
#>  There is no multi-allelic SNP present in the input dataset.