Skip to content

Commit

Permalink
fix for cran check
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsmechtel committed Feb 25, 2024
1 parent 42c1fe8 commit ae9c4f7
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 22 deletions.
22 changes: 4 additions & 18 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,11 @@ Package: MetAlyzer
Type: Package
Title: Read and Analyze 'MetIDQ™' Software Output Files
Version: 1.0.0
Author: Nils Mechtel <[email protected]>
Maintainer: Nils Mechtel <[email protected]>
Authors@R:
c(person("Nils", "Mechtel",
email = "[email protected]",
role = c("aut", "cre"),
comment = c(ORCID = "0000-0002-1278-7125")),
person("Luis", "Herfurth",
email = "[email protected]",
role = c("aut"),
comment = c(ORCID = "0009-0000-9933-3056")),
person("Carolin", "Andresen",
email = "[email protected]",
role = c("aut"),
comment = c(ORCID = "0000-0002-8960-7719")),
person("Daniel", "Huebschmann",
email = "[email protected]",
role = c("aut"),
comment = c(ORCID = "0000-0002-6041-7049")))
Author: Nils Mechtel [aut, cre] (<[email protected]>, ORCID: 0000-0002-1278-7125),
Luis Herfurth [aut] (<[email protected]>, ORCID: 0009-0000-9933-3056),
Carolin Andresen [aut] (<[email protected]>, ORCID: 0000-0002-8960-7719),
Daniel Huebschmann [aut] (<[email protected]>, ORCID: 0000-0002-6041-7049)
Depends:
R (>= 4.0.0)
biocViews:
Expand Down
4 changes: 2 additions & 2 deletions R/calculate_anova.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#' metalyzer_se <- calculate_anova(
#' metalyzer_se,
#' categorical = "Extraction_Method",
#' groups = c("Tissue", "Metabolite"),
#' groups = c("Metabolite"),
#' impute_perc_of_min = 0.2,
#' impute_NA = FALSE
#' )
Expand Down Expand Up @@ -130,7 +130,7 @@ calc_anova <- function(c_vec, d_vec) {

if (sum(!is.na(d_vec)) == 0 | length(unique(c_vec[mask])) < 2) {
## less than two levels
group_vec <- NA
group_vec <- rep(NA, length(c_vec))
} else {
tmp_df <- data.frame(Categorical = as.character(c_vec),
Dependent = as.numeric(d_vec))
Expand Down
2 changes: 1 addition & 1 deletion man/calculate_anova.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vignettes/MetAlyzer_User_Guide.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ metalyzer_se <- calculate_anova(
categorical = "Extraction_Method",
groups = c("Tissue", "Metabolite"),
impute_perc_of_min = 0.2,
impute_NA = TRUE
impute_NA = FALSE
)
aggregated_data <- aggregatedData(metalyzer_se) %>%
Expand Down
File renamed without changes.

0 comments on commit ae9c4f7

Please sign in to comment.