| 1 | = xQTL GBrowse integration = |
| 2 | |
| 3 | == How to add GBrowse linkouts to MOLGENIS databases == |
| 4 | |
| 5 | === Add a query option to the 'rubberband' menu where you can drag to select a genomic region === |
| 6 | |
| 7 | Open your GBrowse *.conf file. The rubberband menu has HTML elements and looks like this: |
| 8 | |
| 9 | {{{ |
| 10 | [DETAIL SELECT MENU] |
| 11 | width = 250 |
| 12 | html = <table style="width:100%"> |
| 13 | <tr> |
| 14 | <th style="background:lightgrey;cell-padding:5"> |
| 15 | SELECTION |
| 16 | <span style="right:0px;position:absolute;color:blue;cursor:pointer" |
| 17 | onclick="SelectArea.prototype.cancelRubber()"> |
| 18 | [X] |
| 19 | </span> |
| 20 | </th> |
| 21 | </tr> |
| 22 | }}} |
| 23 | |
| 24 | We add a table row with the linkout to a URL like this: |
| 25 | |
| 26 | {{{ |
| 27 | <tr> |
| 28 | <td onmouseup="SelectArea.prototype.cancelRubber()"> |
| 29 | <a href="http://vm7.target.rug.nl/xqtl_unstable/api/find/org.molgenis.xgap.Marker?name=SELECTION" target="_BLANK"> |
| 30 | molgenis region query |
| 31 | </a> |
| 32 | </td> |
| 33 | </tr> |
| 34 | }}} |
| 35 | |
| 36 | The value of SELECTION is a GBrowse notation, so the accepting service must be compatible with these requests. An example of a resulting request: |
| 37 | |
| 38 | {{{ |
| 39 | .../api/find/org.molgenis.xgap.Marker?name=chr1:3790000..4759999 |
| 40 | }}} |
| 41 | |
| 42 | At the moment there is no MolgenisService to facility this, but it the principles are trivial. |
| 43 | |
| 44 | === Add a popup balloon to an annotation track === |
| 45 | |
| 46 | Open your GBrowse *.conf file. In the track, which e.g. looks like this: |
| 47 | |
| 48 | {{{ |
| 49 | [hxb-sdp] |
| 50 | feature = experimental_feature:hxb_sdp |
| 51 | database = variations |
| 52 | }}} |
| 53 | |
| 54 | We add a `balloon` property, with a hyperlink, like this: |
| 55 | |
| 56 | {{{ |
| 57 | balloon click = <h2>Marker $name</h2> |
| 58 | <a href='http://vm7.target.rug.nl/xqtl_unstable/api/find/org.molgenis.xgap.Marker?name=$id'>Marker info from molgenis</a><br> |
| 59 | }}} |
| 60 | |
| 61 | When clicking this link, it will request a marker by ID. The correct mapping for the $-variable to MOLGENIS entity attribute should be investigated on a per-database basis. |
| 62 | |
| 63 | {{{ |
| 64 | .../api/find/org.molgenis.xgap.Marker?name=1 |
| 65 | }}} |
| 66 | |
| 67 | == Online GBrowse at GWAS Central (HGV-Base) == |
| 68 | |
| 69 | http://www.gwascentral.org/browser/genome?r=HGVRS1375,HGVRS1374,HGVRS1373&t= |
| 70 | |
| 71 | == Online GBrowse at WormBase == |
| 72 | |
| 73 | http://www.wormbase.org/db/gb2/gbrowse/c_elegans/?name=I:10747696..10779324 |