Zhong-Lab-UCSD / Genomic-Interactive-Visualization-Engine

Genomic Interactive Visualization Engine
https://www.givengine.org/
Apache License 2.0
145 stars 31 forks source link

Opening GIVE at a specific position via a link #86

Open ifantasy opened 6 years ago

ifantasy commented 6 years ago

Hi! I want to create a link to direct users to a specific position in GIVE. I was wondering if GIVE has such a function. I know one method like constructing a URL and share it to others.

caoxiaoyi03 commented 6 years ago

If you use GIVE HUG to create your HTML code, you may use the "Default coordinates" field to specify the genomic position. You may look up gene name if the reference supports.

If you create the HTML code from scratch, you may use attribute coordinates='["chrX:XXXXX-XXXXX"]' (Single window) or coordinates='["chrX:XXXXX-XXXXX", "chrY:YYYYY-YYYYY"]' (Dual window). Please note the use of quotation marks (we recommend using single quotes outside and double quotes inside).

caoxiaoyi03 commented 5 years ago

This function has been added in commit https://github.com/Zhong-Lab-UCSD/Genomic-Interactive-Visualization-Engine/commit/ffe886b47b78206388549306132e8f4ffdf8826f. Will work on documentation in the next major update.