def _save_data_from_raw_ms_file(self):
        ms_file_type_config = SMConfig.get_ms_file_handler(self._wd_manager.local_dir.ms_file_path)
        acq_geometry_factory_module = ms_file_type_config['acq_geometry_factory']
        acq_geometry_factory = getattr(import_module(acq_geometry_factory_module['path']),
                                                acq_geometry_factory_module['name'])

        acq_geometry = acq_geometry_factory(self._wd_manager.local_dir.ms_file_path).create()
        self._ds.save_acq_geometry(self._db, acq_geometry)

        self._ds.save_ion_img_storage_type(self._db, ms_file_type_config['img_storage_type'])
Exemple #2
0
    def _save_data_from_raw_ms_file(self):
        ms_file_type_config = SMConfig.get_ms_file_handler(self._wd_manager.local_dir.ms_file_path)
        acq_geometry_factory_module = ms_file_type_config['acq_geometry_factory']
        acq_geometry_factory = getattr(import_module(acq_geometry_factory_module['path']),
                                                acq_geometry_factory_module['name'])

        acq_geometry = acq_geometry_factory(self._wd_manager.local_dir.ms_file_path).create()
        self._ds.save_acq_geometry(self._db, acq_geometry)

        self._ds.save_ion_img_storage_type(self._db, ms_file_type_config['img_storage_type'])
Exemple #3
0
 def _init_ms_parser_factory(self):
     ms_file_type_config = SMConfig.get_ms_file_handler(self.ms_file_path)
     ms_parser_factory_module = ms_file_type_config['parser_factory']
     self._parser_factory = getattr(
         import_module(ms_parser_factory_module['path']),
         ms_parser_factory_module['name'])
 def _init_ms_parser_factory(self):
     ms_file_type_config = SMConfig.get_ms_file_handler(self.ms_file_path)
     ms_parser_factory_module = ms_file_type_config['parser_factory']
     self._parser_factory = getattr(import_module(ms_parser_factory_module['path']), ms_parser_factory_module['name'])