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

ENH add data loader for camcan dataset + add event description into info #102

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

CedricAllain
Copy link
Contributor

@CedricAllain CedricAllain commented Oct 26, 2022

  1. alphacsc/datasets/camcan.py: new file, add a data loader function with default pre-processing parameters
  2. alphacsc/datasets/mne_data.py: add an event description dictionary in info['event_info']

@CedricAllain CedricAllain changed the title add data loader for camcan dataset + add event description into info ENH add data loader for camcan dataset + add event description into info Oct 26, 2022
Copy link
Collaborator

@agramfort agramfort left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to discuss where to put this code as alphacsc is probably not a great fit

│ └── ...
└── camcan-mne
├── Cam-CAN_sss_cal.dat # calibration file
└── Cam-CAN_ct_sparse.fif # cross_talk file
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is specific to our setup at Inria

from alphacsc.utils.signal import split_signal


DATA_DIR = "/storage/store/data/"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alphacsc is meant to be used by anyone not just us at Inria

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried to mimic and reproduced how paths were handled in alphacsc/datasets/hcp.py



DATA_DIR = "/storage/store/data/"
PARTICIPANTS_FILE = join(DATA_DIR, "camcan/BIDSsep/smt/participants.tsv")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eventually the BIDSsep folder could be referred to as bids_root

Comment on lines 72 to 74
event_des = {'auditory/left': 1, 'auditory/right': 2,
'visual/left': 3, 'visual/right': 4,
'smiley': 5, 'buttonpress': 32}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is an event_id for mne

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated event_id to be this dict.

@CedricAllain
Copy link
Contributor Author

CedricAllain commented Oct 28, 2022

We need to discuss where to put this code as alphacsc is probably not a great fit

Indeed, maybe it is not really appropriate.
I did this as there is a data loader of HCP in datasets/hcp.py.

@codecov-commenter
Copy link

codecov-commenter commented Oct 28, 2022

Codecov Report

Merging #102 (16592c5) into master (1e8cf32) will increase coverage by 0.05%.
The diff coverage is n/a.

❗ Current head 16592c5 differs from pull request most recent head e6ebbd0. Consider uploading reports for the commit e6ebbd0 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #102      +/-   ##
==========================================
+ Coverage   82.09%   82.14%   +0.05%     
==========================================
  Files          22       22              
  Lines        2166     2172       +6     
==========================================
+ Hits         1778     1784       +6     
  Misses        388      388              

@agramfort
Copy link
Collaborator

to me the hcp loader should not be present here or at least not using hard coded path. There is no chance this hcp code is working for anyone.

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

Successfully merging this pull request may close these issues.

None yet

3 participants