TaxCI-package: Tools for checking the integrity of DNA-barcode data

Description Details Author(s) References Examples

Description

The package contains tools for checking the quality of barcoding data prior to submission. It is intended for highlighting for instance contaminations or misidentifications in very large trees in two steps:
1. By reconstructing the Consistency Index (Kluge and Farris 1969) along phylogenetic trees. (Usable with taxonomic data on different levels.)
2. By evaluating individual composition of barcoding-clusters. (On species level.)

Details

Package: TaxCI
Type: Package
Version: 0.5-0
Date: 2018-11-22
License: GPL-3

Main function: tci, BCCluster

Author(s)

Jonas Eberle eberle.jonas@gmail.com

References

Kluge, A.G, Farris, J.S. (1969). Quantitative phyletics and the evolution of anurans. Syst. Zool. 18: 1-32.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
library(TaxCI)

#=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=#
# load some data
#=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=#

data(Carabidae)
head(Carabidae$metadata)


#=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=#
# analyses
#=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=#

# taxonomic consistency analysis
ci <- tci(Carabidae$tree, Carabidae$metadata, level="binomial")

# cluster analysis
cl <- BCCluster(Carabidae$alignment, Carabidae$metadata, sp.col="binomial")

# prepare data for plotting
p1 <- plotParamTCI(Carabidae$tree, Carabidae$metadata, ci)
p2 <- plotParamBCC(Carabidae$tree, Carabidae$metadata, cl, p1)


#=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=#
# multipageplot to pdf
# use oma for page bleed margin [inch]
# and mai for controlling overlap of pages [inch]
#=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=#

npages <- ceiling(length(Carabidae$tree$tip.label) / 130)
pdf("Carabidae.pdf", width=8.3, height=11.7, pointsize=3.5)
par(oma=c(1,1,1,3)+5, mai=c(0,0,0,0)+.03, xaxs="i", yaxs="i", xpd=TRUE)
TaxCIplot(Carabidae$tree, Carabidae$metadata, p1, p2,
       box.placement="auto", npages=npages,
       cex=.7, lwd=.6, edge.width=.6, legend=TRUE,
       info="R-package 'TaxCI'\nExample script 'Carabidae'\npdf output")
dev.off()


#=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=#
# write output table
#=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=#
makeTable(p1, p2, "score", "score_table.tsv")
#

result <- TaxCIsummary(Carabidae$tree, Carabidae$metadata, sp.col="binomial", BCCluster.result=cl, plotParamTCI.result=p1, plotParamBCC.result=p2, analysis="example")

###
# you can do another set of analyses and compare the results with:
# cbind(result, result2)
###

eberlejonas/TaxCI documentation built on July 20, 2021, 9:46 a.m.