FilterAllele: Filtering out the multi-allelic variants
Source:R/GXwasR_main_functions.R
FilterAllele.Rd
This function filters out the multi-allelic SNPs from the input dataset.
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
.
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.