convert.seq.to.num: Convert nucleotide sequence to numbers

Description Usage Arguments Value Note

View source: R/MADGiC.R

Description

This function converts nucleotide sequence to numbers for the efficiency of calculation

Usage

1

Arguments

x

a character vector containing any number of "A", "T", "G", and "C".

Value

a vector of integers where 1 corresponds to "A", 2 corresponds to "T", 3 corresponds to "G", and 4 corresponds to "C". A 0 is put in place of characters that are missing or not one of the four nucleotides.

Note

This internal function is not intended to be called by the user.


kdkorthauer/MADGiC documentation built on June 13, 2020, 1:35 p.m.