INNER CODE UNIT · Python

__call__

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

    def __call__(self, parser, namespace, values, option_string=None):
        print('Deprecated: option', option_string, 'is deprecated, please use', self.new_name, 'instead',
              file=sys.stderr)
        setattr(namespace, self.dest, values)


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)')

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…