mne-tools / mne-tools/mne-python
question about ICA : corrmap with multiple template
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 3.5k
- Forks
- 1.6k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 100
Description
Dear MNE team,
I'm using corrmap() for independent components analysis, is it possible to use more than one component as template? For exemple selecting blinks and ecg components as the same time?
For exemple:
subj_number = [0]
component_numbers = [1, 3]
template_components = icas[subj_number].get_components()[component_numbers]
fig_template, fig_detected = corrmap(icas,
template=template_components,
threshold=0.9,
label='artifacts',
ch_type='eeg')
But I get an error when doing this, corrmap seems not to support template larger than (subject_index, component_index) is there another way to do it?
Thanks
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the corrmap entry point and inspect how its template argument is validated and used, along with any existing corrmap tests. Determine the expected behavior for multiple independent components, including separate blink and ECG templates, then add coverage that defines successful handling and its result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100