{"action":"created","issue":{"url":"https://api.github.com/repos/mne-tools/mne-python/issues/3191","repository_url":"https://api.github.com/repos/mne-tools/mne-python","labels_url":"https://api.github.com/repos/mne-tools/mne-python/issues/3191/labels{/name}","comments_url":"https://api.github.com/repos/mne-tools/mne-python/issues/3191/comments","events_url":"https://api.github.com/repos/mne-tools/mne-python/issues/3191/events","html_url":"https://github.com/mne-tools/mne-python/pull/3191","id":151750801,"number":3191,"title":"[MRG] Split labels into contiguous regions","user":{"login":"wronk","id":5296721,"avatar_url":"https://avatars.githubusercontent.com/u/5296721?v=3","gravatar_id":"","url":"https://api.github.com/users/wronk","html_url":"https://github.com/wronk","followers_url":"https://api.github.com/users/wronk/followers","following_url":"https://api.github.com/users/wronk/following{/other_user}","gists_url":"https://api.github.com/users/wronk/gists{/gist_id}","starred_url":"https://api.github.com/users/wronk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wronk/subscriptions","organizations_url":"https://api.github.com/users/wronk/orgs","repos_url":"https://api.github.com/users/wronk/repos","events_url":"https://api.github.com/users/wronk/events{/privacy}","received_events_url":"https://api.github.com/users/wronk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2016-04-28T21:45:47Z","updated_at":"2016-04-29T19:23:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mne-tools/mne-python/pulls/3191","html_url":"https://github.com/mne-tools/mne-python/pull/3191","diff_url":"https://github.com/mne-tools/mne-python/pull/3191.diff","patch_url":"https://github.com/mne-tools/mne-python/pull/3191.patch"},"body":"This adds functionality to take a label with non-contiguous regions and split it into its components. \r\n\r\nExample use case: resting state network parcellations [here](https://surfer.nmr.mgh.harvard.edu/fswiki/CorticalParcellation_Yeo2011). The individual networks contain multiple components, and they need to be disconnected to more easily compute connectivity between the subparts.\r\n\r\n- [x] implement ability to split labels\r\n- [x] add helper function to reuse with existing `split_label` function\r\n- [x] add tests\r\n- [x] figure out how to handle isolated dipoles that end up as size 1 labels"},"comment":{"url":"https://api.github.com/repos/mne-tools/mne-python/issues/comments/215854235","html_url":"https://github.com/mne-tools/mne-python/pull/3191#issuecomment-215854235","issue_url":"https://api.github.com/repos/mne-tools/mne-python/issues/3191","id":215854235,"user":{"login":"Eric89GXL","id":2365790,"avatar_url":"https://avatars.githubusercontent.com/u/2365790?v=3","gravatar_id":"","url":"https://api.github.com/users/Eric89GXL","html_url":"https://github.com/Eric89GXL","followers_url":"https://api.github.com/users/Eric89GXL/followers","following_url":"https://api.github.com/users/Eric89GXL/following{/other_user}","gists_url":"https://api.github.com/users/Eric89GXL/gists{/gist_id}","starred_url":"https://api.github.com/users/Eric89GXL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eric89GXL/subscriptions","organizations_url":"https://api.github.com/users/Eric89GXL/orgs","repos_url":"https://api.github.com/users/Eric89GXL/repos","events_url":"https://api.github.com/users/Eric89GXL/events{/privacy}","received_events_url":"https://api.github.com/users/Eric89GXL/received_events","type":"User","site_admin":false},"created_at":"2016-04-29T19:23:06Z","updated_at":"2016-04-29T19:23:06Z","body":"Yeah, it's probably Cython and definitely better tested than home-made code. But check to see if it's slower"}}