scout/adapter/mongo/panel.py
def add_gene_panel(self, panel_obj):
        """Add a gene panel to the database

            Args:
                panel_obj(dict)
        """
        panel_name = panel_obj['panel_name']
        panel_version = panel_obj['version']
        display_name = panel_obj.get('display_name', panel_name)

        if self.gene_panel(panel_name, panel_version):
            raise IntegrityError("Panel {0} with version {1} already"
                                 " exist in database".format(panel_name, panel_version))
        LOG.info("loading panel {0}, version {1} to database".format(
            display_name, panel_version
        ))
        result = self.panel_collection.insert_one(panel_obj)
        LOG.debug("Panel saved")
        return result.inserted_id
def add_gene_panel(self, panel_obj):
        panel_name = panel_obj['panel_name']
        panel_version = panel_obj['version']
        display_name = panel_obj.get('display_name', panel_name)

        if self.gene_panel(panel_name, panel_version):
            raise IntegrityError("Panel {0} with version {1} already"
                                 " exist in database".format(panel_name, panel_version))
        LOG.info("loading panel {0}, version {1} to database".format(
            display_name, panel_version
        ))
        result = self.panel_collection.insert_one(panel_obj)
        LOG.debug("Panel saved")
        return result.inserted_id
def add_gene_panel ( self , panel_obj ) : panel_name = panel_obj [ 'panel_name' ] panel_version = panel_obj [ 'version' ] display_name = panel_obj . get ( 'display_name' , panel_name ) if self . gene_panel ( panel_name , panel_version ) : raise IntegrityError ( "Panel {0} with version {1} already" " exist in database" . format ( panel_name , panel_version ) ) LOG . info ( "loading panel {0}, version {1} to database" . format ( display_name , panel_version ) ) result = self . panel_collection . insert_one ( panel_obj ) LOG . debug ( "Panel saved" ) return result . inserted_id
Add a gene panel to the database

            Args:
                panel_obj(dict)
Add a gene panel to the database