catmaid_get_label_stats: Get statistics for all labels in a project from a CATMAID...

View source: R/catmaid_labels.R

catmaid_get_label_statsR Documentation

Get statistics for all labels in a project from a CATMAID server

Description

catmaid_get_label_stats returns a data.frame with one row for every node-tag pair.

catmaid_get_all_labels returns a character vector of labels

Usage

catmaid_get_label_stats(pid = 1, conn = NULL, ...)

catmaid_get_all_labels(pid = 1, conn = NULL, ...)

Arguments

pid

Project id (default 1)

conn

A catmaid_connection objection returned by catmaid_login. If NULL (the default) a new connection object will be generated using the values of the catmaid.* package options as described in the help for catmaid_login.

...

Additional arguments passed to the catmaid_fetch function

See Also

catmaid_get_review_status

Other labels: catmaid_get_labels()

Examples


label_stats=catmaid_get_label_stats()
library(dplyr)
# select soma labels
soma_labels=label_stats %>%
  filter(labelName=='soma') %>%
  group_by(skeletonID)

# select skeleton ids for neurons with multiple cell bodies
multiple_soma=soma_labels %>%
  count(skeletonID) %>%
  filter(n>1) %>%
  arrange(desc(n))

multiple_soma_info = soma_labels %>%
  filter(skeletonID%in% multiple_soma$skeletonID)


head(catmaid_get_all_labels())


jefferis/rcatmaid documentation built on Aug. 16, 2022, 8:52 p.m.