Skip to content

Commit

Permalink
Update cave-tables.R
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderbates committed Nov 24, 2024
1 parent 10a19ba commit 2e8ba0c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions R/cave-tables.R
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ get_cave_table_data <- function(table, rootids = NULL, ...){
banc_cave_cell_types <- function(){
banc.cell.info <- banc_cell_info(rawcoords = TRUE)
banc.cell.info$pt_position <- sapply(banc.cell.info$pt_position, paste, collapse=", ")
ni <- subset(banc.cell.info, grepl("central neuron", tag2))
banc.cell.info.mod <- banc.cell.info %>%
dplyr::rowwise() %>%
dplyr::mutate(pt_position = paste0(pt_position,collapse=",")) %>%
Expand Down Expand Up @@ -201,8 +200,8 @@ banc_cave_cell_types <- function(){
grepl("ascending|descending|descending|ascending", tag) ~ tag,
grepl("sensory neuron|motor neuron|^trachea|^glia|^endocrine", tag) ~ tag,
grepl("sensory neuron|motor neuron|^trachea|^glia|^endocrine", tag) ~ tag2,
grepl("motor neuron", cell_class) ~ "motor",
grepl("endocrine", cell_class) ~ "endocrine",
grepl("motor neuron", tag) ~ "motor",
grepl("endocrine", tag) ~ "endocrine",
grepl("central neuron", tag2) ~ tag,
grepl("^innervates|^intersegmental", tag) ~ tag,
TRUE ~ NA
Expand Down

0 comments on commit 2e8ba0c

Please sign in to comment.