Skip to content

Is there a way to load only apartial portion of a given nwb file from cloud storage? #56

Answered by CodyCBakerPhD
GMCadode asked this question in Q&A
Discussion options

You must be logged in to vote

Hi there!

This is indeed very possible with NWB files

See our streaming tutorial using fsspec on an s3_url here: https://pynwb.readthedocs.io/en/stable/tutorials/advanced_io/streaming.html#streaming-method-1-fsspec

Though fsspec in principle ought to allow you to use any other type of cloud storage, not just S3 (which we choose since that is how the DANDI archive stores NWB files)

fsspec is also especially good with caching, which saves those 'small parts' of the 'big remote file' file to your local system so that you don't need to re-download them every time you want to use them again (read more about all the various options here: https://filesystem-spec.readthedocs.io/en/latest/features…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@GMCadode
Comment options

Answer selected by GMCadode
Comment options

You must be logged in to vote
3 replies
@oruebel
Comment options

@bjhardcastle
Comment options

@oruebel
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants