HaploHub API
Project description
haplohub
The HaploHub is a turnkey solution to securely store and interpret biomarkers, genetics, and 'omics data. Our customers use the HaploHub to:
- Store WGS, WES, low-pass, and array data with uniform REST interfaces to access variants
- Interpret genomic variants
- Generate risk scores for an individual
- Run the typical algorithms (phasing, imputation, etc.)
- Calculate 'biological age' or 'organ age' biomarkers
- Generate custom reports
The HaploHub platform is continually updated to remain at the forefront of scientific understanding.
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 1.0
- Package version: 1.0.0
- Generator version: 7.17.0-SNAPSHOT
- Build package: org.openapitools.codegen.languages.PythonPydanticV1ClientCodegen
Requirements.
Python 3.7+
Installation & Usage
pip install
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)
Then import the package:
import haplohub
Setuptools
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install to install the package for all users)
Then import the package:
import haplohub
Tests
Execute pytest to run the tests.
Getting Started
Please follow the installation procedure and then run the following:
import time
import haplohub
from haplohub.rest import ApiException
from pprint import pprint
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization:
configuration = haplohub.Configuration(
access_token=os.environ["API_KEY"]
)
# Enter a context with an instance of the API client
with haplohub.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = haplohub.AccessionApi(api_client)
try:
# List Accessions
api_response = api_instance.list_accession()
print("The response of AccessionApi->list_accession:\n")
pprint(api_response)
except ApiException as e:
print("Exception when calling AccessionApi->list_accession: %s\n" % e)
Documentation for API Endpoints
All URIs are relative to http://localhost
| Class | Method | HTTP request | Description |
|---|---|---|---|
| AccessionApi | list_accession | GET /api/v1/metadata/accession/ | List Accessions |
| AlgorithmApi | get_algorithm | GET /api/v1/algorithm/{algorithm_id}/ | Get algorithm |
| AlgorithmApi | list_algorithms | GET /api/v1/algorithm/ | List algorithms |
| AlgorithmResultApi | create_algorithm_result | POST /api/v1/algorithm-result/ | Create algorithm result |
| AlgorithmResultApi | get_algorithm_result | GET /api/v1/algorithm-result/{algorithm_result_id}/ | Get algorithm result |
| AlgorithmResultApi | list_algorithm_results | GET /api/v1/algorithm-result/ | List algorithm results |
| AlgorithmVersionApi | get_algorithm_version | GET /api/v1/algorithm-version/{algorithm_version_id}/ | Get algorithm version |
| AlgorithmVersionApi | list_algorithm_versions | GET /api/v1/algorithm-version/ | List algorithm versions |
| ApiKeyApi | haplohub_api_v1_api_key_create_api_key | POST /api/v1/api-key/ | Create Api Key |
| ApiKeyApi | haplohub_api_v1_api_key_delete_api_key | DELETE /api/v1/api-key/{api_key_id}/ | Delete Api Key |
| ApiKeyApi | haplohub_api_v1_api_key_list_api_keys | GET /api/v1/api-key/ | List Api Keys |
| BiomarkerApi | list_biomarker_results | GET /api/v1/cohort/{cohort_id}/biomarker/result/ | List biomarker results |
| CohortApi | create_cohort | POST /api/v1/cohort/ | Create cohort |
| CohortApi | delete_cohort | DELETE /api/v1/cohort/{cohort_id}/ | Delete cohort |
| CohortApi | get_cohort | GET /api/v1/cohort/{cohort_id}/ | Get cohort |
| CohortApi | list_cohorts | GET /api/v1/cohort/ | List cohorts |
| CohortApi | update_cohort | PUT /api/v1/cohort/{cohort_id}/ | Update cohort |
| EnvironmentApi | create_environment | POST /api/v1/environment/ | Create environment |
| EnvironmentApi | list_environments | GET /api/v1/environment/ | List environments |
| EnvironmentApi | switch_environment | POST /api/v1/environment/{environment_id}/switch/ | Switch environment |
| FileApi | delete_file | DELETE /api/v1/cohort/{cohort_id}/file/{file_id}/ | Delete file |
| FileApi | download_link | POST /api/v1/cohort/{cohort_id}/file/{file_id}/download-link/ | Get download link |
| FileApi | download_link_by_path | POST /api/v1/cohort/{cohort_id}/file/download-link/ | Get download link by file path |
| FileApi | get_file | GET /api/v1/cohort/{cohort_id}/file/{file_id}/ | Get file |
| FileApi | list_files | GET /api/v1/cohort/{cohort_id}/file/ | List files |
| LogApi | list_logs | GET /api/v1/log/ | List logs |
| MemberApi | create_member | POST /api/v1/cohort/{cohort_id}/member/ | Create member |
| MemberApi | delete_member | DELETE /api/v1/cohort/{cohort_id}/member/{member_id}/ | Delete member |
| MemberApi | get_member | GET /api/v1/cohort/{cohort_id}/member/{member_id}/ | Get member |
| MemberApi | list_members | GET /api/v1/cohort/{cohort_id}/member/ | List members |
| MemberApi | update_member | PUT /api/v1/cohort/{cohort_id}/member/{member_id}/ | Update member |
| MemberPGSScoreApi | get_member_pgs_score | GET /api/v1/member-pgs-score/{member_pgs_score_id}/ | Get member PGS score |
| MemberPGSScoreApi | list_member_pgs_scores | GET /api/v1/member-pgs-score/ | List member PGS scores |
| MemberReportApi | create_member_report | POST /api/v1/cohort/{cohort_id}/member/{member_id}/report/{report_template_id}/create/ | Create member report |
| ReportTemplateApi | create_report_template | POST /api/v1/report-template/ | Create report template |
| ReportTemplateApi | delete_report_template | DELETE /api/v1/report-template/{report_template_id}/ | Delete report template |
| ReportTemplateApi | get_report_template | GET /api/v1/report-template/{report_template_id}/ | Get report template |
| ReportTemplateApi | list_report_templates | GET /api/v1/report-template/ | List report templates |
| ReportTemplateApi | preview_report_template | GET /api/v1/report-template/{report_template_id}/preview/ | Preview report template |
| ReportTemplateApi | update_report_template | PUT /api/v1/report-template/{report_template_id}/ | Update report template |
| SampleApi | create_sample | POST /api/v1/cohort/{cohort_id}/sample/ | Create sample |
| SampleApi | delete_sample | DELETE /api/v1/cohort/{cohort_id}/sample/{sample_id}/ | Delete sample |
| SampleApi | get_sample | GET /api/v1/cohort/{cohort_id}/sample/{sample_id}/ | Get sample |
| SampleApi | list_samples | GET /api/v1/cohort/{cohort_id}/sample/ | List samples |
| SampleApi | update_sample | PUT /api/v1/cohort/{cohort_id}/sample/{sample_id}/ | Update sample |
| TraitApi | get_trait | GET /api/v1/trait/{trait_id}/ | Get trait |
| TraitApi | list_traits | GET /api/v1/trait/ | List traits |
| TraitCategoryApi | get_trait_category | GET /api/v1/trait-category/{trait_category_id}/ | Get trait category |
| TraitCategoryApi | list_trait_categories | GET /api/v1/trait-category/ | List trait categories |
| UploadApi | create_upload_request | POST /api/v1/cohort/{cohort_id}/upload/request/ | Create upload request |
| VariantApi | get_variant | POST /api/v1/cohort/{cohort_id}/variant/ | Get Variant |
| VariantApi | lookup_hgvs | POST /api/v1/cohort/{cohort_id}/variant/hgvs/ | Lookup Hgvs |
| DefaultApi | status | GET /api/v1/status/ | Status |
Documentation For Models
- AccessionSchema
- AlgorithmId
- AlgorithmResultSchema
- AlgorithmSchema
- AlgorithmVersionId
- AlgorithmVersionSchema
- ApiKeySchema
- AuthSchema
- BiomarkerResultSchema
- CohortDetailSchema
- CohortId
- CohortSchema
- CreateAlgorithmResultRequest
- CreateApiKeySchema
- CreateCohortRequest
- CreateCohortResponse
- CreateEnvironmentRequest
- CreateEnvironmentResponse
- CreateMemberRequest
- CreateReportTemplateRequest
- CreateReportTemplateResponse
- CreateSampleRequest
- CreateUploadRequestRequest
- DirSchema
- DownloadLinkSchema
- EnvironmentId
- EnvironmentSchema
- ErrorResponse
- ErrorSchema
- FileDirSchema
- FileId
- FileId1
- FileInfo
- FileSchema
- GenericResponse
- GetCohortResponse
- GetMemberPgsScoreResponse
- GetReportTemplateResponse
- GetTraitCategoryResponse
- GetTraitResponse
- GetVariantRequest
- HgvsSchema
- Id
- InfinityPaginatedResponseLogSchema
- ListFilesFilter
- ListMemberPgsScoresResponse
- ListTraitCategoriesResponse
- ListTraitsResponse
- LogSchema
- LookupHgvsRequest
- MemberId
- MemberId1
- MemberId2
- MemberPgsScoreSchema
- MemberSchema
- MostSimilarPopulation
- OrderSchema
- PaginatedResponseAccessionSchema
- PaginatedResponseAlgorithmResultSchema
- PaginatedResponseAlgorithmSchema
- PaginatedResponseAlgorithmVersionSchema
- PaginatedResponseApiKeySchema
- PaginatedResponseCohortSchema
- PaginatedResponseEnvironmentSchema
- PaginatedResponseMemberSchema
- PaginatedResponseReportTemplateListSchema
- PaginatedResponseSampleSchema
- ReportTemplateId
- ReportTemplateId1
- ReportTemplateListSchema
- ReportTemplateSchema
- ReportType
- RequestSchema
- Response
- ResponseSchema
- ResponseStatus
- ResultListResponseBiomarkerResultSchema
- ResultListResponseHgvsSchema
- ResultListResponseVariantSchema
- ResultResponse
- ResultResponseAlgorithmResultSchema
- ResultResponseAlgorithmSchema
- ResultResponseAlgorithmVersionSchema
- ResultResponseApiKeySchema
- ResultResponseDownloadLinkSchema
- ResultResponseFileDirSchema
- ResultResponseFileSchema
- ResultResponseMemberSchema
- ResultResponseSampleSchema
- ResultResponseUploadRequestResponse
- ResultSchema
- SampleId
- SampleId1
- SampleSchema
- SuccessResponse
- SwitchEnvironmentResponse
- TenantSchema
- TraitCategorySchema
- TraitSchema
- UpdateCohortRequest
- UpdateCohortResponse
- UpdateMemberRequest
- UpdateReportTemplateRequest
- UpdateReportTemplateResponse
- UpdateSampleRequest
- UploadLink
- UploadRequestResponse
- UploadType
- VariantRange
- VariantSchema
Documentation For Authorization
Authentication schemes defined for the API:
Auth0JWTBearer
- Type: Bearer authentication
Author
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file haplohub-1.0.13.tar.gz.
File metadata
- Download URL: haplohub-1.0.13.tar.gz
- Upload date:
- Size: 217.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8e0de2cdc6a983e86e4196b95e983f20d70ebd7111faeda77aacb023202efa8
|
|
| MD5 |
c2cc1087ebc4f2ff5c24d9d30775b22c
|
|
| BLAKE2b-256 |
c0d3d98eb4025e09f2e707bd6e47786b673e1da208a1dbbcb5718873e8042c8f
|
Provenance
The following attestation bundles were made for haplohub-1.0.13.tar.gz:
Publisher:
on_push_main.yml on haplotypelabs/haplohub-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
haplohub-1.0.13.tar.gz -
Subject digest:
b8e0de2cdc6a983e86e4196b95e983f20d70ebd7111faeda77aacb023202efa8 - Sigstore transparency entry: 649252111
- Sigstore integration time:
-
Permalink:
haplotypelabs/haplohub-python@15030de5a6e549739abb6080d05da10374a73469 -
Branch / Tag:
refs/tags/v1.0.13 - Owner: https://github.com/haplotypelabs
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
on_push_main.yml@15030de5a6e549739abb6080d05da10374a73469 -
Trigger Event:
push
-
Statement type:
File details
Details for the file haplohub-1.0.13-py3-none-any.whl.
File metadata
- Download URL: haplohub-1.0.13-py3-none-any.whl
- Upload date:
- Size: 320.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0acb1b158407ac4d46c61bec15fe3dca2e2d46e963cc2dc1ff612afc6dd41aeb
|
|
| MD5 |
333418e5f160a36b27ca71ba75a46e40
|
|
| BLAKE2b-256 |
93865985be69f0927523fa87f7662b50ca01743c0629c76a4a7e384169d2fcca
|
Provenance
The following attestation bundles were made for haplohub-1.0.13-py3-none-any.whl:
Publisher:
on_push_main.yml on haplotypelabs/haplohub-python
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
haplohub-1.0.13-py3-none-any.whl -
Subject digest:
0acb1b158407ac4d46c61bec15fe3dca2e2d46e963cc2dc1ff612afc6dd41aeb - Sigstore transparency entry: 649252144
- Sigstore integration time:
-
Permalink:
haplotypelabs/haplohub-python@15030de5a6e549739abb6080d05da10374a73469 -
Branch / Tag:
refs/tags/v1.0.13 - Owner: https://github.com/haplotypelabs
-
Access:
internal
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
on_push_main.yml@15030de5a6e549739abb6080d05da10374a73469 -
Trigger Event:
push
-
Statement type: