Skip to content
 
Brain Pipe brain_pipe.preprocessing.brain.link.BIDSStimulusInfoExtractor
Type to start searching
    Brain Pipe
    • Brain Pipe
    • API Reference
    • brain_pipe
    • brain_pipe.preprocessing
    • brain_pipe.preprocessing.brain
    • brain_pipe.preprocessing.brain.link
    Brain Pipe
    • Overview
      • Concept
      • Convenient classes
      • Additional considerations
      • Writing your own PipelineStep
      • Small Example
    • Defining and running Pipelines through configuration files
      • Running pipelines from configuration files
      • Background
      • Typical structure for SimpleDictParsers
      • Specifying the parser
    • Command Line Interface
      • API
    • API Reference
      • brain_pipe
    • BIDSStimulusInfoExtractor
      • BIDSStimulusInfoExtractor
        • __init__()
        • read_events()
    • Show Source

    brain_pipe.preprocessing.brain.link.BIDSStimulusInfoExtractor¶

    class BIDSStimulusInfoExtractor(brain_path_key: str = 'data_path', event_info_key: str = 'event_info')¶

    Bases: object

    Extract BIDS compliant stimulus information from an events.tsv file.

    __init__(brain_path_key: str = 'data_path', event_info_key: str = 'event_info')¶

    Create a new BIDSStimulusInfoExtractor instance.

    Parameters:
    • brain_path_key (str) – The key of the brain data path in the data dict.

    • event_info_key (str) – The key store the event information in the data dict.

    Methods

    __init__([brain_path_key, event_info_key])

    Create a new BIDSStimulusInfoExtractor instance.

    read_events(events_path)

    Read events from a BIDS compliant events.tsv file.

    read_events(events_path: str)¶

    Read events from a BIDS compliant events.tsv file.

    Parameters:

    events_path (str) – The path to the events.tsv file.

    Returns:

    The extracted event information. Each dict contains the information of one row in the events.tsv file

    Return type:

    Sequence[Dict[str, Any]]

    "Previous" brain_pipe.preprocessing.brain.link.default_multiprocessing_key_fn
    "Next" brain_pipe.preprocessing.brain.link.BasenameComparisonFn
    © Copyright 2023, Bernd Accou, ExpORL.
    Created using Sphinx 7.3.7. and Material for Sphinx