Skip to contents

Determines whether each variant is a SNP, insertion, deletion, or multi-nucleotide polymorphism (MNP) based on the allele lengths.

Usage

classifyVariantType(ids)

Arguments

ids

A character vector of variant IDs in "chr:pos:ref:alt" format, or a data.frame with A2 (ref) and A1 (alt) columns (e.g., from parseVariantId).

Value

A character vector with one of "SNP", "insertion", "deletion", or "MNP" for each variant.