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"]'
- for single output (mvp2)
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
Release history Release notifications | RSS feed
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.4.tar.gz
(9.8 kB
view details)
Built Distribution
File details
Details for the file ARS_Test_Runner-0.2.4.tar.gz
.
File metadata
- Download URL: ARS_Test_Runner-0.2.4.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c791ca35645b70d0f982e4f98fa4b261e16ce5b69bffa9383062b0d2cee29aa |
|
MD5 | 5e19bec2185c687a1b428642e59f2b88 |
|
BLAKE2b-256 | 7cb6aff07a2635bf69c19b9e5b4b4e66560538116f76ad14a8b99a2df9d64602 |
File details
Details for the file ARS_Test_Runner-0.2.4-py3-none-any.whl
.
File metadata
- Download URL: ARS_Test_Runner-0.2.4-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f18a34a83143481234a60db253687be1fafbe0631392ba57145e25dc23e206c |
|
MD5 | 05f41fa08899fab80b94acabaccb9e54 |
|
BLAKE2b-256 | fa1a2c2274b87c32a6e71596180ef300ebde4d98e33ab6600b0858a05696220b |