Skip to content

Commit

Permalink
Better use of try
Browse files Browse the repository at this point in the history
  • Loading branch information
HectorRDB committed Oct 5, 2022
1 parent 4895cfc commit e94b5a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test_tscan.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
library(testthat)
library(slingshot)
library(SingleCellExperiment)
library(TSCAN)
# library(TSCAN)

data(list = 'slingshotExample', package = "slingshot")
if (!"cl" %in% ls()) {
Expand All @@ -11,7 +11,7 @@ if (!"cl" %in% ls()) {
condition <- factor(rep(c('A','B'), length.out = nrow(rd)))
condition[110:139] <- 'A'
mst <- createClusterMST(rd, cl)
mapping <- try(mapCellsToEdges(rd, mst, cl))
mapping <- try(mapCellsToEdges(rd, mst, cl),silent = T)
if (class(mapping) != "try-error") {
ordering <- pathStat(orderCells(mapping, mst, start = 1))

Expand Down

0 comments on commit e94b5a3

Please sign in to comment.