Skip to content

Commit

Permalink
inherits(embedding, character)
Browse files Browse the repository at this point in the history
  • Loading branch information
evanbiederstedt committed Apr 1, 2022
1 parent f25e70d commit c3c1a94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/conclass.R
Original file line number Diff line number Diff line change
Expand Up @@ -999,9 +999,9 @@ Conos <- R6::R6Class("Conos", lock_objects=FALSE,
# a utility function to look up an embedding by name or accept an actual embedding data
getEmbedding=function(embedding) {
if (!is.null(embedding)) {
if(class(embedding) %in% c('matrix')) { # actuall embedding was passed
if (class(embedding) %in% c('matrix')) { # actuall embedding was passed
# check validity?
} else if(class(embedding)=='character') { # look up embedding by name
} else if (inherits(embedding, 'character')) { # look up embedding by name
## check if embedding.name exists in list
if (embedding %in% names(self$embeddings)) {
## embedding to plot
Expand Down

0 comments on commit c3c1a94

Please sign in to comment.