-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bw zoomLevel, bed alwaysDrawLabel, dynamic track docs
- Loading branch information
Showing
27 changed files
with
247 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"restructuredtext.confPath": "${workspaceFolder}/docs", | ||
"python.pythonPath": "/Users/dli/anaconda3/bin/python" | ||
"python.pythonPath": "/Users/d/opt/anaconda3/bin/python" | ||
} |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,206 @@ | ||
Dynamic Tracks | ||
============== | ||
|
||
Dynamic tracks is a new track type in the Browser to show dynamics of data as animations. | ||
Currently numerical data and HiC chromatin interaction data can be visualized with this new track type. | ||
|
||
Use dynamic bedgraph format | ||
--------------------------- | ||
|
||
For the dynamic track visualization, we developed a new and easy to use format called `dynamic bedgraph`, it's almost | ||
same as regular bedgraph format, except last column is an array of values:: | ||
|
||
chr6 52424961 52425161 [10,9,8,7,6,5,4,3,2,1] | ||
chr6 52425286 52425296 [1,2,3,4,5,6,7,8,9,10] | ||
|
||
Format the file with bgzip and tabix, this example file can be accessed from https://vizhub.wustl.edu/public/misc/dynamicTrack/dynamic-hubs/test.dbg.gz, you can submit the new track file as a remote track: | ||
|
||
.. image:: _static/rt.png | ||
|
||
Use the URL to the track file and choose track type as ``dbedgraph``: | ||
|
||
.. image:: _static/db1.png | ||
|
||
After click *Submit* button, the new track will be added: | ||
|
||
.. image:: _static/db2.png | ||
|
||
An animated version is here: | ||
|
||
.. image:: _static/db3.gif | ||
|
||
Dynamic labels with dynamic track | ||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
The track file above can also be used to prepare a data hub file as below, specify the ``dynamicLabels`` at same time: | ||
|
||
.. code-block:: json | ||
[ | ||
{ | ||
"type": "dbedgraph", | ||
"url": "https://vizhub.wustl.edu/public/misc/dynamicTrack/dynamic-hubs/test.dbg.gz", | ||
"options": { | ||
"dynamicLabels": ['stage1','stage2','stage3','stage4','stage5','stage6','stage7','stage8','stage9','stage10'] | ||
}, | ||
"showOnHubLoad": true | ||
} | ||
] | ||
When you submit this file as a data hub, you could see the labels are ploted along with the corresponding data: | ||
|
||
.. image:: _static/db4.gif | ||
|
||
Make dynamic plot track from user interface | ||
------------------------------------------- | ||
|
||
Dynamic tracks can also be made from multiple existing numerical tracks, without any further reformat. | ||
In the screenshot below we have 3 bigWig tracks loaded to mm9 genome: | ||
|
||
.. image:: _static/dy1.png | ||
|
||
Select these 3 tracks while holding Shift key, then choose ‘Dynamic plot’ menu: | ||
|
||
.. image:: _static/dy2.png | ||
|
||
A new dynamic track will be displayed: | ||
|
||
.. image:: _static/dy3.png | ||
|
||
Right click the track gives your configuration menu: | ||
|
||
.. image:: _static/dy4.png | ||
|
||
An animated version can be seen below: | ||
|
||
.. image:: _static/singlecell.gif | ||
|
||
Make dynamic plot track using data hub | ||
-------------------------------------- | ||
|
||
Dynamic tracks can also be submitted to the browser by using the remote data hub function, just same as existing data hub syntax, dynamic tracks are coded in the JSON format as below: | ||
|
||
.. code-block:: json | ||
[ | ||
{ | ||
"type": "dynamic", | ||
"name": "dynamic plot example", | ||
"showOnHubLoad": true, | ||
"tracks": [ | ||
{ | ||
"type": "bigwig", | ||
"url": "https://vizhub.wustl.edu/public/misc/dynamicTrack/markers/ENCFF051LQD_H3K4me1.bigWig", | ||
"name": "CH12 H3K4me1" | ||
}, | ||
{ | ||
"type": "bigwig", | ||
"url": "https://vizhub.wustl.edu/public/misc/dynamicTrack/markers/ENCFF096TSJ_H3K27ac.bigWig", | ||
"name": "CH12 H3K27ac" | ||
}, | ||
{ | ||
"type": "bigwig", | ||
"url": "https://vizhub.wustl.edu/public/misc/dynamicTrack/markers/ENCFF011TAF_H3K4me3.bigWig", | ||
"name": "CH12 H3K4me3" | ||
}, | ||
{ | ||
"type": "bigwig", | ||
"url": "https://vizhub.wustl.edu/public/misc/dynamicTrack/markers/ENCFF700XWH_H3K36me3.bigWig", | ||
"name": "CH12 H3K36me3" | ||
} | ||
] | ||
} | ||
] | ||
Please notice the track type is ``dynamic``, the `tracks` attribute indicates the member tracks of this dynamic track. | ||
|
||
This hub is also available at https://vizhub.wustl.edu/public/misc/dynamicTrack/dynamic-hubs/plot.hub | ||
|
||
Open the Remote tracks menu: | ||
|
||
.. image:: _static/rt.png | ||
|
||
Then choose remote hub and load the hub from your hub’s URL: | ||
|
||
.. image:: _static/dy5.png | ||
|
||
The track will be loaded as below: | ||
|
||
.. image:: _static/dy6.png | ||
|
||
Make dynamic HiC maps from the user interface | ||
--------------------------------------------- | ||
|
||
Load more than 2 HiC tracks, selct all of them by holding *Shift* key, and click the `Dynamic HiC` button: | ||
|
||
.. image:: _static/dy10.png | ||
|
||
The new track is added as below: | ||
|
||
.. image:: _static/dy11.png | ||
|
||
Check the animated verison below: | ||
|
||
.. image:: _static/dy12.gif | ||
|
||
Make dynamic HiC maps using data hub | ||
------------------------------------ | ||
|
||
Dynamic HiC tracks can also be submitted using remote data hub function. Prepare a data hub file like below: | ||
|
||
.. code-block:: json | ||
[ | ||
{ | ||
"name": "dynamic hic", | ||
"type": "dynamichic", | ||
"tracks": [ | ||
{ | ||
"name": "olfactory receptor cell in situ Hi-C [4DNFIT4I5C6Z]", | ||
"type": "hic", | ||
"url": "https://data.4dnucleome.org/files-processed/4DNFIT4I5C6Z/@@download/4DNFIT4I5C6Z.hic" | ||
}, | ||
{ | ||
"name": "olfactory receptor cell in situ Hi-C [4DNFIXKC48TK]", | ||
"type": "hic", | ||
"url": "https://data.4dnucleome.org/files-processed/4DNFIXKC48TK/@@download/4DNFIXKC48TK.hic" | ||
} | ||
], | ||
"showOnHubLoad": true | ||
} | ||
] | ||
This hub is located at: https://vizhub.wustl.edu/public/misc/dynamicTrack/dynamic-hubs/dhic.hub | ||
|
||
Submit this link as a remote data hub: | ||
|
||
.. image:: _static/dy7.png | ||
|
||
The new dynamic HiC track is added: | ||
|
||
.. image:: _static/dy8.png | ||
|
||
Check the animated version below: | ||
|
||
.. image:: _static/dy9.gif | ||
|
||
Dynamic track options | ||
--------------------- | ||
|
||
Besides regular propeties like ``color``, ``backgroundColor`` and ``height`` etc, dynamic track has a set of propeties just for this track type. | ||
|
||
playing | ||
------- | ||
|
||
``playing`` indicates if the track animation is playing or paused, value can be `true` or `false` | ||
|
||
speed | ||
----- | ||
|
||
``speed`` indicates the playing speed of the animation, range from 1 to 10 where 1 is the slowest and 10 is the fastest. | ||
Value need be set in an array format, like ``[1]`` or ``[5]`` | ||
|
||
dynamicLabels | ||
------------- | ||
|
||
for ``dbedgraph`` track only. specify the labels with each data points. Values should be an array of strings. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ WashU Epigenome Browser | |
url | ||
local | ||
text | ||
dynamic | ||
installation | ||
add | ||
faq | ||
|