Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TuomasBorman committed Oct 23, 2024
1 parent 73ff9b9 commit feb7460
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Authors@R:
comment = c(ORCID = "0000-0002-8563-8884")),
person(given = "Artur", family = "Sannikov", role = c("aut"),
email = "[email protected]",
comment = c(ORCID = "0000-0001-7765-123X")
comment = c(ORCID = "0000-0001-7765-123X")),
person(given = "Leo", family = "Lahti", role = c("aut"),
email = "[email protected]",
comment = c(ORCID = "0000-0001-5537-637X")))
Expand Down
6 changes: 3 additions & 3 deletions R/addMGnify.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
#' that will be added to \code{y}. (Default: \code{"metagenomic"})
#'
#' @param exp.name2 \code{Character scalar}. Specifies the name of experiment
#' from HoloFoodR results. This experiment is used to match IDs with MGnify data.
#' (Default: \code{"metagenomic_amplicon"})
#' from HoloFoodR results. This experiment is used to match IDs with MGnify
#' data. (Default: \code{"metagenomic_amplicon"})
#'
#' @param id.col1 \code{Character scalar}. Specifies the name of column from
#' \code{colData(x)} that includes HoloFood identifiers.
Expand Down Expand Up @@ -106,7 +106,7 @@ setMethod(
id.col2, list("character scalar"),
supported_values = colnames(y))
if( !( is.character(colData(x)[[id.col1]]) ||
is.factor(colData(x)[[id.col1]]) ) ){
is.factor(colData(x)[[id.col1]]) ) ){
stop("'id.col1' must specify IDs from 'x'.", call. = FALSE)
}
if( !( is.character(y[[id.col2]]) || is.factor(y[[id.col2]]) ) ){
Expand Down

0 comments on commit feb7460

Please sign in to comment.