Skip to content

Commit

Permalink
update docs and tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stemangiola committed Apr 29, 2024
1 parent 86a7d5d commit d64967f
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 8 deletions.
28 changes: 21 additions & 7 deletions man/quantile_normalise_abundance-methods.Rd

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

16 changes: 15 additions & 1 deletion tests/testthat/test-bulk_methods_SummarizedExperiment.R
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,21 @@ test_that("quantile normalisation",{
filter(a=="SRR1740035" & b=="ABCB9") |>
dplyr::pull(c_scaled)
)


target_distribution =
se_mini |>
assay( "count") |>
as.matrix() |>
preprocessCore::normalize.quantiles.determine.target()

se_mini |>
quantile_normalise_abundance(
method = "preprocesscore_normalize_quantiles_use_target",
target_distribution = target_distribution
) |>
expect_no_error()


})

test_that("tidybulk SummarizedExperiment normalisation subset",{
Expand Down

0 comments on commit d64967f

Please sign in to comment.