Closed csoneson closed 4 days ago
Added the sticker in 1685845
Removed sumOverRegions()
(superseded by getAnchorRegions()
) in 2404a9a
added a NEWS.md
file in a2616d7e
The use of ::
has been harmonised according to the rules above in c38f3aec
Some first steps towards harmonising the messaging (verbose
usage) in 161d23dd:
.message(...)
that is mostly a drop-in replacement for message (although it doesn't support multi-part messages like in message("this is ", "a long ", "message in multiple parts")
. It has the following advantages:
verbose
in the calling environment and only generates a message if verbose == TRUE
cli::cli_inform
(see e.g. here) and thus supports pluralisation and inline-markup, for example .message("reading from {.file fname}")
which adds a link to a file, or .message("processed {length(unique(x))} element{?s} of a total of {length(x)}")
if (verbose) { message(...) }
by .message(...)
, possibly augmented using inline-markupHaving the messaging done by a central .message()
would make it easy if we decide to, for example, change the styling of messages, or remove the verbose
arguments in all functions in favour of a central config option.
Many of our dependencies already depend on cli
(e.g. ggplot2
), so this did not add any further dependencies.
Furthermore, it could easily be used to also support inline-formatting in errors and warnings by using cli_abort
or cli_warn
instead of stop
and warning
, or any of the other features that cli
offers (emojis, progress bars, etc.).
Removed some dependencies:
purrr::map
(replaced by dplyr::group_modify
) in 5dd70bfastringr::str_extract
(replace by sub
) in 54fae054read-level-data.Rmd
now evaluates all code chunks (currently it uses mean
instead of rowMeans
which is not yet implemented and probably will not be implemented in BioC 3.20), done in 8a8a0299.
Revisit on what value to use for the modification probability of implicit non-modified bases (0 vs 0.02)
This is now set to 0 (no need to use an artificial non-zero value anymore with the change from SparseArray
to NaArray
). For readModkitExtract
, the values provided in the input file (0) are used as they are.
Harmonization of variable names done in 71a61d79 and ec0482f4
To consider at some point:
.
,_
, camelCase)verbose
usage) across functions::
. Let's try the following conventions:@importFrom
@importFrom
the specific method (e.g.SparseArray::rowSums
) instead of the generic (e.g.BiocGenerics::rowSums
), to make it easier to see the exact method usednamespace::
prefixes in the function bodysumOverRegions
?)scuttle::aggregateAcrossCells
(only used once inreadBedMethyl
)stringr::str_extract
(only used once ingetAnchorRegions
)purr::map
(only used once inplotRegion
)NEWS
fileBiocCheck()
andpkgdown::build_site()
(to check that all functions are included in_pkgdown.yml
)0
vs0.02
)>0
vs>=0
(depending on how implicitly given modification probabilities are represented)read-level-data.Rmd
seteval=TRUE
for chunk with (currently non-functional)rowMeans(NaArray)