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

Read multiple boxy files #17

Open
kuziekj opened this issue Apr 27, 2020 · 5 comments
Open

Read multiple boxy files #17

kuziekj opened this issue Apr 27, 2020 · 5 comments

Comments

@kuziekj
Copy link
Collaborator

kuziekj commented Apr 27, 2020

Right now, the boxy2mne function will only read a single boxy data file. However, participants may have multiple files associated with an experiment and boxy2mne should be able to read all relevant files. Naming scheme of files may be as follows (from p-pod manual):

"SS+subj+cf.nnn where SS is the "session label", subj is the (zero padded 3 or 4 digit) subject number, cf is the montage label and nnn is the 3 digit padded block number."

So, for example, a participant may have 4 files for an experiment (ar0738a.001, ar0738a.002, ar0738b.001, ar0738b.002). boxy2mne should be able to read all the participant files, along with a single .mtg and .elp file (since those contain channel information for all montages and blocks), and return a single raw object containing all the relevant data, info, channels, etc. for that participant.

@kylemath
Copy link
Owner

kylemath commented Apr 27, 2020

remember we are trying to match the nirx.py function - https://github.com/kylemath/pyoptical/blob/master/nirx.py
so I think we want this function to load in single files, and then run it over and over and append the results?
No?

@kuziekj
Copy link
Collaborator Author

kuziekj commented Apr 27, 2020

Yeah running the function for each file would be the easiest way, so long as we can keep it in a format mne likes. We also need to make sure we can easily identify the data once it's all appended. Probably best to do that by editing channel names, or adding fields to the raw object (using info.update)

Either way, the boxy2mne function will need to know where to look in the .mtg when loading channel info since channels from all blocks (and montages?) are there. Unless we want to create separate .mtg files for each block and montage combination?

@kylemath
Copy link
Owner

kylemath commented Apr 27, 2020 via email

@kuziekj
Copy link
Collaborator Author

kuziekj commented Apr 27, 2020

yeah I think that file setup would be best (.elp for each participant and a .mtg file for each data file).

boxy2mne should already be able to handle such a setup.

do we want a separate function to combine the raw objects for each participant then?

@kylemath
Copy link
Owner

kylemath commented Apr 27, 2020 via email

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

2 participants