Skip to main content

HaploHub API

Project description

haplohub

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0
  • Package version: 1.0.0
  • Generator version: 7.11.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.ApiKeyApi(api_client)
    create_api_key_schema = haplohub.CreateApiKeySchema() # CreateApiKeySchema | 

    try:
        # Create Api Key
        api_response = api_instance.haplohub_api_v1_api_key_create_api_key(create_api_key_schema)
        print("The response of ApiKeyApi->haplohub_api_v1_api_key_create_api_key:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling ApiKeyApi->haplohub_api_v1_api_key_create_api_key: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to http://localhost

Class Method HTTP request Description
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
MetadataApi list_accession GET /api/v1/metadata/accession/ List Accessions
ModelApi create_model POST /api/v1/model/ Create model
ModelApi list_models GET /api/v1/model/ List models
ModelApi push_model POST /api/v1/model/{model_id}/push/ Push model
PredictionApi get_prediction GET /api/v1/prediction/{prediction_id}/ Get prediction
PredictionApi get_prediction_results GET /api/v1/prediction/{prediction_id}/results/ Get prediction results
PredictionApi list_predictions GET /api/v1/prediction/ List predictions
PredictionApi run_prediction POST /api/v1/prediction/ Run prediction
ReportApi create_report POST /api/v1/report/ Create report
ReportApi delete_report DELETE /api/v1/report/{report_id}/ Delete report
ReportApi get_report GET /api/v1/report/{report_id}/ Get report
ReportApi list_reports GET /api/v1/report/ List reports
ReportApi preview_report GET /api/v1/report/{report_id}/preview/ Preview report
ReportApi update_report PUT /api/v1/report/{report_id}/ Update report
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 hgvs_dosage GET /api/v1/sample/ Fetch the dosage of a given allele for a sample based on the hgvs nomenclature. For example 'NC_000001.11:g.11794419T>G'
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
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
WorkflowApi get_workflow_run GET /api/v1/workflow/run/{workflow_run_id}/ Get workflow run
WorkflowApi list_workflow_runs GET /api/v1/workflow/run/ List workflow runs
DefaultApi status GET /api/v1/status/ Status

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

Auth0JWTBearer

  • Type: Bearer authentication

Author

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

haplohub-1.0.9.tar.gz (176.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

haplohub-1.0.9-py3-none-any.whl (194.8 kB view details)

Uploaded Python 3

File details

Details for the file haplohub-1.0.9.tar.gz.

File metadata

  • Download URL: haplohub-1.0.9.tar.gz
  • Upload date:
  • Size: 176.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for haplohub-1.0.9.tar.gz
Algorithm Hash digest
SHA256 fda95472c86fbb0b01ce622ae8d986da260858694da59c24f21b1859d51c6508
MD5 cd15ddf405487b660d336fa4b1e12022
BLAKE2b-256 31ad1835eacda817ddb0188480ec4d98184acd44ad0d774f227957c19306ab81

See more details on using hashes here.

Provenance

The following attestation bundles were made for haplohub-1.0.9.tar.gz:

Publisher: on_push_main.yml on haplotypelabs/haplohub-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file haplohub-1.0.9-py3-none-any.whl.

File metadata

  • Download URL: haplohub-1.0.9-py3-none-any.whl
  • Upload date:
  • Size: 194.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for haplohub-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 3ddd11bb7e4e9bee495923e01f018a671ea9112007f1a9be9de836691b1c4fab
MD5 85ba3a07207db997c1016c1fb8c7d9d3
BLAKE2b-256 e44af00d0c8c3e5a7292a12e9b906e99795ab37d0c47112a4340bc253c64bf5a

See more details on using hashes here.

Provenance

The following attestation bundles were made for haplohub-1.0.9-py3-none-any.whl:

Publisher: on_push_main.yml on haplotypelabs/haplohub-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page