rcpp_distIUPACmatrix_ab: rcpp_distIUPACmatrix_ab

Description Usage Arguments Author(s) See Also Examples

View source: R/RcppExports.R

Description

This function calculates pairwise IUPAC distance between two character objects (a, b)of length nsites using a specific scoreMatrix and returns the number of used sites.

Usage

1

Arguments

a

as.character(DNAString)

b

as.character(DNAString)

scoreMatrix

scoreMatrix

nsites

number of sites

Author(s)

Kristian K Ullrich

See Also

scoreMatrix, distIUPACmatrix, rcpp_distIUPACmatrix, dist.dna

Examples

1
2
3
4
5
6
##load sequence data
data("MySequences", package="distIUPAC")
##load scoring matrix
MyScoreMatrix<-scoreMatrix()
rcpp_distIUPACmatrix_ab(as.character(MySequences[1]), as.character(MySequences[2]),
scoreMatrix=MyScoreMatrix, nsites=nchar(as.character(MySequences[1]))[[1]])

kullrich/distIUPAC documentation built on Jan. 9, 2020, 2:50 p.m.