Skip to content

Commit

Permalink
Updated comments for sce_to_seurat logcounts test
Browse files Browse the repository at this point in the history
  • Loading branch information
sjspielman committed Sep 1, 2022
1 parent e745277 commit 6dd5790
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-sce_to_seurat.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ test_that("Converting SCE to Seurat objects works as expected", {
})


test_that("Converting SCE to Seurat objects works as expected for custom assay name", {
test_that("Converting SCE to Seurat objects works as expected for a non-default assay of 'logcounts'", {

seurat_object <- sce_to_seurat(sce, assay_name = "logcounts")

Expand All @@ -61,7 +61,7 @@ test_that("Converting SCE to Seurat objects works as expected for custom assay n

# can't directly check that coldata is equal because of added columns in seurat object
expect_true(all(colnames(coldata_sce) %in% colnames(seurat_object@meta.data)))
expect_equal(rowdata_sce, seurat_object[["logcounts"]]@var.features) # since default "counts" is used, RNA name is expected here
expect_equal(rowdata_sce, seurat_object[["logcounts"]]@var.features)
expect_equal(metadata(sce), seurat_object@misc)

# check that altExp data was converted and rowData
Expand Down

0 comments on commit 6dd5790

Please sign in to comment.