Learn R Programming

VLF (version 1.1)

VLF.nucleotides: Nucleotide VLF Convert

Description

Converts a matrix of nucleotide frequencies for each specimen into a matrix of nucleotides for each specimen.

Usage

VLF.nucleotides(convert.matrix, seq.matrix, seqlength)

Value

A matrix containing only ntVLFs in each position of the sequences, and NAs in all other positions.

Arguments

convert.matrix

A matrix consisting of only very low frequency cariant frequencies for each specimen, and NAs in all other positions of the sequence.

seq.matrix

A matrix of DNA sequences.

seqlength

The length of the sequences.

Details

The argument convert.matrix can be calculated using the function VLF.convert.matrix.

Examples

Run this code
if (FALSE) data(birds)
species.names <- birds[,2]
specimen.Number <- nrow(birds)
rownames(birds) <- species.names
Nuc.count <- count.function(birds, specimen.Number, 648)
frequency.matrix <- ffrequency.matrix.function(Nuc.count, 648)
birdSpec.freq <- specimen.frequencies(frequency.matrix, birds, specimen.Number, species.names, 648)
Bird_specimen_VLFcount <- VLF.count.spec(birdSpec.freq, 0.001, 648)
bird_VLFconvert <- VLF.convert.matrix(birds, birdSpec.freq, 0.001, 648)
bird_VLFnuc <- VLF.nucleotides(bird_VLFconvert, birds, 648)

Run the code above in your browser using DataLab