bin/bactopia/bactopia-datasets.py
def available_datasets(ariba, pubmlst, missing=False):
    """Print available Ariba references, MLST schemas, and exit."""
    print_to = sys.stderr if missing else sys.stdout
    print("Ariba reference datasets available:", file=print_to)
    print("\n".join(sorted(ariba)), file=print_to)

    print("\nMLST schemas available from pubMLST.org:", file=print_to)
    for k,v in sorted(pubmlst.items()):
        if len(v) > 1:
            print(f'{k} ({len(v)} shemas)', file=print_to)
        else:
            print(f'{k}', file=print_to)
    sys.exit(1 if missing else 0)
Print available Ariba references, MLST schemas, and exit.
Print available Ariba references, MLST schemas, and exit.
Print available Ariba references MLST schemas and exit .
def available_datasets(ariba, pubmlst, missing=False):
    print_to = sys.stderr if missing else sys.stdout
    print("Ariba reference datasets available:", file=print_to)
    print("\n".join(sorted(ariba)), file=print_to)
    print("\nMLST schemas available from pubMLST.org:", file=print_to)
    for k,v in sorted(pubmlst.items()):
        if len(v) > 1:
            print(f'{k} ({len(v)} shemas)', file=print_to)
        else:
            print(f'{k}', file=print_to)
    sys.exit(1 if missing else 0)
def available_datasets ( ariba , pubmlst , missing = False ) : print_to = sys . stderr if missing else sys . stdout print ( "Ariba reference datasets available:" , file = print_to ) print ( "\n" . join ( sorted ( ariba ) ) , file = print_to ) print ( "\nMLST schemas available from pubMLST.org:" , file = print_to ) for k , v in sorted ( pubmlst . items ( ) ) : if len ( v ) > 1 : print ( f'{k} ({len(v)} shemas)' , file = print_to ) else : print ( f'{k}' , file = print_to ) sys . exit ( 1 if missing else 0 )
Print available Ariba references, MLST schemas, and exit.
Print available Ariba references MLST schemas and exit .
"""Print available Ariba references, MLST schemas, and exit."""
ariba
pubmlst
missing