Unable to name neurons catnat

26 views
Skip to first unread message

Marcel Sayre

unread,
Aug 25, 2020, 11:36:06 AM8/25/20
to nat-user
Hi everyone,

I'm trying to upload a group of neurons to our CATMAID instance, but I'm unable to name them. Using the catnat and natverse packages, here is the code and response (with PFN_B1 being a neuronlist w/ 11 neurons): 

```{r}
catmaid_upload_neurons(swc = PFN_B1, name = "PFN_B1", pid = 5, conn = server_auth, max.upload = 60)
```
Could not name new neuron 15960Annotations and names set to new skeleton: 15960
Could not name new neuron 15966Annotations and names set to new skeleton: 15966
Could not name new neuron 15972Annotations and names set to new skeleton: 15972
...etc

The upload works fine, but neurons are assigned new names. Any ideas as to what I may be doing wrong? 

Thanks!
Cheers,
Marcel




Greg Jefferis

unread,
Aug 25, 2020, 7:39:30 PM8/25/20
to Marcel Sayre, nat-user
Hi Marcel,

That catnat function wraps around.

catmaid::catmaid_rename_neuron

I suggest you try using that to rename one of your neurons like 15960 directly and see if things work. If not, I would suspect an API permissions issue. You may need to head over to the catmaid mailing list to sort that out.

All the best,

Greg.

--
You received this message because you are subscribed to the Google Groups "nat-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nat-user+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/nat-user/44ce0fdd-c83e-4c4c-9870-0fe6b0ece969n%40googlegroups.com.

Marcel Sayre

unread,
Aug 26, 2020, 5:14:16 AM8/26/20
to nat-user
Hey Greg,

Thanks for your input - I tried again on a single neuron using catmaid_rename_neuron and again had no luck: 


```{r}
catmaid_get_neuronnames(skids = 16091, pid = 5, conn = server_auth)
```
         16091 
"neuron 16092" 

```{r}
catmaid_rename_neuron(skids=16091, names="PFN", pid = 5, conn = server_auth)
```

Error in catmaid_fetch(path, include_headers = F, conn = conn, ...) : Internal Server Error (HTTP 500).
5. stop(http_condition(x, "error", task = task, call = call))
4. stop_for_status(req)
3. catmaid_fetch(path, include_headers = F, conn = conn, ...)
2. get_neuronid_for_skid(skids)
1. catmaid_rename_neuron(skids = 16091, names = "PFN", pid = 5, conn = server_auth)


You're probably right, I'll post this question to the CATMAID group to see if it's an API permission issue. Thanks!
Cheers,
Marcel
Reply all
Reply to author
Forward
0 new messages