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'
Metadata
Release files for ARS-Test-Runner 0.2.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ARS_Test_Runner-0.2.6.tar.gz | 9.0 kB | Without provenance | Details for ARS_Test_Runner-0.2.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ARS_Test_Runner-0.2.6-py3-none-any.whl | Python 3 | none | any | Details for ARS_Test_Runner-0.2.6-py3-none-any.whl |
Total release size: 19.6 kB
Release files / ARS_Test_Runner-0.2.6.tar.gz
| Download URL | ARS_Test_Runner-0.2.6.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
075e0c86e78a89573c4eccafb7e16fb8eb8c53f6f340cecbe24efd8de0781cd1
|
|
BLAKE2b-256 checksum How to use checksums |
6bc261e663220c5be9dc1b3218c299598c5be9d65a1a8fe21684933dfea131cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / ARS_Test_Runner-0.2.6-py3-none-any.whl
| Download URL | ARS_Test_Runner-0.2.6-py3-none-any.whl |
|---|---|
| Size | 10.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d8dcc44f53354e03a39967672b3856cae198af6e29048ea4d414bda8a56e3b24
|
|
BLAKE2b-256 checksum How to use checksums |
e740db70cef339426cbc54e65874e0648d3615f6cfbcdc1c2c1e9fa2cb2d86ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Security for ARS-Test-Runner 0.2.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.