Skip navigation

UPDATE: This tool now lives on GitHub

A friend in the lab needed to visualise coverage of metagenomic reads on a small genome and dnaplotter was not quite up to the task. It’s annoyed me for a while that there are at least two papers reporting fragment recruitment visualisation tools, but neither have actually published their code. Tsk tsk. So I knocked together a script which takes a reference genome and a BLAST output file (in -m 8 tabular format), and plots the read depth across the reference genome. You can also supply a simple comma-separated ”features file” and a “features” track will be added so you can see where key genes lie in relation to coverage.

Example output - click to magnify

The script supports smoothing of coverage by binning into windows of customisable size. For now it will only produce a linear plot but I’m working on circular. Requires R but no non-standard packages. Note that the script will plot every single hit in your BLAST table, so filter it to your specifications first. Get the code here:

https://github.com/wilkox/blast-tools

As always, feedback is very very welcome.

Advertisement

2 Trackbacks/Pingbacks

  1. [...] plot_coverage.pl now does plots of average percent identity of reads recruited to a genome. Get it while it’s hot. Don’t forget to email me or comment with your feedback. [...]

  2. [...] perl script for plotting BLAST-based fragment recruitment against a reference sequence has been updated. You can now overlay up to five different queries on [...]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.