Skip to content

Commit

Permalink
add normalization status message
Browse files Browse the repository at this point in the history
  • Loading branch information
zdk123 committed Oct 14, 2023
1 parent 4066f6a commit 8b55857
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/spiec-easi.R
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ spiec.easi.otu_table <- function(data, ...) {
types <- attr(data, 'types')
if (is.null(types)) types <- get_types(data)
## all columns are counts or comp - normalize ##
# TODO: create message if dataset is partially normalized
comp <- is.normalized(data)
if (comp || all(grepl("count", types))) {
message(sprintf(" Compositional or count dataset detected... %s normalizing", method))
if (comp & (method == "plcr")) {
message("input data is already total-sum-normalized, Is pseudocount needed?")
}
Expand Down

0 comments on commit 8b55857

Please sign in to comment.