A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/grunwaldlab/metacoder/issues/227 below:

Error using use_total in zero_low_counts command · Issue #227 · grunwaldlab/metacoder · GitHub

Hi @zachary-foster !

I am encountering an error when using use_total in zero_low_counts. I get this error using my data as well the hmp data

here is the code (from your tutorial)

print(hmp_otus)
print(hmp_samples)
obj2 <- parse_tax_data(hmp_otus, class_cols = "lineage", class_sep = ";", class_key = c(tax_rank = "info", tax_name = "taxon_name"), class_regex = "^(.+)__(.+)$")
print(obj2)
obj2$data$tax_data <- zero_low_counts(obj2, "tax_data", use_total = TRUE, min_count = 5)

and I get the following error:

Error in if (all(!is_greater_than_max)) { : missing value where TRUE/FALSE needed

The error persist no matter what value I use for min_counts when use_total = TRUE. If I use the default setting use_total = FALSE I can process the dataset completely following the tutorial.

Using:
R version 3.3.3 (2017-03-06) -- "Another Canoe"
metacoder verison 0.2.0.9011
OSX 10.10.5


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4