Skip to content

Commit

Permalink
If no xy.data then error
Browse files Browse the repository at this point in the history
  • Loading branch information
dkulp2 committed Apr 11, 2018
1 parent 0e8e38e commit 7624474
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tSNE.R
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,8 @@ tsne.label <- function(is.global=TRUE, show.subclusters=FALSE, show.cells=TRUE,
tibble()
})

if (show.cells && nrow(xy.data)==0) return(plot.text("No cell data to display."))

if (!is.null(progress) && nrow(xy.data)>0) progress$inc(0.2, detail=glue("Read {nrow(xy.data)} cells"))

# labels
Expand Down

0 comments on commit 7624474

Please sign in to comment.