Skip to content

ENH: Add montage for Artinis OctaMon and Brite23 #9093

Closed

Description

@HanBnrd

Describe the new feature or enhancement

We would like to add a default montage for the Artinis OctaMon fNIRS device. This would enable to have spacial locations useful for some pre-processing functions (such as the modified Beer Lamber law) and having visualization on a brain map.

octamon

Describe your proposed implementation

Adding a file in mne/channels/data/montages/, modifying set_montage() (in Raw but also other data types) as and probably the loading functions.

Additional comments

Not sure what file format is best to use (csd/sfp/txt/elc), would you have recommendations?

Activity

  1. HanBnrd commented on Mar 16, 2021

    @HanBnrd
    Author

    We discussed it with @rob-luke and I would be happy to work on a PR for this if you are okay with it.

  2. agramfort commented on Mar 16, 2021

    @agramfort
    SponsorMember
  3. HanBnrd commented on Mar 16, 2021

    @HanBnrd
    Author

    I don't think there is a standard montage file with 3D coordinates, will try to see if I can adapt the montage template the Artinis software has.

  4. agramfort commented on Mar 16, 2021

    @agramfort
    SponsorMember
  5. changed the title [-]ENH: Add montage for Artinis OctaMon[/-] [+]ENH: Add montage for Artinis OctaMon and Brite23[/+] on Mar 16, 2021
  6. rob-luke commented on Mar 16, 2021

    @rob-luke
    Member

    @HanBnrd has received the locations in MNI ICBM 152 space. The file format provided by the vendor looks custom. Rather than writing another custom file format reader, I suggest we manually convert these to one of the existing formats perhaps sfp. Would this be acceptable @agramfort @drammock @larsoner

  7. rob-luke commented on Mar 17, 2021

    @rob-luke
    Member

    We will need to edit:

    standard_montage_look_up_table = {

    def make_standard_montage(kind, head_size=HEAD_SIZE_DEFAULT):
    """Read a generic (built-in) montage.
    Parameters
    ----------
    kind : str
    The name of the montage to use. See notes for valid kinds.
    head_size : float
    The head size (radius, in meters) to use for spherical montages.
    Defaults to 95mm.
    Returns
    -------
    montage : instance of DigMontage
    The montage.
    See Also
    --------
    DigMontage
    make_dig_montage
    read_custom_montage
    Notes
    -----
    Individualized (digitized) electrode positions should be read in using
    :func:`read_dig_captrak`, :func:`read_dig_dat`, :func:`read_dig_egi`,
    :func:`read_dig_fif`, :func:`read_dig_polhemus_isotrak`,
    :func:`read_dig_hpts` or made with :func:`make_dig_montage`.
    Valid ``kind`` arguments are:
    =================== =====================================================
    Kind Description
    =================== =====================================================
    standard_1005 Electrodes are named and positioned according to the
    international 10-05 system (343+3 locations)
    standard_1020 Electrodes are named and positioned according to the
    international 10-20 system (94+3 locations)
    standard_alphabetic Electrodes are named with LETTER-NUMBER combinations
    (A1, B2, F4, ...) (65+3 locations)
    standard_postfixed Electrodes are named according to the international
    10-20 system using postfixes for intermediate
    positions (100+3 locations)
    standard_prefixed Electrodes are named according to the international
    10-20 system using prefixes for intermediate
    positions (74+3 locations)
    standard_primed Electrodes are named according to the international
    10-20 system using prime marks (' and '') for
    intermediate positions (100+3 locations)
    biosemi16 BioSemi cap with 16 electrodes (16+3 locations)
    biosemi32 BioSemi cap with 32 electrodes (32+3 locations)
    biosemi64 BioSemi cap with 64 electrodes (64+3 locations)
    biosemi128 BioSemi cap with 128 electrodes (128+3 locations)
    biosemi160 BioSemi cap with 160 electrodes (160+3 locations)
    biosemi256 BioSemi cap with 256 electrodes (256+3 locations)
    easycap-M1 EasyCap with 10-05 electrode names (74 locations)
    easycap-M10 EasyCap with numbered electrodes (61 locations)
    EGI_256 Geodesic Sensor Net (256 locations)
    GSN-HydroCel-32 HydroCel Geodesic Sensor Net and Cz (33+3 locations)
    GSN-HydroCel-64_1.0 HydroCel Geodesic Sensor Net (64+3 locations)
    GSN-HydroCel-65_1.0 HydroCel Geodesic Sensor Net and Cz (65+3 locations)
    GSN-HydroCel-128 HydroCel Geodesic Sensor Net (128+3 locations)
    GSN-HydroCel-129 HydroCel Geodesic Sensor Net and Cz (129+3 locations)
    GSN-HydroCel-256 HydroCel Geodesic Sensor Net (256+3 locations)
    GSN-HydroCel-257 HydroCel Geodesic Sensor Net and Cz (257+3 locations)
    mgh60 The (older) 60-channel cap used at
    MGH (60+3 locations)
    mgh70 The (newer) 70-channel BrainVision cap used at
    MGH (70+3 locations)
    =================== =====================================================
    .. versionadded:: 0.19.0
    """
    from ._standard_montage_utils import standard_montage_look_up_table
    _check_option('kind', kind, _BUILT_IN_MONTAGES)
    return standard_montage_look_up_table[kind](head_size=head_size)

  8. larsoner commented on Mar 17, 2021

    @larsoner
    Member

    Yes that sounds reasonable. If the format is not complicated (e.g., some text file that can be easily parsed by eye) I would just add a quick reader for it rather than convert.

  9. agramfort commented on Mar 17, 2021

    @agramfort
    SponsorMember
  10. HanBnrd commented on Mar 17, 2021

    @HanBnrd
    Author

    If the format is not complicated (e.g., some text file that can be easily parsed by eye) I would just add a quick reader for it rather than convert.

    We were planning to use the elc structure as the original files are quite similar, even though we have optodes and not electrodes:

    Would that be okay?

  11. agramfort commented on Mar 17, 2021

    @agramfort
    SponsorMember
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions