Skip to content

Commit

Permalink
Fixed logging file for new balanced parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
JTNearing-broad committed Nov 21, 2024
1 parent da354f7 commit 191d1f9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 7 additions & 1 deletion man/maaslin_log_arguments.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ maaslin_log_arguments(input_data,
max_pngs = 30,
cores = 1,
save_models = FALSE,
verbosity = 'FINEST')
verbosity = 'FINEST',
summary_plot_balanced=FALSE)
}
\arguments{
\item{input_data}{A data frame of feature abundances or read counts or a
Expand Down Expand Up @@ -185,6 +186,11 @@ maaslin_log_arguments(input_data,
\item{save_models}{Whether to return the fit models and save them to an
RData file.}
\item{verbosity}{The level of verbosity for the \code{logging} package.}
\item{summary_plot_balanced}{If set to TRUE the summary plot will
show the top N features of each variable included in
\code{coef_plot_vars} where N is equal to:
\code{ceiling(summary_plot_first_n/length(coef_plot_vars))}. Will error
if \code{coef_plot_vars} = \code{NULL}}
}
\value{
No value is returned, but a logger is opened with the parameters logged.
Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/test_maaslin_log_arguments.R
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ maaslin_log_arguments(input_data = 'something1',
max_pngs = 8,
cores = 9,
save_models = FALSE,
verbosity = 'FINEST')
verbosity = 'FINEST',
summary_plot_balanced=FALSE)

lines_in <- readLines(file.path(output_tmp, 'maaslin3.log'))
lines_in <- sub('.*::', '', lines_in)
Expand Down

0 comments on commit 191d1f9

Please sign in to comment.