Title: processBIDS for MEG · Issue #231 · automaticanalysis/automaticanalysis · GitHub
Open Graph Title: processBIDS for MEG · Issue #231 · automaticanalysis/automaticanalysis
X Title: processBIDS for MEG · Issue #231 · automaticanalysis/automaticanalysis
Description: Hi I was trying to add an option to autoidentify BIDS meg data, to support: aap.directory_conventions.rawdatadir = 'BIDSDir'; aap = aas_processBIDS(aap); My approach so far was to define megimages (i.e. meg filepaths from spm_select()) i...
Open Graph Description: Hi I was trying to add an option to autoidentify BIDS meg data, to support: aap.directory_conventions.rawdatadir = 'BIDSDir'; aap = aas_processBIDS(aap); My approach so far was to define megimages ...
X Description: Hi I was trying to add an option to autoidentify BIDS meg data, to support: aap.directory_conventions.rawdatadir = 'BIDSDir'; aap = aas_processBIDS(aap); My approach so far was to define me...
Opengraph URL: https://github.com/automaticanalysis/automaticanalysis/issues/231
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"processBIDS for MEG","articleBody":"Hi\r\n\r\nI was trying to add an option to autoidentify BIDS meg data, to support:\r\n```\r\naap.directory_conventions.rawdatadir = 'BIDSDir';\r\naap = aas_processBIDS(aap); \r\n```\r\n\r\nMy approach so far was to define `megimages` (i.e. meg filepaths from `spm_select()`) in `aa_engine/aas_processBIDS.m`: [Branch here](https://github.com/ethanknights/automaticanalysis/commit/d55358d9a5bcce80bec25e19f877de8f3e03ef01) \r\nNote this is very basic (i.e. I'm not trying to add events, skip/order series etc).\r\n\r\nBut I get the impression I am going about this the wrong way - `megimages` etc. are used as input to aap = aas_addsubject():\r\n\r\n```\r\nif toAddData\r\n aap = aas_addsubject(aap,subjname,mriname,...\r\n 'structural',structuralimages,...\r\n 'functional',functionalimages,...\r\n 'fieldmaps',fieldmapimages,...\r\n 'diffusion',diffusionimages,...\r\n 'specialseries',specialimages,...\r\n 'meg',megimages); \r\nend\r\n```\r\n\r\n`aas_addsubject.m` expects MEG data in a [1x2 cell array](https://github.com/automaticanalysis/automaticanalysis/blob/master/aa_engine/aas_addsubject.m#L155) (ie. mri and meg filenames).\r\nWhereas input to aas_addsubject.m from processBIDS.m is a larger cell array whose number of columns is determined by all potential modalities e.g.: \r\n```\r\nvarargin =\r\n 1×12 cell array\r\n Columns 1 through 4\r\n {'structural'} {0×0 cell} {'functional'} {0×0 cell}\r\n Columns 5 through 8\r\n {'fieldmaps'} {0×0 cell} {'diffusion'} {0×0 cell}\r\n Columns 9 through 12\r\n {'specialseries'} {0×0 cell} {'meg'} {1×1 cell}\r\n\t). \r\n```\r\n\r\nI guess I could make an ugly solution (e.g. if the meg filename cell ~isempty, then read those filenames for meg data) but that's not ideal.\r\n\r\nI'll look again later, but wanted to ask if anyone could steer me at all? \r\n","author":{"url":"https://github.com/ethanknights","@type":"Person","name":"ethanknights"},"datePublished":"2021-02-25T15:23:23.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/231/automaticanalysis/issues/231"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0f35916d-0674-7a2f-8e15-a9a9fc14177a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B5F4:1DD6:82060FD:A612ED0:697F1EA5 |
| html-safe-nonce | 1a8827c18551ee9dd0edf7382e4cfb2d76f5ebfa3177694f520d2b10ab1aabc4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNUY0OjFERDY6ODIwNjBGRDpBNjEyRUQwOjY5N0YxRUE1IiwidmlzaXRvcl9pZCI6IjEwOTIwNjA5NTY1MDQwMzkwNzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0b5de16d44f81b4ead324cb680e7afce8d85747de0ae5eea90a688c6e30040fa |
| hovercard-subject-tag | issue:816537830 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/automaticanalysis/automaticanalysis/231/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0b29542fc3c3a155e3393673223ab07dd3f88569649a042d2a8e3fa68babe75b/automaticanalysis/automaticanalysis/issues/231 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0b29542fc3c3a155e3393673223ab07dd3f88569649a042d2a8e3fa68babe75b/automaticanalysis/automaticanalysis/issues/231 |
| og:image:alt | Hi I was trying to add an option to autoidentify BIDS meg data, to support: aap.directory_conventions.rawdatadir = 'BIDSDir'; aap = aas_processBIDS(aap); My approach so far was to define megimages ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ethanknights |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/automaticanalysis/automaticanalysis git https://github.com/automaticanalysis/automaticanalysis.git |
| octolytics-dimension-user_id | 44203535 |
| octolytics-dimension-user_login | automaticanalysis |
| octolytics-dimension-repository_id | 3820833 |
| octolytics-dimension-repository_nwo | automaticanalysis/automaticanalysis |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3820833 |
| octolytics-dimension-repository_network_root_nwo | automaticanalysis/automaticanalysis |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width