# NOT RUN {
fake1.pr2 <- data.frame(ASV = c("AAAA", "ATCG", "GCGC", "TATA", "TCGA"),
kingdom = c("Eukaryota", "Eukaryota", "Eukaryota", "Eukaryota",
"Eukaryota"),
supergroup = c(NA, "Stramenopiles", "Rhizaria", "Stramenopiles",
"Alveolata"),
division = c(NA, "Ochrophyta", "Radiolaria", "Opalozoa",
"Dinoflagellata"),
class = c(NA, "Bacillariophyta", "Polycystinea", "MAST-12",
"Syndiniales"),
order = c(NA, "Bacillariophyta_X", "Collodaria", "MAST-12A", NA),
family = c(NA, "Polar-centric-Mediophyceae", "Collophidiidae", NA,
NA),
genus = c(NA, NA, "Collophidium", NA, NA),
species = as.character(c(NA, NA, NA, NA, NA)),
stringsAsFactors = FALSE)
fake2.pr2 <- data.frame(ASV = c("AAAA", "ATCG", "GCGC", "TATA", "TCGA"),
kingdom = c("Eukaryota", "Eukaryota", "Eukaryota", "Eukaryota",
"Eukaryota"),
supergroup = c(NA, "Stramenopiles", "Rhizaria", "Stramenopiles",
"Alveolata"),
division = c(NA, "Opalozoa", "Radiolaria", "Opalozoa",
"Dinoflagellata"),
class = c(NA, NA, "Polycystinea", NA, "Dinophycese"),
order = c(NA, NA, "Collodaria", NA, NA),
family = c(NA, NA, "Collophidiidae", NA, NA),
genus = c(NA, NA, "Collophidium", NA, NA),
species = as.character(c(NA, NA, NA, NA, NA)),
stringsAsFactors = FALSE)
head(fake1.pr2)
head(fake2.pr2)
xx <- list(fake1.pr2, fake2.pr2)
names(xx) <- c("fake1", "fake2")
xx
eTax <- assign.ensembleTax(xx,
tablenames = names(xx),
ranknames = c("kingdom", "supergroup", "division","class","order",
"family","genus","species"),
tiebreakz = NULL,
count.na=TRUE,
assign.threshold = 0.5,
weights=rep(1,length(xx)))
head(eTax)
eTax <- assign.ensembleTax(xx,
tablenames = names(xx),
ranknames = c("kingdom", "supergroup", "division",
"class","order","family","genus","species"),
tiebreakz = NULL,
count.na=FALSE,
assign.threshold = 0.5,
weights=c(2,1))
head(eTax)
# }
Run the code above in your browser using DataLab