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: 3.5.0
- Package version: 1.0.0
- Generator version: 7.22.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Requirements.
Python 3.10+
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 os
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.
# When no argument is given, Configuration falls back to the
# HAPLOHUB_API_HOST, HAPLOHUB_API_KEY and HAPLOHUB_ACCESS_TOKEN environment variables.
# Configure API key authorization (X-API-Key header): ApiKeyAuth
configuration = haplohub.Configuration(
api_key=os.environ["HAPLOHUB_API_KEY"]
)
# Configure Bearer authorization: JWTBearer
configuration = haplohub.Configuration(
access_token=os.environ["HAPLOHUB_ACCESS_TOKEN"]
)
# Enter a context with an instance of the API client
with haplohub.ApiClient(configuration) as api_client:
try:
# List Accessions
api_response = api_client.accession_api.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_name}/ | Get algorithm |
| AlgorithmApi | list_algorithms | GET /api/v1/algorithm/ | List algorithms |
| AlgorithmAutoRunApi | create_algorithm_auto_run | POST /api/v1/algorithm-auto-run/ | Create algorithm auto-run |
| AlgorithmAutoRunApi | delete_algorithm_auto_run | DELETE /api/v1/algorithm-auto-run/{algorithm_auto_run_id}/ | Delete algorithm auto-run |
| AlgorithmAutoRunApi | list_algorithm_auto_runs | GET /api/v1/algorithm-auto-run/ | List algorithm auto-runs |
| 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}/ | Get algorithm version |
| AlgorithmVersionApi | list_algorithm_versions | GET /api/v1/algorithm-version/ | List algorithm versions |
| ApiKeyApi | create_api_key | POST /api/v1/api-key/ | Create Api Key |
| ApiKeyApi | delete_api_key | DELETE /api/v1/api-key/{api_key_id}/ | Delete Api Key |
| ApiKeyApi | 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 |
| CPICApi | list_cpic_diplotypes | GET /api/v1/cpic/diplotype/ | List CPIC diplotype-phenotype mappings |
| CPICApi | list_cpic_pairs | GET /api/v1/cpic/pair/ | List CPIC gene-drug pairs |
| CPICApi | list_cpic_recommendations | GET /api/v1/cpic/recommendation/ | List CPIC drug recommendations |
| ClinGenApi | list_clingen_dosage | GET /api/v1/clingen/dosage/ | List ClinGen dosage-sensitivity curations |
| ClinGenApi | list_clingen_gene_validity | GET /api/v1/clingen/gene-validity/ | List ClinGen gene-disease validity curations |
| 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 |
| ConfigApi | get_config | GET /api/v1/config/ | Config |
| 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 |
| GWASAssociationApi | get_gwas_association | GET /api/v1/gwas-association/{row_key}/ | Get GWAS association |
| GWASAssociationApi | list_gwas_associations | GET /api/v1/gwas-association/ | List GWAS associations |
| 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/{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 |
| OrganizationApi | get_organization_settings | GET /api/v1/organization/settings/ | Get Organization Settings |
| OrganizationApi | sync_cors | POST /api/v1/organization/sync-cors/ | Sync Cors |
| OrganizationApi | update_organization_settings | PATCH /api/v1/organization/settings/ | Update Organization Settings |
| PGSScoreApi | get_pgs_score | GET /api/v1/pgs-score/{pgs_score_id}/ | Get PGS score |
| PGSScoreApi | list_pgs_categories | GET /api/v1/pgs-score/categories/ | List PGS trait categories |
| PGSScoreApi | list_pgs_scores | GET /api/v1/pgs-score/ | List PGS scores |
| 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 | get_sample_lineage | GET /api/v1/cohort/{cohort_id}/sample/{sample_id}/lineage/ | Get sample lineage |
| 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 |
| TaskApi | get_task | GET /api/v1/cohort/{cohort_id}/task/{task_id}/ | Get task |
| TaskApi | list_tasks | GET /api/v1/cohort/{cohort_id}/task/ | List tasks |
| UploadRequestApi | cancel_upload_request | POST /api/v1/cohort/{cohort_id}/upload-request/{upload_request_id}/cancel/ | Cancel upload request |
| UploadRequestApi | create_upload_request | POST /api/v1/cohort/{cohort_id}/upload-request/ | Create upload request |
| UploadRequestApi | get_upload_request | GET /api/v1/cohort/{cohort_id}/upload-request/{upload_request_id}/ | Get upload request |
| UploadRequestApi | list_upload_requests | GET /api/v1/cohort/{cohort_id}/upload-request/ | List upload requests |
| UserApi | check_slug | POST /api/v1/user/check-slug/ | Check Slug |
| UserApi | get_user | GET /api/v1/user/ | Get User |
| UserApi | init_user | POST /api/v1/user/init/ | Init User |
| VariantApi | get_variant | POST /api/v1/cohort/{cohort_id}/variant/ | Get Variant |
| VariantReferenceApi | lookup_variant_references_by_rsid | POST /api/v1/variant-reference/rsid/ | Lookup variant references by rsID |
| DefaultApi | status | GET /api/v1/status/ | Status |
Documentation For Models
- AccessionSchema
- AlgorithmAutoRunSchema
- AlgorithmResultIssueSchema
- AlgorithmResultIssueSeverity
- AlgorithmResultResponse
- AlgorithmResultSchema
- AlgorithmSchema
- AlgorithmVersionSchema
- ApiKeySchema
- Assay
- AuthSchema
- BiomarkerResultSchema
- CheckSlugRequest
- CheckSlugResponse
- CliSchema
- ClingenDosageSchema
- ClingenGeneValiditySchema
- ClinvarAttachmentSchema
- ClinvarTargetSchema
- CohortDetailSchema
- CohortSchema
- ConfigResponse
- ConfigSchema
- CpicDiplotypeSchema
- CpicPairSchema
- CpicRecommendationSchema
- CreateAlgorithmAutoRunRequest
- CreateAlgorithmAutoRunResponse
- CreateAlgorithmResultRequest
- CreateApiKeyResponse
- CreateApiKeySchema
- CreateCohortRequest
- CreateCohortResponse
- CreateEnvironmentRequest
- CreateEnvironmentResponse
- CreateMemberRequest
- CreateReportTemplateRequest
- CreateReportTemplateResponse
- CreateSampleRequest
- CreateUploadRequestRequest
- CurrentUserResponse
- DeleteMode
- DirSchema
- DownloadLinkResponse
- DownloadLinkSchema
- EnvironmentSchema
- ErrorResponse
- ErrorSchema
- FileDirSchema
- FileInfo
- FilePageParams
- FileSchema
- GenericResponse
- GetAlgorithmResponse
- GetAlgorithmVersionResponse
- GetCohortResponse
- GetFileResponse
- GetGwasAssociationResponse
- GetMemberPgsScoreResponse
- GetOrganizationSettingsResponse
- GetPgsScoreResponse
- GetReportTemplateResponse
- GetSampleLineageResponse
- GetTaskResponse
- GetVariantRequest
- GetVariantResponse
- GwasAssociationSchema
- GwasAttachmentSchema
- GwasTargetSchema
- HgvsTargetSchema
- InitUserRequest
- LineageConsumedFileSchema
- LineageFileSchema
- LineageResultSchema
- ListAccessionResponse
- ListAlgorithmAutoRunsResponse
- ListAlgorithmResultsResponse
- ListAlgorithmVersionsResponse
- ListAlgorithmsResponse
- ListApiKeysResponse
- ListBiomarkerResultsResponse
- ListCohortsResponse
- ListCpicDiplotypesResponse
- ListCpicPairsResponse
- ListCpicRecommendationsResponse
- ListDosageResponse
- ListEnvironmentsResponse
- ListFilesFilter
- ListFilesResponse
- ListGeneValidityResponse
- ListGwasAssociationsResponse
- ListLogsResponse
- ListMemberPgsScoresResponse
- ListMembersResponse
- ListPgsCategoriesResponse
- ListPgsScoresResponse
- ListReportTemplatesResponse
- ListSamplesResponse
- ListTasksResponse
- ListUploadRequestsResponse
- LogSchema
- MemberPgsScoreQueryParams
- MemberResponse
- MemberSchema
- OrderSchema
- OrganizationSchema
- OrganizationSettingsSchema
- PageParams
- PgsCategorySchema
- PgsScoreSchema
- PgsTraitSchema
- RegionTargetSchema
- ReportTemplateListSchema
- ReportTemplateSchema
- ReportType
- RequestSchema
- ResponseSchema
- ResultSchema
- SampleLineageSchema
- SampleResponse
- SampleSchema
- SampleVariantCallSchema
- ScoreSchema
- SuccessResponse
- SwitchEnvironmentResponse
- TargetReferenceSchema
- TaskSchema
- TaskStatus
- TenantSchema
- UpdateAllowedOriginsRequest
- UpdateCohortRequest
- UpdateCohortResponse
- UpdateMemberRequest
- UpdateReportTemplateRequest
- UpdateReportTemplateResponse
- UpdateSampleRequest
- UploadLink
- UploadRequestResponse
- UploadRequestResult
- UploadRequestSchema
- UploadRequestStatus
- UploadType
- UserSchema
- VariantAttachmentSchema
- VariantFilterSchema
- VariantReferenceLookupRequest
- VariantReferenceLookupResponse
- VariantReferenceLookupResult
- VariantReferenceSchema
- VariantResultSchema
- VariantSchema
- VariantTargetSchema
Documentation For Authorization
Authentication schemes defined for the API:
ApiKeyAuth
- Type: API key
- API key parameter name: X-API-Key
- Location: HTTP header
JWTBearer
- Type: Bearer authentication
Author
Metadata
Release files for haplohub 3.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| haplohub-3.5.0.tar.gz | 273.7 kB | With provenance | Details for haplohub-3.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| haplohub-3.5.0-py3-none-any.whl | Python 3 | none | any | Details for haplohub-3.5.0-py3-none-any.whl |
Total release size: 636.8 kB
Release files / haplohub-3.5.0.tar.gz
| Download URL | haplohub-3.5.0.tar.gz |
|---|---|
| Size | 273.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
af3c0c32ee236342baff6f7271013479e670bf874d2b2e6f5abe51725b8f9c8e
|
|
BLAKE2b-256 checksum How to use checksums |
58b306b3410154fbc1bca82de75ff73d9815245920f597951c572f0d47db96f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.
Transparency logRelease files / haplohub-3.5.0-py3-none-any.whl
| Download URL | haplohub-3.5.0-py3-none-any.whl |
|---|---|
| Size | 363.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6e09efb09dab6fdce20e87a1f67a9ca46d2d35c42c8bb6620fefb12b667728f6
|
|
BLAKE2b-256 checksum How to use checksums |
0179e4c9c952bf3588bbcd541e1d4f7effd35e7be807774a9c7e3102e3098fde
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.
Transparency logSecurity for haplohub 3.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for haplohub-3.5.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.