filter_biallelic: Remove SNPs with more than two alleles

View source: R/filter_biallelic.R

filter_biallelicR Documentation

Remove SNPs with more than two alleles

Description

This function simply removes any SNPs from the vcf file which contains more than two alleles. Many downstream applications require SNPs to be biallelic, so this filter is generally a good idea during processing.

Usage

filter_biallelic(vcfR)

Arguments

vcfR

a vcfR object

Value

a vcfR object with SNPs containing more than two alleles removed

Examples

filter_biallelic(vcfR = SNPfiltR::vcfR.example)

SNPfiltR documentation built on March 31, 2023, 8:57 p.m.