distIUPACmatrix: distIUPACmatrix

Description Usage Arguments Author(s) See Also Examples

View source: R/RcppExports.R

Description

This function calculates scaled pairwise IUPAC distances on Biostrings DNAStringSet and BStringSet objects using a specific scoreMatrix in a sequential fashion.

Usage

1

Arguments

dnavector

as.character(DNAStringSet)

scoreMatrix

scoreMatrix

Author(s)

Kristian K Ullrich

See Also

scoreMatrix, rcpp_distIUPACmatrix, rcpp_distIUPACmatrix_ab dist.dna

Examples

1
2
3
4
5
6
7
8
9
##load sequence data
data("MySequences", package="distIUPAC")
##load scoring matrix
MyScoreMatrix<-scoreMatrix()
distIUPACmatrix(as.character(MySequences[1:10]), MyScoreMatrix)
##change scoring matrix
MyScoreMatrix["A", "R"]<-10.0
##calculate IUPAC distance with altered scoring
distIUPACmatrix(as.character(MySequences[1:10]), MyScoreMatrix)

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