-
Notifications
You must be signed in to change notification settings - Fork 6
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
Show the user the available projects in the catmaid instance and their associated id #157
Comments
Dear Marc, Thanks for your message and interest in the catmaid R package. I'm not sure that "rcatmaid assumes one project per instance" is a very good summary precisely because you have the option to submit a specific project id (
then I would be very happy to review. I don't think asking the user to choose a pid interactively is a good idea, but for connections to neuprint I have recently implemented the pattern of associating the dataset (similar to project) with the connection object and warning when more than one is available. Best, Greg. |
Hi Greg, Sorry if my title was misleading, i will give it a go, and thanks or the fantastic package! Marc |
Hi Greg, In my opinion, it would be valuable to add 2 slots to conn:
The parsing is easy, we could call:
When wold you call it? I see that you try to build the conn object with cache, environment set variables or user passed arguments. |
Hi,
If I've read the code correctly, every time you use functions building on catmaid_fetch, the project id has to be provided (or defaults to 1). I think it would be nice to allow the user to see the available projects in the Catmaid insance they are connecting to (during catmaid_login for example), and ask him to select one. Catmaid exposes the info via the api so getting the projects is a catmaid_fetch('projects', conn = conn) away. If asking the user interactively is not an option, I would suggest to warn the user and default to the first pid available to the user in the server (not always 1 apparently). Apologies if I missed something, and if you want me to submit it as a push request, I am happy to give it a try.
Cheers.
Marc
The text was updated successfully, but these errors were encountered: