Skip to content

Commit

Permalink
Suppressed "no visible binding for global variable" notes in register…
Browse files Browse the repository at this point in the history
…() and filter_unchanged_expressions()
  • Loading branch information
ruthkr committed May 16, 2023
1 parent f1c3c2c commit fafbaf1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions R/process_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ preprocess_data <- function(input, reference, query, scaling_method) {
#'
#' @noRd
filter_unchanged_expressions <- function(all_data) {
# Suppress "no visible binding for global variable" note
gene_id <- NULL
accession <- NULL
expression_value <- NULL
sd <- NULL
exp_sd <- NULL

# Calculate standard deviations
gene_sds <- all_data[, .(exp_sd = sd(expression_value)), by = .(gene_id, accession)]
discarded_genes <- unique(gene_sds[exp_sd <= 1e-16]$gene_id)
Expand Down
1 change: 1 addition & 0 deletions R/register.R
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ register <- function(input,
accession <- NULL
timepoint <- NULL
timepoint_reg <- NULL
timepoint_id <- NULL
expression_value <- NULL
replicate <- NULL

Expand Down

0 comments on commit fafbaf1

Please sign in to comment.