-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e303efc
commit 82c6314
Showing
5 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# test script for CoNGAfy.R - testcases are NOT comprehensive! | ||
|
||
test_that("CoNGAfy works", { | ||
|
||
data("ibex_example") | ||
|
||
|
||
conga_reduction <- CoNGAfy(ibex_example) | ||
|
||
expect_equal( | ||
conga_reduction@meta.data, | ||
getdata("CoNGAfy", "CoNGAfy_meta.data") | ||
) | ||
|
||
expect_equal( | ||
conga_reduction@assays$RNA@layers$counts, | ||
getdata("CoNGAfy", "CoNGAfy_counts"), | ||
tolerance=1e-2 | ||
) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# test script for quietBCRgenes.R - testcases are NOT comprehensive! | ||
|
||
test_that("quietBCRgenes works", { | ||
|
||
data("ibex_example") | ||
|
||
features <- rownames(ibex_example@assays$RNA$counts) | ||
|
||
expect_equal( | ||
quietBCRgenes(features), | ||
getdata("quietBCRgenes", "quietBCRgenes_feature.vector") | ||
) | ||
|
||
ibex_example@assays$RNA@var.features <- features | ||
Seurat::DefaultAssay(ibex_example) <- "RNA" | ||
|
||
ibex_example <- quietBCRgenes(ibex_example) | ||
|
||
|
||
expect_equal( | ||
quietBCRgenes(features), | ||
ibex_example@assays$RNA@var.features | ||
) | ||
}) |
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+144 KB
tests/testthat/testdata/quietBCRgenes/quietBCRgenes_feature.vector.rds
Binary file not shown.