determine_substitution_type: Determine DNA substitution type

Description Usage Arguments Value Examples

View source: R/varsites.r

Description

Determines if a substitution was made of transitions or transversions.

Usage

1

Arguments

info

A data.frame or tibble. It should have columns 'major_allele' and 'minor_allele'. These columns must have single DNA characters in upper case.

clean

Indicate if sites should be removed when substitution type could not be correctly inferred.

Value

The same data.frame or tibble as info, with an extra column called 'substitution'.

Examples

1
2
3
4
5
library(HMVAR)

i <- dplyr::tibble(major_allele = c('A', 'C', 'G', 'T', 'a', NA),
                   minor_allele = c('T', 'T', 'A', 'A', 'T', 'G'))
determine_substitution_type(i, clean = FALSE)

surh/HMVAR documentation built on Aug. 18, 2021, 1:21 a.m.