Annotate variant annotation with base-change and type
Source:R/variant_annotation.R
Annotate_base_change.RdAdds two new columns to a variant annotation table:
changes: the nucleotide substitution (e.g. "C_T").types: whether the substitution is a transition or transversion.
Examples
df <- data.frame(Variants = c("100_C_T", "200_A_C"))
Annotate_base_change(df)
#> Variants changes types
#> 1 100_C_T C_T transition
#> 2 200_A_C A_C transversion