Skip to content
This repository has been archived by the owner on Jun 14, 2019. It is now read-only.

Dealing with non binary files #63

Closed
yger opened this issue Sep 19, 2016 · 6 comments
Closed

Dealing with non binary files #63

yger opened this issue Sep 19, 2016 · 6 comments
Labels

Comments

@yger
Copy link
Collaborator

yger commented Sep 19, 2016

For next release of SpyKING CIRCUS, we are planning to allow users to keep their data as they are, reading/writing directly to some classical file formats (openephys, multi-channels system, NWB, ...). This is because for large scale recordings, data files can be very large, and we would like to avoid an export to raw binary, as this can take time and disk space. The problem is that phy is currently only able to deal with raw binary files, am I right? Or I guess because of kwik format, any HDF5-like structure could easily be supported? How can we design wrappers to tell phy how to properly read chunks of data, then?

@rossant
Copy link
Member

rossant commented Sep 19, 2016

That should be doable. We might not have the resources to implement all of these formats ourselves, but we'd be happy to help contributors. I'm planning to update that part of the code in the coming weeks to make the process even easier.

@rossant rossant added the I/O label Sep 19, 2016
@yger
Copy link
Collaborator Author

yger commented Sep 19, 2016

Great, I would be happy to contribute, so let me know when you start updating your code. I'm currently doing those wrappers myself for SpyKING CIRCUS, so I guess I could re-use some snippet of codes. At the end, phy will simply need to have specified open/close/get_data methods given file formats, and everything could work the same

@rossant
Copy link
Member

rossant commented Sep 19, 2016

Okay, let me know where I can see the code of your wrappers in SpyKING CIRCUS so that I make sure it will be easily portable into phy.

@yger
Copy link
Collaborator Author

yger commented Sep 19, 2016

Ok, this is work in progress, but this will be in the branch 0.5, folder
circus/datafiles/

The generic file type will be defined in datafile.py, with some key methods
(but for phy, I guess only get_snippet is relevant, to extract waveforms or
time slices), and then I'm now starting various wrappers for datafiles. The
code does not yet look very nice, but this is working, and SpyKING CIRCUS
is now file-type agnostic, such as phy should be

Thanks

2016-09-19 11:22 GMT+02:00 Cyrille Rossant [email protected]:

Okay, let me know where I can see the code of your wrappers in SpyKING
CIRCUS so that I make sure it will be easily portable into phy.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#63 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABmE_4-1HTCZsGeThJ0EVbH4CFog5ddqks5qrlRvgaJpZM4KARjK
.

@WaveformDai
Copy link

Any new progress on reading raw data instead of binary file? It will definitely help save lots of disk space!
Thank you for your wonderful tools!

@rossant
Copy link
Member

rossant commented Jun 14, 2019

superseded by cortex-lab/phylib#5

@rossant rossant closed this as completed Jun 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants