get-ncbi-genomes: Fetch entire genomes and associated taxonomies and metadata using NCBI Datasets.¶
Citations |
|
---|
Docstring:
Usage: qiime rescript get-ncbi-genomes [OPTIONS] Uses NCBI Datasets to fetch genomes for indicated taxa. Nucleotide sequences and protein/gene annotations will be fetched and supplemented with full taxonomy of every sequence. Parameters: --p-taxon TEXT NCBI Taxonomy ID or name (common or scientific) at any taxonomic rank. [required] --p-assembly-source TEXT Choices('refseq', 'genbank') Fetch only RefSeq or GenBank genome assemblies. [default: 'refseq'] --p-assembly-levels TEXT... Choices('complete_genome', 'chromosome', 'scaffold', 'contig') Fetch only genome assemblies that are one of the specified assembly levels. [default: ['complete_genome']] --p-only-reference / --p-no-only-reference Fetch only reference and representative genome assemblies. [default: True] --p-tax-exact-match / --p-no-tax-exact-match If true, only return assemblies with the given NCBI Taxonomy ID, or name. Otherwise, assemblies from taxonomy subtree are included, too. [default: False] --p-page-size INTEGER Range(20, 1000, inclusive_end=True) The maximum number of genome assemblies to return per request. If number of genomes to fetch is higher than this number, requests will be repeated until all assemblies are fetched. [default: 20] Outputs: --o-genome-assemblies ARTIFACT FeatureData[Sequence] Nucleotide sequences of requested genomes. [required] --o-loci ARTIFACT Loci features of requested genomes. GenomeData[Loci] [required] --o-proteins ARTIFACT GenomeData[Proteins] Protein sequences originating from requested genomes. [required] --o-taxonomies ARTIFACT FeatureData[Taxonomy] Taxonomies of requested genomes. [required] Miscellaneous: --output-dir PATH Output unspecified results to a directory --verbose / --quiet Display verbose output to stdout and/or stderr during execution of this action. Or silence output if execution is successful (silence is golden). --example-data PATH Write example data and exit. --citations Show citations and exit. --help Show this message and exit.
Import:
from qiime2.plugins.rescript.methods import get_ncbi_genomes
Docstring:
Fetch entire genomes and associated taxonomies and metadata using NCBI Datasets. Uses NCBI Datasets to fetch genomes for indicated taxa. Nucleotide sequences and protein/gene annotations will be fetched and supplemented with full taxonomy of every sequence. Parameters ---------- taxon : Str NCBI Taxonomy ID or name (common or scientific) at any taxonomic rank. assembly_source : Str % Choices('refseq', 'genbank'), optional Fetch only RefSeq or GenBank genome assemblies. assembly_levels : List[Str % Choices('complete_genome', 'chromosome', 'scaffold', 'contig')], optional Fetch only genome assemblies that are one of the specified assembly levels. only_reference : Bool, optional Fetch only reference and representative genome assemblies. tax_exact_match : Bool, optional If true, only return assemblies with the given NCBI Taxonomy ID, or name. Otherwise, assemblies from taxonomy subtree are included, too. page_size : Int % Range(20, 1000, inclusive_end=True), optional The maximum number of genome assemblies to return per request. If number of genomes to fetch is higher than this number, requests will be repeated until all assemblies are fetched. Returns ------- genome_assemblies : FeatureData[Sequence] Nucleotide sequences of requested genomes. loci : GenomeData[Loci] Loci features of requested genomes. proteins : GenomeData[Proteins] Protein sequences originating from requested genomes. taxonomies : FeatureData[Taxonomy] Taxonomies of requested genomes.