def update_species(parser, args):
    args = parser.parse_args()
    ddir = DataDir(args.panels_dir)
    logger.info(f'Loaded panels metdata from {ddir.root_dir}')
    if args.remove:
        if (args.species == 'all'):
            raise NotImplementedError('Can only delete individual species')
        ddir.remove_species(args.species)
        logger.info(f'Removed species {args.species}')
    elif (args.species == 'all'):
        ddir.update_all_species()
    else:
        ddir.update_species(args.species)
def update_species(parser, args):
    args = parser.parse_args()
    ddir = DataDir(args.panels_dir)
    logger.info(f'Loaded panels metdata from {ddir.root_dir}')
    if args.remove:
        if (args.species == 'all'):
            raise NotImplementedError('Can only delete individual species')
        ddir.remove_species(args.species)
        logger.info(f'Removed species {args.species}')
    elif (args.species == 'all'):
        ddir.update_all_species()
    else:
        ddir.update_species(args.species)