Skip to main content

No project description provided

Project description

Installing

pip3 install miqatools --upgrade

Usage

Multi-sample Test Execution

from miqatools.remoteexecution.triggertestandupload_python import trigger_test_and_upload_by_dsid
from miqatools.remoteexecution.triggertest_helpers import get_trigger_info

server_url = "YOURCO.miqa.io"
trigger_id = "YOUR_TRIGGER_ID"
api_key = "YOUR_API_KEY"

# First create the lookup of test result file locations for each dataset:
ds_id_mapping = get_trigger_info(server_url, trigger_id, api_key=api_key).get("ds_id_mapping", {}).get("results",{}).get("data",{})
locations_lookup_by_dsid = {ds_id_mapping.get(k):v for k,v in locations_lookup_by_samplename.items()}

# Use the dataset location lookup and trigger info to kick off "execution" of the trigger, uploading the outputs
run_id = trigger_test_and_upload_by_dsid(server_url, trigger_id, "YOUR_VERSION_NAME", locations_lookup_by_dsid, filepatterns=["*.vcf"], api_key=api_key)

Create and Tag Stand-In Datasets

from miqatools.datamanagement.datasethelpers import batch_create_datasets_and_tag_or_group

server_url = "YOURCO.miqa.io"
trigger_id = "YOUR_TRIGGER_ID"
api_key = "YOUR_API_KEY"

batch_create_datasets_and_tag_or_group(server_url, 1, 1, ["Sample1","Sample2"], ["BATCH_1","another_tag"], "BATCH_1", api_key=api_key)

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

miqatools-1.1.7.tar.gz (11.3 kB view details)

Uploaded Source

File details

Details for the file miqatools-1.1.7.tar.gz.

File metadata

  • Download URL: miqatools-1.1.7.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for miqatools-1.1.7.tar.gz
Algorithm Hash digest
SHA256 47f940a8a0b761da043a3a0c4849d747f52a4905a98a1e213b45710ffc776094
MD5 d3e5f6a2124a9325c8eb1a1749fa8628
BLAKE2b-256 bf84c25d0e1a8ff9092fe5724df6e34fafc574f1513140e2f17122cce941c8ee

See more details on using hashes here.

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