Learn R Programming

SNPfiltR (version 1.0.1)

filter_biallelic: 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)

Value

a vcfR object with SNPs containing more than two alleles removed

Arguments

vcfR

a vcfR object

Examples

Run this code
filter_biallelic(vcfR = SNPfiltR::vcfR.example)

Run the code above in your browser using DataLab