scout/commands/delete/delete_command.py
def panel(context, panel_id, version):
    """Delete a version of a gene panel or all versions of a gene panel"""
    LOG.info("Running scout delete panel")
    adapter = context.obj['adapter']

    panel_objs = adapter.gene_panels(panel_id=panel_id, version=version)
    if panel_objs.count() == 0:
        LOG.info("No panels found")
        
    for panel_obj in panel_objs:
        adapter.delete_panel(panel_obj)
def panel(context, panel_id, version):
    """Delete a version of a gene panel or all versions of a gene panel"""
    LOG.info("Running scout delete panel")
    adapter = context.obj['adapter']

    panel_objs = adapter.gene_panels(panel_id=panel_id, version=version)
    if panel_objs.count() == 0:
        LOG.info("No panels found")
        
    for panel_obj in panel_objs:
        adapter.delete_panel(panel_obj)
def panel ( context , panel_id , version ) : LOG . info ( "Running scout delete panel" ) adapter = context . obj [ 'adapter' ] panel_objs = adapter . gene_panels ( panel_id = panel_id , version = version ) if panel_objs . count ( ) == 0 : LOG . info ( "No panels found" ) for panel_obj in panel_objs : adapter . delete_panel ( panel_obj )
Delete a version of a gene panel or all versions of a gene panel
Delete a version of a gene panel or all versions of a gene panel