This function filters out from the variants of the input vcf file those corresponding to the type specified in the variantType argument: synonymous, nonsynonymous, frameshift, nonsense, not translated or a combination of them.

filterVariantType(vcf, assembly, variantType)

Arguments

vcf

a CollapsedVCF or data.frame object containing variants

assembly

human genome assembly: "hg19" or "hg38"

variantType

type of variant to remove. Possible values are: synonymous, nonsynonymous, frameshift, nonsense, not translated or a combination of them.

Value

Returns a CollapsedVCF or data.frame object containing those variants which passed the filter.

Author

Laura Fancello