Skip to content

Commit a0bdd3f

Browse files
committed
fix tests
1 parent f39f763 commit a0bdd3f

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

R/methods_SE.R

+2
Original file line numberDiff line numberDiff line change
@@ -2895,6 +2895,8 @@ setMethod("describe_transcript", "RangedSummarizedExperiment", .describe_transcr
28952895
combination_of_factors_of_NON_interest =
28962896
# Factors
28972897
se[1,1, drop=FALSE] |>
2898+
colData() |>
2899+
as_tibble(rownames = ".sample") |>
28982900
select(...) |>
28992901
suppressWarnings() |>
29002902
colnames() |>

tests/testthat/test-bulk_methods_SummarizedExperiment.R

+6-4
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ test_that("gene over representation",{
747747
species="Homo sapiens"
748748
)
749749

750-
expect_equal( ncol(res), 10 )
750+
expect_equal( ncol(res), 13 )
751751

752752

753753

@@ -854,8 +854,8 @@ test_that("Only reduced dimensions UMAP - no object",{
854854
test_that("resolve_complete_confounders_of_non_interest",{
855855

856856

857-
library(tidySummarizedExperiment)
858-
library(tidybulk)
857+
#library(tidySummarizedExperiment)
858+
library(SummarizedExperiment)
859859

860860
# Sample annotations
861861
sample_annotations <- data.frame(
@@ -890,7 +890,9 @@ test_that("resolve_complete_confounders_of_non_interest",{
890890

891891
se |>
892892
resolve_complete_confounders_of_non_interest(A, B, C) |>
893-
distinct(.sample, A, B, C) |>
893+
colData() |>
894+
_[, c("A", "B", "C")] |>
895+
as_tibble(rownames = ".sample") |>
894896
expect_identical(expected_tibble )
895897

896898

0 commit comments

Comments
 (0)