scout/server/blueprints/panels/controllers.py
def existing_gene(store, panel_obj, hgnc_id):
    """Check if gene is already added to a panel."""
    existing_genes = {gene['hgnc_id']: gene for gene in panel_obj['genes']}
    return existing_genes.get(hgnc_id)
def existing_gene(store, panel_obj, hgnc_id):
    existing_genes = {gene['hgnc_id']: gene for gene in panel_obj['genes']}
    return existing_genes.get(hgnc_id)
def existing_gene ( store , panel_obj , hgnc_id ) : existing_genes = { gene [ 'hgnc_id' ] : gene for gene in panel_obj [ 'genes' ] } return existing_genes . get ( hgnc_id )
Check if gene is already added to a panel.
Check if gene is already added to a panel .