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

neuprint_read_neurons fails because of id2bit64 #41

Closed
romainFr opened this issue Jan 27, 2020 · 3 comments
Closed

neuprint_read_neurons fails because of id2bit64 #41

romainFr opened this issue Jan 27, 2020 · 3 comments

Comments

@romainFr
Copy link
Collaborator

For example

test <- neuprint_search("PFL1.*")
neuprint_read_neurons(test$bodyid)

Returns

Error in neuprint_read_neurons(test$bodyid) : 
  Error: none of the given bodyids have skeletons that could be fetched

neuprint_read_neuron on single bodyids works, as well as neuprint_read_neurons if I remove the call to id2bit64 in the nlapply call.

@jefferis
Copy link
Contributor

Yes I've fixed that same bug in a couple of places already. Let me finish. It's a stupid thing but as.list on a vector of bit64 objects turns them into 8 byte numeric values. It's basically safest to keep them as character vectors.

@romainFr
Copy link
Collaborator Author

Great, I was getting very confused by that

@jefferis
Copy link
Contributor

We now have id2char as well. Pass your bodyids through that if you want to be sure that they are all good.

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

No branches or pull requests

2 participants