Skip to content

Commit

Permalink
Catch mtx spillover in cyto_spillover_edit().
Browse files Browse the repository at this point in the history
  • Loading branch information
djhammill committed Feb 12, 2024
1 parent 743229d commit 4082e42
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions R/cyto_spillover_edit.R
Original file line number Diff line number Diff line change
Expand Up @@ -1148,9 +1148,17 @@ spillEditServer <- function(id,
} else {
# SPILLOVER CSV FILENAME
if(is.character(spill())) {
sp <- read_from_csv(spill(),
data.table = FALSE)
# SPILLOVER MATRIX SUPPLIED
if(file_ext(spill()) %in% "mtx") {
sp <- read_from_mtx(
spill()
)
} else {
sp <- read_from_csv(
spill(),
data.table = FALSE
)
}
# SPILLOVER MATRIX SUPPLIED
} else {
sp <- spill()
}
Expand Down

0 comments on commit 4082e42

Please sign in to comment.