INNER CODE UNIT · Python

argument_parser

kblin/ncbi-genome-download · ncbi_genome_download/core.py:43

def argument_parser(version: str = ''):
    """Create the argument parser for ncbi-genome-download."""
    parser = argparse.ArgumentParser()
    parser.add_argument('groups',
                        default=NgdConfig.get_default('groups'),
                        help='The NCBI taxonomic groups to download (default: %(default)s). '
                        'A comma-separated list of taxonomic groups is also possible. For example: "bacteria,viral"'
                        'Choose from: {choices}'.format(choices=NgdConfig.get_choices('groups')))
    parser.add_argument('-s', '--section', dest='section',
                        choices=NgdConfig.get_choices('section'),
                        default=NgdConfig.get_default('section'),
                        help='NCBI section to download (default: %(default)s)')
    parser.add_argument('-F', '--formats', dest='file_formats',
                        default=NgdConfig.get_default('file_formats'),
                        help='Which formats to download (default: %(default)s).'
                        'A comma-separated list of formats is also possible. For example: "fasta,assembly-report". '
                        'Choose from: {choices}'.format(choices=NgdConfig.get_choices('file_formats')))
    parser.add_argument('-l', '--assembly-levels', dest='assembly_levels',

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…