Skip to content

Shiny Graphing

ChaochihL edited this page Sep 28, 2018 · 1 revision

Setup:

$ angsd-wrapper shiny graphing

Note: this application is not meant to be used on clusters, only local computers.


ANGSD-wrapper contains a Shiny application for graphing Thetas and neutrality test statistics. This allows interactive plotting of data generated from ANGSD in the web browser: Interactive Plot of Theta Estimators

To use this, you first need a copy of your Theta results. If you are using a windowed analysis, you need the *.thetas.gz.pestPG file. If you used a cluster or other remote computer for the analysis, you will need to transfer the file from that computer to your local one. scp works well for this. Once you have the file, you can start the Shiny application doing the following:

$ angsd-wrapper shiny graphing

A web browser should open and it should look similar to the screenshot above. Initially, it will load the default data included with the package. You can load your data by using the file chooser. If you run into any issues, please submit an Issue on GitHub.

This application can also graph gene annotations along with Thetas. You can use the maize chromosome 10 annotation (downloaded from Ensembl) included in the repository as a test file. First, upload the file, then toggle the GFF annotation. Only genes are graphed now, but more features can be added by request.

Genes are plotted as blue with an alpha value. This allows you to see where gene annotations overlap. Please make sure you use the correct annotation for your reference genome.