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

Upload to NV comand line tool #12

Open
chrisgorgo opened this issue Aug 20, 2016 · 4 comments
Open

Upload to NV comand line tool #12

chrisgorgo opened this issue Aug 20, 2016 · 4 comments

Comments

@chrisgorgo
Copy link

It would be awesome to have a simple upload_to_neurovault command line tool that takes a nifti file and a minimal set of metadata.

  • Minimal config file stored in the home directory. It could include:
    • user token
    • default collection to upload to
  • Users could also specify other collection as an argument, if the given collection does not exist the tool could create it for the user.

This would be really cool!

@burnash
Copy link
Collaborator

burnash commented Aug 20, 2016

I like the idea. @ljchang what do you think? Will it fit in your workflow?
@chrisfilo maybe a more general name?

$ neurovault create My collection

id: 1167
name: My collection
...
$ neurovault upload 1167 name='some nifti' map_type='Z' modality='fMRI-BOLD' /path/to/nifti.nii.gz

id: 24369
name: some nifti
image_type: statistic_map
map_type: Z map
modality: fMRI-BOLD
modify_date: 2016-08-03T23:32:55Z
url: http://neurovault.org/images/24369/
file: http://neurovault.org/media/images/1167/motor_lips_1.nii.gz
...

@ljchang
Copy link
Collaborator

ljchang commented Aug 22, 2016

This sounds like a good plan to me. I'm also planning on adding as a method to nltools.data.Brain_Data().

@chrisgorgo
Copy link
Author

I think there are two use cases here:

  • people who develop pipelines in Bash and want to add NV upload to their code: they will appreciate flexibility such as creation of collections etc.
  • people who just want to manually upload a map from their terminal (for example while being on a cluster): they will appreciate streamlining the process.

@willstrawson
Copy link

Hi folks. Did this feature ever get implemented? Just found this issue after doing some googling.

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

4 participants