Skip to content

Commit

Permalink
Merge pull request satijalab#421 from satijalab/fix/sctransform_0.3
Browse files Browse the repository at this point in the history
vst parameter name change
  • Loading branch information
andrewwbutler authored Sep 23, 2020
2 parents 1eab1f4 + 6976c7d commit 0f59a40
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions R/preprocessing.R
Original file line number Diff line number Diff line change
Expand Up @@ -1576,13 +1576,13 @@ SCTransform <- function(
if (any(!vars.to.regress %in% colnames(x = cell.attr))) {
stop('problem with second non-regularized linear regression; not all variables found in seurat object meta data; check vars.to.regress parameter')
}
if (any(c('cell_attr', 'show_progress', 'return_cell_attr', 'return_gene_attr', 'return_corrected_umi') %in% names(x = vst.args))) {
if (any(c('cell_attr', 'verbosity', 'return_cell_attr', 'return_gene_attr', 'return_corrected_umi') %in% names(x = vst.args))) {
warning(
'the following arguments will be ignored because they are set within this function:',
paste(
c(
'cell_attr',
'show_progress',
'verbosity',
'return_cell_attr',
'return_gene_attr',
'return_corrected_umi'
Expand All @@ -1595,7 +1595,7 @@ SCTransform <- function(
}
vst.args[['umi']] <- umi
vst.args[['cell_attr']] <- cell.attr
vst.args[['show_progress']] <- verbose
vst.args[['verbosity']] <- as.numeric(x = verbose) * 2
vst.args[['return_cell_attr']] <- TRUE
vst.args[['return_gene_attr']] <- TRUE
vst.args[['return_corrected_umi']] <- do.correct.umi
Expand Down Expand Up @@ -1650,7 +1650,7 @@ SCTransform <- function(
vst.out$umi_corrected <- correct_counts(
x = vst.out,
umi = umi,
show_progress = verbose
verbosity = as.numeric(x = verbose) * 2
)
}
}
Expand Down Expand Up @@ -3313,7 +3313,7 @@ GetResidualVstOut <- function(
umi = umi,
residual_type = "pearson",
res_clip_range = c(clip.min, clip.max),
verbosity = verbose
verbosity = as.numeric(x = verbose) * 2
)
new_residual <- as.matrix(x = new_residual)
# centered data
Expand Down

0 comments on commit 0f59a40

Please sign in to comment.