Skip to content

Commit

Permalink
banc_meta: test for empty strings not NA
Browse files Browse the repository at this point in the history
* to match change in 4687538
  • Loading branch information
jefferis committed Oct 22, 2024
1 parent acc41aa commit ff5f2fd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/meta.R
Original file line number Diff line number Diff line change
Expand Up @@ -227,10 +227,10 @@ fancorbanc_meta <- function(table, ids=NULL, ...) {
mutate(class=case_when(
id %in% cell_infos2.ol$pt_root_id ~ "optic",
class=='sensory neuron' & grepl('scending', apc) ~ paste('sensory', apc),
(is.na(class) | class=='central neuron') & apc=='ascending' ~ 'ascending',
(is.na(class) | class=='central neuron') & apc=='descending' ~ 'descending',
is.na(apc) & is.na(class) ~ 'unknown',
is.na(apc) ~ class,
(class=="" | class=='central neuron') & apc=='ascending' ~ 'ascending',
(class=="" | class=='central neuron') & apc=='descending' ~ 'descending',
apc=="" & class=="" ~ '',
apc=="" ~ class,
T ~ paste(class, apc)
)) %>%
mutate(class=sub(" neuron", '', class)) %>%
Expand Down

0 comments on commit ff5f2fd

Please sign in to comment.