Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have nblast work with Labels in given neuronlist/dotprops objects #42

Open
alexanderbates opened this issue Jan 28, 2021 · 2 comments
Open

Comments

@alexanderbates
Copy link
Contributor

Have a UseLabels option for nblast, which would work similarly to UseAlpha. Labels could be numeric (2) or character ("axon").

Some sample dotprops data from the hemibrain, two sets of cells types that should match to each other but not between, also with differing axon/dendrite locations: PD2a, PD2b1, AV1a1, LHCENT1, LHCENT2, LHCENT3:

Code used to fetch:

library(hemibrainr)
db = hemibrain_neurons()
chosen = subset(db, type%in%c("LHPD2a1","LHPD2b1_a","LHPD2b1_b","LHAV1a1","LHCENT1","LHCENT2","LHCENT3"))
dps = dotprops(chosen)
table(chosen[[1]]$d$Label)
table(dps[[1]]$labels)

Output:

> table(chosen[[1]]$d$Label)                                                           

    0     2     3     4     7 
10809  3186 41315   213   161 
> table(dps[[1]]$labels)

    0     2     3     4     7 
10809  3186 41315   213   161 

Where:
0 - non-computing(no 'flow'), possible erroneuous
1- soma
2- axon
3 - dendrite
4 - linker
7 - cell body fibre

dps.rda.zip

@jefferis
Copy link
Contributor

@alexanderbates interesting idea although I'm not sure about the generality. @dokato and I have been talking recently about augmenting using topology and it's possible that one could fit this into a similar framework. The radius when this is available would actually be another example — would probably need to be smoothed around some local (geodesic) region.

@jefferis
Copy link
Contributor

@dokato @schlegelp FYI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants