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

Ability to download Modality agnostic files without raw data #59

Open
andreifoldes opened this issue Jun 13, 2022 · 7 comments
Open

Ability to download Modality agnostic files without raw data #59

andreifoldes opened this issue Jun 13, 2022 · 7 comments

Comments

@andreifoldes
Copy link

Hello,

I don't know how common this is, but in my current usage of ezBIDS I upload my data in batches and this has the unintended consequence of having to manually stich together the "modality agnostic files" (dataset_description.json, finalized.json, participants.json, participants.tsv).

I think it would be nifty is users could optionally download only these files without "having" to download the whole BIDS folder, similar to the possibility to download the "subject mapping" json at the "finalize" stage.

@dlevitas
Copy link
Collaborator

Hi @andreifoldes

Thanks for bringing this up, I would say you're not alone in having this issue. A good example of this problem is when users upload additional data that they acquire during their data collection. In this scenario, users have to update the participants.tsv files with the new subject(s)' information when they download their BIDS-compliant data. When data is pushed to brainlife and/or OpenNeuro, this problem is actually addressed, because the agnostic files are updated based on the newly uploaded data. So a solution would be to store an ongoing dataset as a project on brainlife. If however you'd prefer to download the data back to your computer/server, we'd have to look into some kind of merge function to update the agnostic files accordingly.

@andreifoldes
Copy link
Author

Thanks I will try out brainlife for this purpose!
For cases where users insist on downloading directly back: while being able to separately download the agnostic files doesn't help with the merging issue it would decrease the load on your servers that results from downloading the whole dataset :)

@andreifoldes
Copy link
Author

When data is pushed to brainlife and/or OpenNeuro, this problem is actually addressed, because the agnostic files are updated based on the newly uploaded data.

When I tried this "Send to brainlife > Import into existing project" I notice that the importing overwrite the previous files.. am I missing something?

@dlevitas
Copy link
Collaborator

@soichih do you know why this might be?

@soichih
Copy link
Contributor

soichih commented Jun 27, 2022

@andreifoldes Can you explain what you mean by "importing overwrite the previous files". On brainlife, all objects are immutable, i.e, you can not update the object once it's created - apart from its metadata.

@andreifoldes
Copy link
Author

right right. I was referring to what @dlevitas said

When data is pushed to brainlife and/or OpenNeuro, this problem is actually addressed, because the agnostic files are updated based on the newly uploaded data. So a solution would be to store an ongoing dataset as a project on brainlife.

I was attempting this: creating a brainlife project uploading some data and then later uploading more additional data in hopes of procuring updated model agnostic files, but using the "Send to brainlife" feature on EZBids just resulted in me overwriting my previously stored data with the contents of the later batch.

@soichih
Copy link
Contributor

soichih commented Sep 8, 2022

@dlevitas reminded me that the information that's overwritten is the participants info. That is correct, the participants info is re-uploaded every time ezBIDS sends the data to brainlife.

So what we need to do is to update the brainlife's participants upload API so that it will only upsert information for subjects that are listed in the newly uploaded participants info. I will open a new ticket for this issue under brainlife/brainlife.

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

3 participants