forked from Elisseeff-Lab/domino
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test specification of ligands in circos
- Loading branch information
1 parent
16c7846
commit 129ce57
Showing
1 changed file
with
52 additions
and
2 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 |
---|---|---|
@@ -1,9 +1,59 @@ | ||
test_that("Creating a circos plot data frame", { | ||
arc_df <- circos_lr_shape_data( | ||
dom = v0.2.1$pbmc_dom_built_tiny, | ||
receptor="CXCR3", | ||
receptor = "CXCR3", ligands = "CCL20", | ||
ligand_expression_threshold = 0.01, cell_idents = NULL | ||
) | ||
expect_true(is(arc_df, "data.frame")) | ||
|
||
}) | ||
# subsetting to valid clusters does not cause a warning | ||
expect_no_warning( | ||
{ | ||
# vector of multiple valid cell type | ||
circos_lr_shape_data( | ||
dom = v0.2.1$pbmc_dom_built_tiny, | ||
receptor="CXCR3", | ||
cell_idents = c("CD14_monocyte","CD3_T_cell") | ||
) | ||
# single character value of one valid cell type | ||
circos_lr_shape_data( | ||
dom = v0.2.1$pbmc_dom_built_tiny, | ||
receptor="CXCR3", | ||
cell_idents = "CD14_monocyte" | ||
) | ||
} | ||
) | ||
|
||
# providing invalid cluster names generates a warning | ||
expect_warning( | ||
circos_lr_shape_data( | ||
dom = v0.2.1$pbmc_dom_built_tiny, | ||
receptor="CXCR3", | ||
cell_idents = c("foobar") | ||
) | ||
) | ||
}) | ||
|
||
# arc_df_2 <- circos_lr_shape_data( | ||
# dom = dominoSignal:::v0.2.1$pbmc_dom_built_tiny, | ||
# ligands = "CCL20", | ||
# receptor = "CXCR3", | ||
# ligand_expression_threshold = 0.01, cell_idents = NULL | ||
# ) | ||
# | ||
# circos_lr_plot( | ||
# arc_df = arc_df_2, ligands = "CCL20", receptor = "CXCR3" | ||
# ) | ||
# | ||
# new_circos_ligand_receptor( | ||
# dom = dominoSignal:::v0.2.1$pbmc_dom_built_tiny, receptor = "CXCR3", | ||
# cell_idents = c("B_cell", "CD14_monocyte") | ||
# ) | ||
# | ||
# pdf(file = "test.pdf", width = 8, height = 8) | ||
# new_circos_ligand_receptor( | ||
# dom = dominoSignal:::v0.2.1$pbmc_dom_built_tiny, receptor = "CXCR3", | ||
# cell_idents = c("CD14_monocyte", "B_cell") | ||
# ) | ||
# dev.off() | ||
|