Skip to main content

Python package for ARS pass/fail test

Project description

Translator ARS Pass/Fail Testing

This testing framework performs single level pass/Fail analysis on queries it receives from the Test Runner.

ARS_Test Implementation

pip install ARS_Test_Runner 

CLI

The command-line interface is the easiest way to run the ARS_Test_Runner After installation, simply type ARS_Test_Runner --help to see required input arguments & options

  • ARS_Test_Runner

    • env : the environment to run the queries against (dev|ci|test|prod)
    • predicate: treats
    • runner_setting: creative mode inidicator (inferred)
    • expected_output: TopAnswer|Acceptable|BadButForgivable|NeverShow
    • biolink_object_aspect_qualifier: activity_or_abundance
    • biolink_object_direction_qualifier: increased/decreased
    • input_category: input type category (Gene/Chemical)
    • input_curie: normalized curie taken from assest.csv
    • output_curie: target output curie to do analysis on
  • example:

    • for single output (mvp2)
      • ARS_Test_Runner --env 'test' --predicate 'affects' --runner_setting '["inferred"]' --expected_output '["TopAnswer"]' --biolink_object_aspect_qualifier 'activity_or_abundance' --biolink_object_direction_qualifier 'increased' --input_category 'biolink:Gene' --input_curie 'NCBIGene:23394' --output_curie '["PUBCHEM.COMPOUND:3821"]'
    • for multi outputs (mvp1)
      • ARS_Test_Runner --env 'ci' --predicate 'treats' --runner_setting '["inferred"]' --expected_output '["TopAnswer","TopAnswer"]' --input_category 'biolink:Disease' --input_curie 'MONDO:0005301' --output_curie '["PUBCHEM.COMPOUND:107970","UNII:3JB47N2Q2P"]'

python

import asyncio
from ARS_Test_Runner.semantic_test import run_semantic_test
asyncio.run(run_semantic_test('ci','treats',['inferred'], ['TopAnswer','TopAnswer'],'','','biolink:Disease', 'MONDO:0005301',['PUBCHEM.COMPOUND:107970','UNII:3JB47N2Q2P']))
asyncio.run(run_semantic_test('ci','affects',['inferred'], ['TopAnswer'],'activity_or_abundance','increased','biolink:Gene' ,'NCBIGene:23394',['PUBCHEM.COMPOUND:3821']))

OR

python semantic_test.py --env 'ci' --predicate 'treats' --runner_setting 'inferred' --expected_output 'TopAnswer' 'TopAnswer' --input_category 'biolink:Disease' --input_curie 'MONDO:0005301' --output_curie 'PUBCHEM.COMPOUND:107970' 'UNI:3JB47N2Q2P'
python semantic_test.py --env 'ci' --predicate 'affects' --runner_setting 'inferred' --expected_output 'TopAnswer' --biolink_object_aspect_qualifier 'activity_or_abundance' --biolink_object_direction_qualifier 'increased' --input_category 'biolink:Gene' --input_curie 'NCBIGene:23394' --output_curie 'PUBCHEM.COMPOUND:3821'

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

ARS_Test_Runner-0.2.5.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

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

ARS_Test_Runner-0.2.5-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file ARS_Test_Runner-0.2.5.tar.gz.

File metadata

  • Download URL: ARS_Test_Runner-0.2.5.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.8.18

File hashes

Hashes for ARS_Test_Runner-0.2.5.tar.gz
Algorithm Hash digest
SHA256 23e9d265563f6ddff52d70f17dbcf2a2efc303f537a0936c95a3bf88714e6ac0
MD5 e08e7258335048d2589396506d81f2cb
BLAKE2b-256 8619a99008db46b82e164035c052ee533fe3dc478d7379bf7a713a3a2948ad41

See more details on using hashes here.

File details

Details for the file ARS_Test_Runner-0.2.5-py3-none-any.whl.

File metadata

File hashes

Hashes for ARS_Test_Runner-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3abc61d9604b3775804c85a83e823f40bf430ef0f4dbdf314d2c962756143cd8
MD5 a11959ae2c2a15320a2e187ea9a889b4
BLAKE2b-256 324122ba55cd87b61f4fb1dc3889c4b529ff8d946ee61b302a6b5a2a623a28c8

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