-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
add dataset existing in a NAS via url endpoint #684
Comments
Hi Giuliano, Great to hear you are interested in Alyx! Not certain I fully understood the question but here is my best shot.
We are currently updating the ONE libraries, and this would be a great test case! So please stay in touch and we will make sure it works. |
Hi Kenneth, Thanks for the explanation!
What we pursue in a first stage is:
How I do so far:
|
OK I see! I think these things will all be much easier using the REST endpoints - you can add files programatically straight from the recording software and it will take care of all of this for you. I'm not the best person to explain though, @k1o0 could you take this? |
Hi Giuliano, As Kenneth mentioned, adding datasets is much more easily done through REST. We have endpoints for creating sessions and registering files, but first I'll go over the workflow for linking everything together. The first four steps are done through the web browser and only need to be done once per subject/dataset type etc.
You can make REST queries through the MATLAB API and Python. The important thing is to register the files after you've created the subject and session, otherwise they may not be linked to the correct meta data. I hope that helps! |
Hi @k1o0 and @kdharris101 , thank you the feedback! I've followed the steps indicated above by @k1o0 . However, I cannot manage to set "Data->Datasets" as "on server", actually, when I select the option "add dataset", the "on server" option is always disabled. See attachment.
could you give me an extra hand with this please? |
There are two models: datasets and dataset types. In step 3 above it's the dataset types that we add through the admin interface. The datasets themselves are registered through REST. The on_server field is calculated, so you can't manually set it. A dataset is shown as online if one of the associated file records has an exist field that is set to true and is on a data repository that has a non null url field. |
Hi k1o0, I have installed Alyx as a local database and trying to use it to store my own data and possibly extending it even further for the entire lab. I've ran into the same issue as described here that I am unable to register my files. I cannot associate a dataset with a session. I follow steps 1 to 5 as you outlined. However, I cannot pass through step 6. Matlab REST API appears to be nonfunctioning and I raised an issue here cortex-lab/alyx-matlab#80
Gives the following error:
What is a correct way to set up AlyxClient? Also a related issue. I think having a tutorial on how to upload files onto the Alyx database using the graphical interface would really be useful for new people trying to adopt Alyx for their data management. The existing documentations assume a high level of familiarity with the Alyx database already which, seems to me, would prevent its widespread adoption. |
Registering files worked after correcting base_url to |
Hi, yes the 'admin' part of the URL refers to the admin interface, which is for browsing and editing the database in the browser. Just use the root URL for REST requests through ONE and alyx-matlab |
Unfortunately we don't have a system for registering files through the admin interface. You can do it but it would be incredibly arduous. It's better to the use |
Thanks for a quick reply. I have also submitted a related issue on int-brain-lab/iblenv#305 |
Hi,
I am starting to get familiar with Alyx (and ONE) to promote its usage in my institution (a neuroscience lab).
I managed to install it in a server and enable the apache service, all is fine so far. What I am trying to do is the following:
Could you give me some guidance with this please?
Thanks,
Giuliano.
The text was updated successfully, but these errors were encountered: