Skip to content

Commit 2e8ba0c

Browse files
Update cave-tables.R
1 parent 10a19ba commit 2e8ba0c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

R/cave-tables.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ get_cave_table_data <- function(table, rootids = NULL, ...){
171171
banc_cave_cell_types <- function(){
172172
banc.cell.info <- banc_cell_info(rawcoords = TRUE)
173173
banc.cell.info$pt_position <- sapply(banc.cell.info$pt_position, paste, collapse=", ")
174-
ni <- subset(banc.cell.info, grepl("central neuron", tag2))
175174
banc.cell.info.mod <- banc.cell.info %>%
176175
dplyr::rowwise() %>%
177176
dplyr::mutate(pt_position = paste0(pt_position,collapse=",")) %>%
@@ -201,8 +200,8 @@ banc_cave_cell_types <- function(){
201200
grepl("ascending|descending|descending|ascending", tag) ~ tag,
202201
grepl("sensory neuron|motor neuron|^trachea|^glia|^endocrine", tag) ~ tag,
203202
grepl("sensory neuron|motor neuron|^trachea|^glia|^endocrine", tag) ~ tag2,
204-
grepl("motor neuron", cell_class) ~ "motor",
205-
grepl("endocrine", cell_class) ~ "endocrine",
203+
grepl("motor neuron", tag) ~ "motor",
204+
grepl("endocrine", tag) ~ "endocrine",
206205
grepl("central neuron", tag2) ~ tag,
207206
grepl("^innervates|^intersegmental", tag) ~ tag,
208207
TRUE ~ NA

0 commit comments

Comments
 (0)