Skip to content

Instantly share code, notes, and snippets.

@albertmeronyo
Created April 30, 2015 19:30
Show Gist options
  • Save albertmeronyo/9896a5458d9c105e532d to your computer and use it in GitHub Desktop.
Save albertmeronyo/9896a5458d9c105e532d to your computer and use it in GitHub Desktop.
SCRY paper queries
PREFIX scry:<http://www.scry.rocks/>
SELECT ?pau ?desc WHERE {
GRAPH scry:orb_description {
scry:orb scry:procedure ?pau .
?pau scry:description ?desc .
}
}
PREFIX scry: <http://www.scry.rocks/>
PREFIX math: <http://www.scry.rocks/math/>
SELECT ?desc ?pred ?arg {
GRAPH scry:orb_description {
{math:stdev scry:description ?desc .}
UNION
{math:stdev ?pred ?arg_node .
?arg_node scry:identifier ?arg_id
scry:description ?arg_desc .}
}
BIND(CONCAT("'",?arg_id,"' - ",?arg_desc) AS ?arg)
}
PREFIX scry: <http://www.scry.rocks/>
PREFIX blast: <http://www.scry.rocks/blast/>
PREFIX input: <http://www.scry.rocks/input?>
PREFIX output: <http://www.scry.rocks/output?>
SELECT ?uniprot_id ?homolog_id ?score WHERE {
VALUES(?uniprot_id) {("P68871") ("P02008")}
GRAPH ?g1 {blast:fetch_sequence input:_ ?uniprot_id ;
output:file ?file .}
GRAPH ?g2 {blast:blast input:file ?file ;
input:evalue "1e-20" ;
output:ac ?homolog_id ;
output:e_val ?e_value .}
} ORDER BY ?homolog_id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment