Difference between revisions of "Pharmacoracle"

(Pharmacoracle a REST API based on the OWLAPI)
(Pharmacoracle - a REST API based on the OWLAPI)
Line 1: Line 1:
==''Pharmacoracle'' - a REST API based on the OWLAPI==
+
==Pharmacoracle - a REST API based on the OWLAPI==
The ''Pharmacoracle'' contains OWL ontologies that are based on CPIC recommendations provided by PharmGKB, and which have been further curated to fit the needs of the Department of Pharmacology at Oslo University Hospital by the Standford WebProtégé hosted at https://www.pgx.no/webprotege
+
The Pharmacoracle contains OWL ontologies that are based on CPIC recommendations provided by PharmGKB, and which have been further curated to fit the needs of the Department of Pharmacology at Oslo University Hospital.
  
Queries to ''Pharmacoracle'' can be performed in the Manchester syntax
+
Queries to Pharmacoracle can be performed in the Manchester syntax.
  
 
===Examples of use===
 
===Examples of use===
 +
Find the PGx alleles that contain the variant snpC>T at chr6:18139228
 +
<pre>curl https://www.pgx.no/api/pharmacoracle -d "drugs=haplotypes&query=SubClasses:snpCtoT_at some chr6_18139228"</pre>
 +
 
Find the Azathioprine TPMT functional status of the TPMT*3B allele:
 
Find the Azathioprine TPMT functional status of the TPMT*3B allele:
 
<pre>curl https://www.pgx.no/api/pharmacoracle -d "drugs=azathioprine&query=SuperClasses:has_haplotype some TPMTstar3B"</pre>
 
<pre>curl https://www.pgx.no/api/pharmacoracle -d "drugs=azathioprine&query=SuperClasses:has_haplotype some TPMTstar3B"</pre>

Revision as of 13:32, 13 July 2018

Pharmacoracle - a REST API based on the OWLAPI

The Pharmacoracle contains OWL ontologies that are based on CPIC recommendations provided by PharmGKB, and which have been further curated to fit the needs of the Department of Pharmacology at Oslo University Hospital.

Queries to Pharmacoracle can be performed in the Manchester syntax.

Examples of use

Find the PGx alleles that contain the variant snpC>T at chr6:18139228

curl https://www.pgx.no/api/pharmacoracle -d "drugs=haplotypes&query=SubClasses:snpCtoT_at some chr6_18139228"

Find the Azathioprine TPMT functional status of the TPMT*3B allele:

curl https://www.pgx.no/api/pharmacoracle -d "drugs=azathioprine&query=SuperClasses:has_haplotype some TPMTstar3B"