Ejemplo n.º 1
0
    def get_metadata_schema(self):
        metadata_schema = super().get_metadata_schema()

        # Ecephys metadata schema
        metadata_schema['properties']['Ecephys'] = get_base_schema()
        metadata_schema['properties']['Ecephys']['properties'] = dict(
            Device=get_schema_from_hdmf_class(Device),
            ElectricalSeries=get_schema_from_hdmf_class(ElectricalSeries),
        )
        return metadata_schema
Ejemplo n.º 2
0
    def get_metadata_schema(self):
        metadata_schema = super().get_metadata_schema()

        # Ophys metadata schema
        metadata_schema['properties']['Ophys'] = get_base_schema()
        metadata_schema['properties']['Ophys']['required'] = ['Device', 'FRET']
        metadata_schema['properties']['Ophys']['properties'] = dict(
            Device=get_schema_from_hdmf_class(Device),
            FRET=get_schema_from_hdmf_class(FRET)
        )
        return metadata_schema
Ejemplo n.º 3
0
    def get_metadata_schema(self):
        metadata_schema = super().get_metadata_schema()

        # Ogen metadata schema
        metadata_schema['properties']['Ogen'] = get_base_schema()
        metadata_schema['properties']['Ogen']['properties'] = dict(
            Device=get_schema_from_hdmf_class(Device),
            OptogeneticStimulusSite=get_schema_from_hdmf_class(
                OptogeneticStimulusSite),
            OptogeneticSeries=get_schema_from_hdmf_class(OptogeneticSeries))
        return metadata_schema
    def get_metadata_schema(self):
        metadata_schema = get_base_schema()

        # ideally most of this be automatically determined from pynwb docvals
        metadata_schema['properties'][
            'TimeSeries'] = get_schema_from_hdmf_class(TimeSeries)
        metadata_schema['properties'][
            'DecompositionSeries'] = get_schema_from_hdmf_class(
                DecompositionSeries)
        required_fields = ['TimeSeries', 'DecompositionSeries']
        for field in required_fields:
            metadata_schema['required'].append(field)

        return metadata_schema
 def get_metadata_schema(self):
     """Compile metadata schema for the ImageExtractor."""
     metadata_schema = super().get_metadata_schema()
     metadata_schema['required'] = ['Ophys']
     # Initiate Ophys metadata
     metadata_schema['properties']['Ophys'] = get_base_schema()
     metadata_schema['properties']['Ophys']['properties'] = dict(
         Device=get_schema_from_hdmf_class(Device),
         ImagingPlane=get_schema_from_hdmf_class(ImagingPlane),
         TwoPhotonSeries=get_schema_from_hdmf_class(TwoPhotonSeries))
     metadata_schema['properties']['Ophys']['required'] = \
         ['Device', 'ImagingPlane', 'TwoPhotonSeries']
     fill_defaults(metadata_schema, self.get_metadata())
     return metadata_schema
Ejemplo n.º 6
0
    def get_metadata_schema(self):
        metadata_schema = super().get_metadata_schema()
        metadata_schema['properties']['Ophys'] = get_base_schema(tag='Ophys')
        metadata_schema['properties']['Ophys']['properties'][
            'Device'] = get_schema_from_hdmf_class(pynwb.device.Device)
        metadata_schema['properties']['Ophys']['properties'][
            'ImagingPlane'] = get_schema_from_hdmf_class(
                pynwb.ophys.ImagingPlane)
        metadata_schema['properties']['Ophys']['properties'][
            'TwoPhotonSeries_green'] = get_schema_from_hdmf_class(
                pynwb.ophys.TwoPhotonSeries)
        metadata_schema['properties']['Ophys']['properties'][
            'Fluorescence'] = get_schema_from_hdmf_class(
                pynwb.ophys.Fluorescence)

        return metadata_schema
Ejemplo n.º 7
0
 def get_metadata_schema(self):
     metadata_schema = super().get_metadata_schema()
     metadata_schema['properties']['Ecephys'] = get_base_schema(
         tag='Ecephys')
     metadata_schema['properties']['Ecephys']['properties'][
         'Device'] = get_schema_from_hdmf_class(pynwb.device.Device)
     metadata_schema['properties']['Ecephys']['properties'][
         'ElectrodeGroup'] = get_schema_from_hdmf_class(
             pynwb.ecephys.ElectrodeGroup)
     metadata_schema['properties']['Ecephys']['properties'][
         'ElectricalSeries_raw'] = get_schema_from_hdmf_class(
             pynwb.ecephys.ElectricalSeries)
     metadata_schema['properties']['Ecephys']['properties'][
         'ElectricalSeries_processed'] = get_schema_from_hdmf_class(
             pynwb.ecephys.ElectricalSeries)
     return metadata_schema
    def get_metadata_schema(self):
        """Compile metadata schema for the RecordingExtractor."""
        metadata_schema = super().get_metadata_schema()

        # Initiate Ecephys metadata
        metadata_schema['properties']['Ecephys'] = get_base_schema(
            tag='Ecephys')
        metadata_schema['properties']['Ecephys']['properties'] = dict(
            Device=get_schema_from_hdmf_class(Device),
            ElectrodeGroup=get_schema_from_hdmf_class(ElectrodeGroup),
            ElectricalSeries=get_schema_from_hdmf_class(ElectricalSeries))
        metadata_schema['properties']['Ecephys']['required'] = [
            'Device', 'ElectrodeGroup', 'ElectricalSeries'
        ]
        fill_defaults(metadata_schema, self.get_metadata())
        return metadata_schema
Ejemplo n.º 9
0
 def get_metadata_schema(self):
     metadata_schema = NWBConverter.get_metadata_schema()
     metadata_schema['required'].append('behavior', 'stimulus')
     metadata_schema['properties']['behavior'] = get_base_schema()
     metadata_schema['properties']['stimulus'] = get_base_schema()
     metadata_schema['properties']['behavior']['properties'] = dict(
         BehavioralTimeSeries=get_schema_from_hdmf_class(
             BehavioralTimeSeries), )
    def get_metadata_schema(self):
        metadata_schema = get_base_schema(
            required=['SpikeEventSeries'],
            properties=dict(
                SpikeEventSeries=get_schema_from_hdmf_class(SpikeEventSeries)))
        # fill_defaults(metadata_schema, self.get_metadata())

        return metadata_schema