vlfFun: Nucleotide VLF Assessment Function

View source: R/vlfFun.R

vlfFunR Documentation

Nucleotide VLF Assessment Function

Description

Runs the full nucleotide VLF analysis for the user and outputs the results.

Usage

vlfFun(x, p = 0.001, seqlength = 648, own = NULL)

Arguments

x

A matrix of nucleotide sequences with the first column containing the unique specimen identifier, the second column containing the species name and the remaining columns containing the nucleotide sequence.

p

A VLF designation frequency cut-off to be used within the analysis. By default p = 0.001.

seqlength

The length of the nucleotide sequence. By default seqlength = 648.

own

If the user wants to compare their own sequences separate from reference sequences, then argument can be used. Similar to x, this argument is a matrix of nucleotide sequences with the first column containing the unique specimen identifier, the second column contains the species name and the remaining columns containing the nucleotide sequence. By default own = NULL.)

Value

modal

A vector containing the nucleotide sequence that occurs most often in the dataset.

con100

The number of nucleotide positions that are 100% conserved in the sequence, separated by codon position.

conp

The number of nucleotide positions that are (1-p)% conserved in the sequence, separated by codon position.

combine

The number of nucleotide positions that are (1-p)% conserved when combining the first and second modal sequences.

specimen

A vector containing the number of VLFs for each specimen in the dataset.

position

A vector containing the number of VLFs for each position in the sequences.

sas

A matrix containing vectors of single and shared ntVLF counts for each position in the sequences.

VLFmatrix

A matrix containing only those specimen that have VLFs as well as the nucleotides at the positions that contain VLFs and NAs in all other positions of the sequence.

ownSpecCount

A vector containing the number of VLFs for each specimen in the users own specified dataset. Only appears if own is not NULL.

ownPosCount

A vector containing the number of VLFs for each position in the sequences of the users own specified dataset. Only appears if own is not NULL.

ownVLFMatrix

A matrix containing only those nucleotides at the positions that contain VLFs and NAs in all other positions of the sequence. Only appears if own is not NULL.

ownVLFreduced

ownVLFMatrix

A matrix containing only those specimen that have VLFs as well as the nucleotides at the positions that contain VLFs and NAs in all other positions of the sequence. Only appears if own is not NULL.

Author(s)

Taryn B. T. Athey and Paul D. McNicholas

Examples

## Not run: data(birds)
bird_vlfAnalysis <- vlfFun(birds)
## End(Not run)

VLF documentation built on Aug. 18, 2022, 5:06 p.m.