natverse / rcatmaid

R package providing API access to the CATMAID web image annotation tool
https://natverse.github.io/rcatmaid
GNU General Public License v3.0
9 stars 6 forks source link

Fix handling of catmaid_get_connector_table for non default pid #147

Closed jefferis closed 4 years ago

jefferis commented 4 years ago

Shanice writes I'm trying to obtain the node counts of upstream partners for my neuron of interest in the VNC using both catmaid_get_connector_table and catmaid_query_connected. The first function returns the df but the partner_nodes column is filled with NAs or 1s and I can't make sense of how these have been allocated. When I use the second function I get an error message: Error in order(df$syn.count, decreasing = TRUE) : argument 1 is not a vector . I've tried both with FAFB neurons and the correct results are returned so I'm not sure what's going on with my vnc neuron (connection specified by vnc1conn and works fine with other functions)?

test.connections<-catmaid_get_connector_table(206956, direction = "incoming", get_partner_nodes = TRUE ,conn = vnc1conn, pid = 13)
test.partners<-catmaid_query_connected(206956, pid = 13, conn = vnc1conn)