Learn R Programming

Rqc (version 1.6.2)

matdist: Distance matrix of the similarity between the DNA sequences.

Description

This function receives a vector of strings representing codified DNA sequences and returns a integer matrix representing the similarities between all sequences from input vectors.

Usage

matdist(rrdnas)

Arguments

rrdnas
Vector of codified DNA sequences (character vector).

Value

Matrix $n x n$, where $n$ is the length of the largest original DNA sequence.

See Also

rqcFileHeatmap

Examples

Run this code
dna1 <- toRRDNA("atcgn")
dna2 <- toRRDNA("atcga")
matdist(c(dna1, dna2))

Run the code above in your browser using DataLab