matdist {Rqc} | R Documentation

## 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.

### Note

This function is used internally to compute data for rqcFileHeatmap function.

### Author(s)

Welliton Souza

### See Also

`rqcFileHeatmap`

### Examples

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

[Package Rqc version 1.20.0 Index]