Learn R Programming

BarcodingR (version 1.0-3)

barcoding.gap: Barcoding Gap Calculation

Description

Calculation of DNA barcoding gap. Besides K2P distance, raw distance and euclidean could also be used for calculation DNA barcoding gap.

Usage

barcoding.gap(ref, dist = dist)

Arguments

ref

object of class "DNAbin" used as a reference dataset, which contains taxon information.

dist

a character string which takes one of ("raw","K80","euclidean").

Value

a list indicates the summary statistics of interspecific and intraspecific genetic distance, such as k2P distance.

References

Meyer, Christopher P., and Gustav Paulay. (2005). ''DNA barcoding: error rates based on comprehensive sampling.''.PLoS biology 3.12: e422.

F.Jiang, Q. Jin, L. Liang, A.B. Zhang,and Z.H. Li.(2014). Existence of Species Complex Largely Reduced Barcoding Success for Invasive Species of Tephritidae: A Case Study in Bactrocera spp. Mol Ecol Resour. 14(6):1114-1128 DOI: 10.1111/1755-0998.12259.

Examples

Run this code
# NOT RUN {
data(TibetanMoth)
TibetanMoth<-as.DNAbin(as.character(TibetanMoth[1:20,]))
b.gap<-barcoding.gap(ref=TibetanMoth,dist="K80")
b.gap
# }

Run the code above in your browser using DataLab