Difference between revisions of "Coordinates"
From PastDB
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{#vardefine:limit|50}}{{#vardefine:offset|{{#expr:({{#urlget:offset|1}}-1)*{{#var:limit}} }} }}{{#vardefine:coords|{{#ifeq:{{#urlget:coords}}|||{{#urldecode:{{#urlget:coords}}}}}}}}{{#vardefine:genome|{{#urldecode:{{#urlget:genome| | + | {{#vardefine:limit|50}}{{#vardefine:offset|{{#expr:({{#urlget:offset|1}}-1)*{{#var:limit}} }} }}{{#vardefine:coords|{{#ifeq:{{#urlget:coords}}|||{{#urldecode:{{#urlget:coords}}}}}}}}{{#vardefine:genome|{{#urldecode:{{#urlget:genome|araTha10}}}}}} |
<div id="browse-coords"> | <div id="browse-coords"> | ||
{{#embedUCSC:coords={{#var:coords|}}|genome_id={{#var:genome|}}}} | {{#embedUCSC:coords={{#var:coords|}}|genome_id={{#var:genome|}}}} | ||
{{#CouchDB_Query_field:tag=select|query=AND genome:$1 AND class:Event|values=araTha10|id=genome-select|default={{#var:genome}}}} | {{#CouchDB_Query_field:tag=select|query=AND genome:$1 AND class:Event|values=araTha10|id=genome-select|default={{#var:genome}}}} | ||
− | {{#CouchDB_Query_field:tag=input|type=hidden|query=&sort=start | + | {{#CouchDB_Query_field:tag=input|type=hidden|query=&sort=start|id=result-sort}} |
− | {{#CouchDB_Query_table:type=couchdb-lucene-query|index=coords|db={{#getCouchDBinstance:}}|query=javascript:coordinates|text={{#urldecode:{{#urlget:coords|}}}}|header=Id,Assembly,Chromosome,Start,End,Avg,Range|fields=#id,#genome,chro,start,end,avg,range|prefixurl=id:/event/,genome:/assembly/|extra=#genome-select,#result-sort}} | + | {{#CouchDB_Query_table:type=couchdb-lucene-query|full=true|index=coords|db={{#getCouchDBinstance:}}|query=javascript:coordinates|text={{#urldecode:{{#urlget:coords|}}}}|header=Id,Assembly,Chromosome,Start,End,Avg,Range|fields=#id,#genome,chro,start,end,avg,range|prefixurl=id:/event/,genome:/assembly/|extra=#genome-select,#result-sort}} |
</div> | </div> |