{"action":"created","issue":{"url":"https://api.github.com/repos/nilearn/nilearn/issues/1192","repository_url":"https://api.github.com/repos/nilearn/nilearn","labels_url":"https://api.github.com/repos/nilearn/nilearn/issues/1192/labels{/name}","comments_url":"https://api.github.com/repos/nilearn/nilearn/issues/1192/comments","events_url":"https://api.github.com/repos/nilearn/nilearn/issues/1192/events","html_url":"https://github.com/nilearn/nilearn/issues/1192","id":168963169,"number":1192,"title":"extracting voxels timeseries within a sphere and using inverse_transform with NiftiSpheresMasker","user":{"login":"salma1601","id":7080143,"avatar_url":"https://avatars.githubusercontent.com/u/7080143?v=3","gravatar_id":"","url":"https://api.github.com/users/salma1601","html_url":"https://github.com/salma1601","followers_url":"https://api.github.com/users/salma1601/followers","following_url":"https://api.github.com/users/salma1601/following{/other_user}","gists_url":"https://api.github.com/users/salma1601/gists{/gist_id}","starred_url":"https://api.github.com/users/salma1601/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/salma1601/subscriptions","organizations_url":"https://api.github.com/users/salma1601/orgs","repos_url":"https://api.github.com/users/salma1601/repos","events_url":"https://api.github.com/users/salma1601/events{/privacy}","received_events_url":"https://api.github.com/users/salma1601/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-08-02T19:05:14Z","updated_at":"2016-08-03T12:09:16Z","closed_at":null,"body":"Is there an appropriate way to extract voxels time series within spheres ? I am using  `iter_signals_from_spheres`\r\n```Python\r\nimport nibabel\r\nfrom nilearn import datasets, input_data\r\nfrom nilearn.input_data.nifti_spheres_masker import _iter_signals_from_spheres\r\nadhd = datasets.fetch_adhd(n_subjects=1)\r\nfunc_filename = adhd.func[0]\r\nseeds_masker = input_data.NiftiSpheresMasker([(-6, 50, -1)], radius=6.)\r\nseeds_masker.fit()\r\nsphere_timeseries = _iter_signals_from_spheres(\r\n    seeds_masker.seeds_, nibabel.load(func_filename),\r\n    seeds_masker.radius,\r\n    seeds_masker.allow_overlap).next()\r\n```\r\nI also want to go from array to image using `inverse_transform` but I got an error\r\n```Python\r\nimage = seeds_masker.inverse_transform(sphere_timeseries.T)\r\n```\r\n>'NiftiSpheresMasker' object has no attribute 'mask_img_'"},"comment":{"url":"https://api.github.com/repos/nilearn/nilearn/issues/comments/237219557","html_url":"https://github.com/nilearn/nilearn/issues/1192#issuecomment-237219557","issue_url":"https://api.github.com/repos/nilearn/nilearn/issues/1192","id":237219557,"user":{"login":"AlexandreAbraham","id":1647301,"avatar_url":"https://avatars.githubusercontent.com/u/1647301?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexandreAbraham","html_url":"https://github.com/AlexandreAbraham","followers_url":"https://api.github.com/users/AlexandreAbraham/followers","following_url":"https://api.github.com/users/AlexandreAbraham/following{/other_user}","gists_url":"https://api.github.com/users/AlexandreAbraham/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexandreAbraham/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexandreAbraham/subscriptions","organizations_url":"https://api.github.com/users/AlexandreAbraham/orgs","repos_url":"https://api.github.com/users/AlexandreAbraham/repos","events_url":"https://api.github.com/users/AlexandreAbraham/events{/privacy}","received_events_url":"https://api.github.com/users/AlexandreAbraham/received_events","type":"User","site_admin":false},"created_at":"2016-08-03T12:09:16Z","updated_at":"2016-08-03T12:09:16Z","body":"> I wanted it for a connectivity example I plan to PR to demo the impact of changing the radius in spheric ROIs.\r\n\r\nIf you have enough seeds, It would be interesting to use them to cluster the whole brain volume (so end up with non-spherical regions) and compare that to spheres."}}
{"actor":{"display_login":"AlexandreAbraham"}}