scout/adapter/mongo/panel.py
def update_mim_version(self, new_genes, new_panel, old_version):
        """Set the correct version for each gene
        Loop over the genes in the new panel

        Args:
            new_genes(set(str)): Set with the new gene symbols
            new_panel(dict)

        """
        LOG.info('Updating versions for new genes')
        version = new_panel['version']
        for gene in new_panel['genes']:
            gene_symbol = gene['hgnc_id']
            # If the gene is new we add the version
            if gene_symbol in new_genes:
                gene['database_entry_version'] = version
                continue
            # If the gene is old it will have the previous version
            gene['database_entry_version'] = old_version

        return
def update_mim_version(self, new_genes, new_panel, old_version):
        LOG.info('Updating versions for new genes')
        version = new_panel['version']
        for gene in new_panel['genes']:
            gene_symbol = gene['hgnc_id']
            # If the gene is new we add the version
            if gene_symbol in new_genes:
                gene['database_entry_version'] = version
                continue
            # If the gene is old it will have the previous version
            gene['database_entry_version'] = old_version

        return
def update_mim_version ( self , new_genes , new_panel , old_version ) : LOG . info ( 'Updating versions for new genes' ) version = new_panel [ 'version' ] for gene in new_panel [ 'genes' ] : gene_symbol = gene [ 'hgnc_id' ] # If the gene is new we add the version if gene_symbol in new_genes : gene [ 'database_entry_version' ] = version continue # If the gene is old it will have the previous version gene [ 'database_entry_version' ] = old_version return
Set the correct version for each gene
        Loop over the genes in the new panel

        Args:
            new_genes(set(str)): Set with the new gene symbols
            new_panel(dict)
Set the correct version for each gene Loop over the genes in the new panel