mgnipy.emgapi_v2_client.api.genomes.get_genome_annotations module

mgnipy.emgapi_v2_client.api.genomes.get_genome_annotations module#

async mgnipy.emgapi_v2_client.api.genomes.get_genome_annotations.asyncio(accession, *, client)[source]#

Get the annotations for a single MGnify Genome

Annotations are taxonomic and functional assignments for the genome.

Parameters:
Raises:
  • errors.UnexpectedStatus – If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • httpx.TimeoutException – If the request takes longer than Client.timeout.

Returns:

GenomeWithAnnotations

Return type:

GenomeWithAnnotations | None

async mgnipy.emgapi_v2_client.api.genomes.get_genome_annotations.asyncio_detailed(accession, *, client)[source]#

Get the annotations for a single MGnify Genome

Annotations are taxonomic and functional assignments for the genome.

Parameters:
Raises:
  • errors.UnexpectedStatus – If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • httpx.TimeoutException – If the request takes longer than Client.timeout.

Returns:

Response[GenomeWithAnnotations]

Return type:

Response[GenomeWithAnnotations]

mgnipy.emgapi_v2_client.api.genomes.get_genome_annotations.sync(accession, *, client)[source]#

Get the annotations for a single MGnify Genome

Annotations are taxonomic and functional assignments for the genome.

Parameters:
Raises:
  • errors.UnexpectedStatus – If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • httpx.TimeoutException – If the request takes longer than Client.timeout.

Returns:

GenomeWithAnnotations

Return type:

GenomeWithAnnotations | None

mgnipy.emgapi_v2_client.api.genomes.get_genome_annotations.sync_detailed(accession, *, client)[source]#

Get the annotations for a single MGnify Genome

Annotations are taxonomic and functional assignments for the genome.

Parameters:
Raises:
  • errors.UnexpectedStatus – If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.

  • httpx.TimeoutException – If the request takes longer than Client.timeout.

Returns:

Response[GenomeWithAnnotations]

Return type:

Response[GenomeWithAnnotations]