mgnipy.emgapi_v2_client.api.genomes.get_mgnify_genome module

mgnipy.emgapi_v2_client.api.genomes.get_mgnify_genome module#

async asyncio(accession, *, client, catalogue_id=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Get the detail of a single MGnify Genome

MGnify Genomes are either isolates, or MAGs derived from binned metagenomes.

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:

GenomeDetail

Return type:

GenomeDetail | None

async asyncio_detailed(accession, *, client, catalogue_id=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Get the detail of a single MGnify Genome

MGnify Genomes are either isolates, or MAGs derived from binned metagenomes.

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[GenomeDetail]

Return type:

Response[GenomeDetail]

sync(accession, *, client, catalogue_id=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Get the detail of a single MGnify Genome

MGnify Genomes are either isolates, or MAGs derived from binned metagenomes.

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:

GenomeDetail

Return type:

GenomeDetail | None

sync_detailed(accession, *, client, catalogue_id=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#

Get the detail of a single MGnify Genome

MGnify Genomes are either isolates, or MAGs derived from binned metagenomes.

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[GenomeDetail]

Return type:

Response[GenomeDetail]