You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I am having issues when using the calc_rank_dist_ave function. I am testing a list of universal primers, but this example tests just one from the list
First, I ran search_primer_pair: primertest <-search_primer_pair(name = FishCB, as.character(TCCTTTTGAGGCGCTACAGT), as.character(GGAATGCGAAGAATCGTGTT), num_aligns = 1000, num_permutations = 200)
Checked on sequence lengths, found no outliers and defined my primertree object: seq_lengths(PT.FishCB) # No obvious outliers PT.F.FishCB <- FishCB
Hello! I am having issues when using the calc_rank_dist_ave function. I am testing a list of universal primers, but this example tests just one from the list
First, I ran search_primer_pair:
primertest <-search_primer_pair(name = FishCB, as.character(TCCTTTTGAGGCGCTACAGT), as.character(GGAATGCGAAGAATCGTGTT), num_aligns = 1000, num_permutations = 200)
Checked on sequence lengths, found no outliers and defined my primertree object:
seq_lengths(PT.FishCB) # No obvious outliers PT.F.FishCB <- FishCB
tmp1 <- PT.F.FishCB TAXID.All <- length(unique(as.data.frame(get(tmp1)$taxonomy)$taxId)) TAXID.Act <- length(unique(subset(as.data.frame(get(tmp1)$taxonomy), subset = class == "Actinopteri")$taxId)) dat.I$PT.Specificity[i] <- round((TAXID.Act/TAXID.All)*100, digits = 2) dat.I$PT.PWDistance[i] <- as.numeric(calc_rank_dist_ave(get(tmp1), ranks = c("genus"))) dat.I$PT.Length[i] <- as.integer(mean(get(tmp1)$BLAST_result$product_length)) dat.I$PT.Resolution[i] <- as.numeric(dat.I$PT.PWDistance[i])/as.numeric(dat.I$PT.Length[i]) dat.I$PT.Order[i] <- length(unique(subset(as.data.frame(get(tmp1)$taxonomy), subset = class == "Actinopteri")$order)) dat.I$PT.Family[i] <- length(unique(subset(as.data.frame(get(tmp1)$taxonomy), subset = class == "Actinopteri")$family)) dat.I$PT.Genus[i] <- length(unique(subset(as.data.frame(get(tmp1)$taxonomy), subset = class == "Actinopteri")$genus))}
When I get to using the calc_rank_dist_ave function I get the following error:
checking the PT.F.FishCB object:
str(PT.FishCB)
Any ideas as to what I am doing wrong? any help is greatly appreciated
Thank you
The text was updated successfully, but these errors were encountered: