mgnipy.emgapi_v2_client.api.studies package#
Contains endpoint functions for accessing the API
Submodules#
mgnipy.emgapi_v2_client.api.studies.get_mgnify_study module#
- mgnipy.emgapi_v2_client.api.studies.get_mgnify_study.sync_detailed(accession, *, client)[source]#
Get the detail of a single study analysed by MGnify
MGnify studies inherit directly from studies (or projects) in ENA.
- Parameters:
accession (str )
client (AuthenticatedClient)
- 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[MGnifyStudyDetail]
- Return type:
- mgnipy.emgapi_v2_client.api.studies.get_mgnify_study.sync(accession, *, client)[source]#
Get the detail of a single study analysed by MGnify
MGnify studies inherit directly from studies (or projects) in ENA.
- Parameters:
accession (str )
client (AuthenticatedClient)
- 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:
MGnifyStudyDetail
- Return type:
MGnifyStudyDetail | None
- async mgnipy.emgapi_v2_client.api.studies.get_mgnify_study.asyncio_detailed(accession, *, client)[source]#
Get the detail of a single study analysed by MGnify
MGnify studies inherit directly from studies (or projects) in ENA.
- Parameters:
accession (str )
client (AuthenticatedClient)
- 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[MGnifyStudyDetail]
- Return type:
- async mgnipy.emgapi_v2_client.api.studies.get_mgnify_study.asyncio(accession, *, client)[source]#
Get the detail of a single study analysed by MGnify
MGnify studies inherit directly from studies (or projects) in ENA.
- Parameters:
accession (str )
client (AuthenticatedClient)
- 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:
MGnifyStudyDetail
- Return type:
MGnifyStudyDetail | None
mgnipy.emgapi_v2_client.api.studies.get_super_study module#
- mgnipy.emgapi_v2_client.api.studies.get_super_study.sync_detailed(slug, *, client)[source]#
Get the detail of a single Super Study
A Super Study is a collection of MGnify Studies all related to a single large initiative. They may
also reference Genome Catalogues that were assembled from the Studies or as part of the Super Study initiative.
- Parameters:
slug (str )
client (AuthenticatedClient | Client)
- 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[SuperStudyDetail]
- Return type:
- mgnipy.emgapi_v2_client.api.studies.get_super_study.sync(slug, *, client)[source]#
Get the detail of a single Super Study
A Super Study is a collection of MGnify Studies all related to a single large initiative. They may
also reference Genome Catalogues that were assembled from the Studies or as part of the Super Study initiative.
- Parameters:
slug (str )
client (AuthenticatedClient | Client)
- 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:
SuperStudyDetail
- Return type:
SuperStudyDetail | None
- async mgnipy.emgapi_v2_client.api.studies.get_super_study.asyncio_detailed(slug, *, client)[source]#
Get the detail of a single Super Study
A Super Study is a collection of MGnify Studies all related to a single large initiative. They may
also reference Genome Catalogues that were assembled from the Studies or as part of the Super Study initiative.
- Parameters:
slug (str )
client (AuthenticatedClient | Client)
- 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[SuperStudyDetail]
- Return type:
- async mgnipy.emgapi_v2_client.api.studies.get_super_study.asyncio(slug, *, client)[source]#
Get the detail of a single Super Study
A Super Study is a collection of MGnify Studies all related to a single large initiative. They may
also reference Genome Catalogues that were assembled from the Studies or as part of the Super Study initiative.
- Parameters:
slug (str )
client (AuthenticatedClient | Client)
- 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:
SuperStudyDetail
- Return type:
SuperStudyDetail | None
mgnipy.emgapi_v2_client.api.studies.list_mgnify_studies module#
- mgnipy.emgapi_v2_client.api.studies.list_mgnify_studies.sync_detailed(*, client, order=<mgnipy.emgapi_v2_client.types.Unset object>, biome_lineage=<mgnipy.emgapi_v2_client.types.Unset object>, has_analyses_from_pipeline=<mgnipy.emgapi_v2_client.types.Unset object>, search=<mgnipy.emgapi_v2_client.types.Unset object>, page=1, page_size=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#
List all studies analysed by MGnify
MGnify studies inherit directly from studies (or projects) in ENA.
- Parameters:
order (ListMgnifyStudiesOrderType0 | None | Unset)
biome_lineage (None | str | Unset) – The lineage to match, including all descendant biomes
has_analyses_from_pipeline (None | PipelineVersions | Unset) – If set, will only show studies with analyses from the specified MGnify pipeline version
search (None | str | Unset) – Search within study titles and accessions
client (AuthenticatedClient | Client)
- 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[NinjaPaginationResponseSchemaMGnifyStudy]
- Return type:
- mgnipy.emgapi_v2_client.api.studies.list_mgnify_studies.sync(*, client, order=<mgnipy.emgapi_v2_client.types.Unset object>, biome_lineage=<mgnipy.emgapi_v2_client.types.Unset object>, has_analyses_from_pipeline=<mgnipy.emgapi_v2_client.types.Unset object>, search=<mgnipy.emgapi_v2_client.types.Unset object>, page=1, page_size=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#
List all studies analysed by MGnify
MGnify studies inherit directly from studies (or projects) in ENA.
- Parameters:
order (ListMgnifyStudiesOrderType0 | None | Unset)
biome_lineage (None | str | Unset) – The lineage to match, including all descendant biomes
has_analyses_from_pipeline (None | PipelineVersions | Unset) – If set, will only show studies with analyses from the specified MGnify pipeline version
search (None | str | Unset) – Search within study titles and accessions
client (AuthenticatedClient | Client)
- 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:
NinjaPaginationResponseSchemaMGnifyStudy
- Return type:
- async mgnipy.emgapi_v2_client.api.studies.list_mgnify_studies.asyncio_detailed(*, client, order=<mgnipy.emgapi_v2_client.types.Unset object>, biome_lineage=<mgnipy.emgapi_v2_client.types.Unset object>, has_analyses_from_pipeline=<mgnipy.emgapi_v2_client.types.Unset object>, search=<mgnipy.emgapi_v2_client.types.Unset object>, page=1, page_size=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#
List all studies analysed by MGnify
MGnify studies inherit directly from studies (or projects) in ENA.
- Parameters:
order (ListMgnifyStudiesOrderType0 | None | Unset)
biome_lineage (None | str | Unset) – The lineage to match, including all descendant biomes
has_analyses_from_pipeline (None | PipelineVersions | Unset) – If set, will only show studies with analyses from the specified MGnify pipeline version
search (None | str | Unset) – Search within study titles and accessions
client (AuthenticatedClient | Client)
- 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[NinjaPaginationResponseSchemaMGnifyStudy]
- Return type:
- async mgnipy.emgapi_v2_client.api.studies.list_mgnify_studies.asyncio(*, client, order=<mgnipy.emgapi_v2_client.types.Unset object>, biome_lineage=<mgnipy.emgapi_v2_client.types.Unset object>, has_analyses_from_pipeline=<mgnipy.emgapi_v2_client.types.Unset object>, search=<mgnipy.emgapi_v2_client.types.Unset object>, page=1, page_size=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#
List all studies analysed by MGnify
MGnify studies inherit directly from studies (or projects) in ENA.
- Parameters:
order (ListMgnifyStudiesOrderType0 | None | Unset)
biome_lineage (None | str | Unset) – The lineage to match, including all descendant biomes
has_analyses_from_pipeline (None | PipelineVersions | Unset) – If set, will only show studies with analyses from the specified MGnify pipeline version
search (None | str | Unset) – Search within study titles and accessions
client (AuthenticatedClient | Client)
- 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:
NinjaPaginationResponseSchemaMGnifyStudy
- Return type:
mgnipy.emgapi_v2_client.api.studies.list_mgnify_study_analyses module#
- mgnipy.emgapi_v2_client.api.studies.list_mgnify_study_analyses.sync_detailed(accession, *, client, page=1, page_size=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#
List MGnify Analyses associated with this Study
MGnify analyses correspond to an individual Run or Assembly within this study,analysed by a MGnify
Pipelione.
- 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[NinjaPaginationResponseSchemaMGnifyAnalysis]
- Return type:
- mgnipy.emgapi_v2_client.api.studies.list_mgnify_study_analyses.sync(accession, *, client, page=1, page_size=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#
List MGnify Analyses associated with this Study
MGnify analyses correspond to an individual Run or Assembly within this study,analysed by a MGnify
Pipelione.
- 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:
NinjaPaginationResponseSchemaMGnifyAnalysis
- Return type:
- async mgnipy.emgapi_v2_client.api.studies.list_mgnify_study_analyses.asyncio_detailed(accession, *, client, page=1, page_size=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#
List MGnify Analyses associated with this Study
MGnify analyses correspond to an individual Run or Assembly within this study,analysed by a MGnify
Pipelione.
- 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[NinjaPaginationResponseSchemaMGnifyAnalysis]
- Return type:
- async mgnipy.emgapi_v2_client.api.studies.list_mgnify_study_analyses.asyncio(accession, *, client, page=1, page_size=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#
List MGnify Analyses associated with this Study
MGnify analyses correspond to an individual Run or Assembly within this study,analysed by a MGnify
Pipelione.
- 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:
NinjaPaginationResponseSchemaMGnifyAnalysis
- Return type:
mgnipy.emgapi_v2_client.api.studies.list_mgnify_study_publications module#
- mgnipy.emgapi_v2_client.api.studies.list_mgnify_study_publications.sync_detailed(accession, *, client, page=1, page_size=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#
List Publications associated with this Study
List all publications associated with this study.
- 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[NinjaPaginationResponseSchemaMGnifyPublication]
- Return type:
- mgnipy.emgapi_v2_client.api.studies.list_mgnify_study_publications.sync(accession, *, client, page=1, page_size=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#
List Publications associated with this Study
List all publications associated with this study.
- 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:
NinjaPaginationResponseSchemaMGnifyPublication
- Return type:
- async mgnipy.emgapi_v2_client.api.studies.list_mgnify_study_publications.asyncio_detailed(accession, *, client, page=1, page_size=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#
List Publications associated with this Study
List all publications associated with this study.
- 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[NinjaPaginationResponseSchemaMGnifyPublication]
- Return type:
- async mgnipy.emgapi_v2_client.api.studies.list_mgnify_study_publications.asyncio(accession, *, client, page=1, page_size=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#
List Publications associated with this Study
List all publications associated with this study.
- 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:
NinjaPaginationResponseSchemaMGnifyPublication
- Return type:
mgnipy.emgapi_v2_client.api.studies.list_mgnify_study_samples module#
- mgnipy.emgapi_v2_client.api.studies.list_mgnify_study_samples.sync_detailed(accession, *, client, page=1, page_size=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#
List Samples associated with this Study
List all samples associated with this study.
- 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[NinjaPaginationResponseSchemaMGnifySampleWithMetadata]
- Return type:
Response[NinjaPaginationResponseSchemaMGnifySampleWithMetadata]
- mgnipy.emgapi_v2_client.api.studies.list_mgnify_study_samples.sync(accession, *, client, page=1, page_size=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#
List Samples associated with this Study
List all samples associated with this study.
- 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:
NinjaPaginationResponseSchemaMGnifySampleWithMetadata
- Return type:
NinjaPaginationResponseSchemaMGnifySampleWithMetadata | None
- async mgnipy.emgapi_v2_client.api.studies.list_mgnify_study_samples.asyncio_detailed(accession, *, client, page=1, page_size=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#
List Samples associated with this Study
List all samples associated with this study.
- 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[NinjaPaginationResponseSchemaMGnifySampleWithMetadata]
- Return type:
Response[NinjaPaginationResponseSchemaMGnifySampleWithMetadata]
- async mgnipy.emgapi_v2_client.api.studies.list_mgnify_study_samples.asyncio(accession, *, client, page=1, page_size=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#
List Samples associated with this Study
List all samples associated with this study.
- 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:
NinjaPaginationResponseSchemaMGnifySampleWithMetadata
- Return type:
NinjaPaginationResponseSchemaMGnifySampleWithMetadata | None
mgnipy.emgapi_v2_client.api.studies.list_super_studies module#
- mgnipy.emgapi_v2_client.api.studies.list_super_studies.sync_detailed(*, client, page=1, page_size=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#
List all Super Studies
Super Studies are collections of MGnify Studies associated with major initiatives.
- 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[NinjaPaginationResponseSchemaSuperStudy]
- Return type:
- mgnipy.emgapi_v2_client.api.studies.list_super_studies.sync(*, client, page=1, page_size=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#
List all Super Studies
Super Studies are collections of MGnify Studies associated with major initiatives.
- 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:
NinjaPaginationResponseSchemaSuperStudy
- Return type:
- async mgnipy.emgapi_v2_client.api.studies.list_super_studies.asyncio_detailed(*, client, page=1, page_size=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#
List all Super Studies
Super Studies are collections of MGnify Studies associated with major initiatives.
- 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[NinjaPaginationResponseSchemaSuperStudy]
- Return type:
- async mgnipy.emgapi_v2_client.api.studies.list_super_studies.asyncio(*, client, page=1, page_size=<mgnipy.emgapi_v2_client.types.Unset object>)[source]#
List all Super Studies
Super Studies are collections of MGnify Studies associated with major initiatives.
- 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:
NinjaPaginationResponseSchemaSuperStudy
- Return type: