-
Notifications
You must be signed in to change notification settings - Fork 171
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
file formats for digitization points in BIDS-MEG specification #20
Comments
+1 for specifying a limited number of well-described file formats. Allowing any file format makes it impossible to write software compatible with BIDS inputs. |
+1 but we need input from many people to get a representative list of well-described formats. I have questions about such formats out there on several google doc comments but so far - no responses :-) |
[no solution here, just background info] Many labs are combining the primary measurement device (the MEG system) with secondary measurement devices (such as the 3D digitizer) from another company. The number of hardware companies is still relatively limited, but the api of the (OEM) hardware is (reasonably) open, resulting in other companies making products that include hard+software, and hence a file format. Most formats I am aware of are ascii with some form of tabular content, but that is not sufficiently restrictive to implement a parser. The issue not only applies to MEG headshapes, but also to EEG electrode positions. |
Maybe it will be easier to come to a conclusion if we split the issue into
two: raw data and headshapes.
…On Tue, Oct 2, 2018, 4:02 AM Robert Oostenveld ***@***.***> wrote:
[no solution here, just background info]
Many labs are combining the primary measurement device (the MEG system)
with secondary measurement devices (such as the 3D digitizer) from another
company. The number of hardware companies is still relatively limited, but
the api of the (OEM) hardware is (reasonably) open, resulting in other
companies making products that include hard+software, and hence a file
format. Most formats I am aware of are ascii with some form of tabular
content, but that is not sufficiently restrictive to implement a parser.
The issue not only applies to MEG headshapes, but also to EEG electrode
positions.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#20 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAOkp0fClZfuG_AZCN_MmCbeMi6vx8t2ks5ug0fhgaJpZM4XDU2I>
.
|
I agree. I think we can have a stronger assertion for the data format, and we should likely recommend the headshape. |
So, is the consensus to have one format or many but limited? In either case, this would entail conversion on the end of the user -- potentially harmonizing the coordinate system and the units. I do not know of any tools that can currently convert from one headshape format to the other (unless @teonbrooks already knows something). That is not to say it cannot be created :) |
I would say that headshapes recorded with the original MEG system manufacturer's software (i.e. limited set) should be allowed, whereas others (i.e. potentially unlimited set) should not be allowed. I only know the case for Elekta (stored in the fif file) and CTF (stored in a *.pos file). I checked the present bids-examples and all seem to comply, except for https://github.com/bids-standard/bids-examples/blob/master/ds000117/sub-01/ses-meg/meg/sub-01_ses-meg_headshape.pos which is a pos file that accompanies an elekta fif dataset. It is not in CTF pos format, so I don't know which software created the file. |
+1 ... are the MEG system manufacturers' file formats well enough reported, so that other file formats can be reformatted to comply with these new BIDS requirements? If not, can we somehow put documentations out there? On the same note but regarding EEG: And then we do not accept headshape files for EEG? Currently, they are still in our BEP, see here. for iEEG, headshape files will not be included, as @dorahermes told me. |
okay, so here is what I found on carefully reading the spec + associated links. Does this align with what people expect (feel free to edit or comment)? To recall, the original reason we had this issue was that @monkeyman192 found |
For this issue, I think we should create a separate issue and pr for hardware data format and lead the discussion there. @jasmainak, I would suggest that this issue be renamed to digitization data. for Oftentimes it relies on the Polhemus hardware for head scanning. For the KIT systems at NYU, the protocol is to export the data from Polhemus as txt files: one with the headshape points in the native device space (in MNE, it's referred to headshape/hsp), and also the coregistration electrode positions in native device space (in MNE, electrode/elp). In the MNE pipeline, we have a head-centric analysis flow: the head space is the common space that transforms at on. that is, we generate a for the MNE pipeline to work from sensor to source space on non-neuromag (FIF) systems, we need to include external files for the following: We need to decide how to best support pipelines where the data files are not bundled as a monolithic file. this is tough because this requires knowing 1) if the point files is in its native space or another space 2) what unit is in (mm vs m). I think this could be handled in a sidecar file but we need some limit on the file formats themselves. are they all tsv or csv? we can't support every niche format. |
okay done
@teonbrooks this seems to be already specified by |
@robertoostenveld I don't know what generated the .pos from Wakeman/Henson Elekta dataset. I asked them. On the Brainstorm side, we use the format that the Polhemus software used to generate, with the same .pos extension. Example: https://github.com/bids-standard/bids-examples/blob/master/ds000246/sub-0001/meg/sub-0001_headshape.pos This file format allows the distinction between named digitized points (electrodes), unnamed digitized points (head shape) and other typical landmarks (anatomical landmarks, HPI coils, with multiple repetitions for higher precision): This is the file format used by the Brainstorm digitizer (used by some centers as a standalone Polhemus driver - no need to use Brainstorm for the analysis): On a standard CTF study (at the MNI and possibly in some other places), these .pos files are placed in the .ds folder and read as part of the CTF dataset. They include both the anatomical landmarks (Nasion,Left,Right) and the head positioning coils (NAS,LPA,RPA) so that we can mark the anatomical landmarks instead of the coils in the MRI for the registration. |
About the Wakeman/Henson dataset (https://github.com/bids-standard/bids-examples/blob/master/ds000117/sub-01/ses-meg/meg/sub-01_ses-meg_headshape.pos), here is Rik's answer:
The .pos files from ds000117 are coming from in-house code, not from a proper academic or commercial software. Therefore, you can ignore the file extension. |
@robertoostenveld @ftadel what would be great is to have a table which specifies for each manufacturer what is the preferred file format for storing the digitized points (named and unnamed) along with a link to the specification of this file format. |
MEG-specific:
General purpose digitizers than may be used with MEG:
There are other formats used by other popular EEG manufacturers, but maybe we don't want to discuss this here. |
FWIW, I dislike seeing a loose ".txt" in the filenames with data. |
There are two issues regarding file formats in the BIDS-MEG specification:
Relevant discussion thread: https://github.com/bids-standard/bids-validator/pull/585
cc @chrisfilo @teonbrooks @sappelhoff @robertoostenveld @monkeyman192
Thoughts welcome!
The text was updated successfully, but these errors were encountered: