ncd: Compute Normalized Compression Distances

Description Usage Arguments Details Value See Also Examples

View source: R/ncdnj.R

Description

Computes normalized compression distances.

Usage

1
ncd(seq1, seq2)

Arguments

seq1

character string indicating the path to the first fasta file to be analyzed.

seq2

character string indicating the path to the second fasta file to be analyzed.

Details

The two fasta files must be in the working directory. This function use zpaq to compress files. Thus, the zpaq software must be installed on your system and in the search path for executables if you wish to use this function. NCD = (Z(xy) - min(Z(x), Z(y))) / max(Z(x), Z(y)) Where Z(x), Z(y) and Z(xy) are the lengths of the compressed versions of seq1, seq2 and the concatenated sequences 1 and 2, respectively.

Value

A non-negative real value reflecting the dissimilarity between seq1 and seq2.

See Also

ncdnj()

Examples

1
try(ncd(seq1 = "./A.fasta", seq2 = "./B.fasta"))

EnvNJ documentation built on Sept. 27, 2021, 5:07 p.m.

Related to ncd in EnvNJ...