Skip to content

Commit

Permalink
passing r cmd check
Browse files Browse the repository at this point in the history
  • Loading branch information
shackett committed Sep 9, 2024
1 parent a217c1a commit 5cc2f44
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: romic
Type: Package
Title: R for High-Dimensional Omic Data
Version: 1.2.2
Version: 1.2.3
Authors@R: c(
person(
given = "Sean",
Expand Down
4 changes: 2 additions & 2 deletions R/dim_reduction.R
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ calculate_sample_mahalanobis_distances <- function (
) {

checkmate::assertClass(tomic, "tomic")
value_var <- romic:::value_var_handler(value_var, tomic$design)
value_var <- value_var_handler(value_var, tomic$design)
checkmate::assertIntegerish(max_pcs, len = 1)

n_features <- nrow(romic::get_tomic_table(tomic, "features"))
Expand Down Expand Up @@ -518,7 +518,7 @@ calculate_sample_mahalanobis_distances <- function (
!!rlang::sym(tomic$design$sample_pk) := rownames(X_std_v),
pc_distance = rowSums(X_std_v^2)
) %>%
arrange(desc(pc_distance))
dplyr::arrange(dplyr::desc(pc_distance))

# validate calculation
varex_leading_components <- sum(svd_results$d^2) * sum((svd_results$d^2 / sum(svd_results$d^2))[1:npcs])
Expand Down
1 change: 1 addition & 0 deletions R/romic-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ utils::globalVariables(c(
"sample_label",
"ordered_sampleId",
"orderedId",
"pc_distance",
"valid_tables",
"NAME",
"name",
Expand Down
6 changes: 4 additions & 2 deletions man/get_design_tbl.Rd

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

0 comments on commit 5cc2f44

Please sign in to comment.