natverse / neuprintr

R client utilities for interacting with the neuPrint connectome analysis service
http://natverse.org/neuprintr
3 stars 3 forks source link

Feature/flexible ids #83

Closed jefferis closed 4 years ago

jefferis commented 4 years ago

This adds support for flexible custom queries for all functions that take body ids as input. You can do things like:

neuprint_get_adjacency_matrix(inputids='DA2 lPN', outputids='DL4 adPN')
# or
pnkc=neuprint_get_adjacency_matrix(inputids='name:mPN', outputids='/KC.*')
jefferis commented 4 years ago

@romainFr / @alexanderbates I think this is a nice addition. It would be great if you could give it a try. You can install like so:

devtools::install_github('natverse/neuprintr@feature/flexible-ids')
jefferis commented 4 years ago

@mmc46 @lisa-marin if you also have the chance to test that would be nice.

mmc46 commented 4 years ago

It is working fine for me, including with the regex for multiple types

da1pn_conn = neuprint_connection_table("/DA1.*PN", prepost = "PRE", roi = "AL(R)", all_segments = F)
jefferis commented 4 years ago

Thanks a lot @mmc46. I'm in a hurry to get this one as https://github.com/flyconnectome/hemibrainr/pull/6 also depends so I've gone ahead and merged now.