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.6.tar.gz (9.0 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.6-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ARS_Test_Runner-0.2.6.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for ARS_Test_Runner-0.2.6.tar.gz
Algorithm Hash digest
SHA256 075e0c86e78a89573c4eccafb7e16fb8eb8c53f6f340cecbe24efd8de0781cd1
MD5 eaf318c71cf94cf1a58d185f2a6b4e3d
BLAKE2b-256 6bc261e663220c5be9dc1b3218c299598c5be9d65a1a8fe21684933dfea131cd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for ARS_Test_Runner-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 d8dcc44f53354e03a39967672b3856cae198af6e29048ea4d414bda8a56e3b24
MD5 b29a6f96d333bfa0799d95238675a788
BLAKE2b-256 e740db70cef339426cbc54e65874e0648d3615f6cfbcdc1c2c1e9fa2cb2d86ae

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