LoginSignup
0
1

More than 1 year has passed since last update.

[Biopython]BLAST結果をドットプロットとして描画する

Last updated at Posted at 2022-12-31

動機

ドットプロット (ハープロット)をもっと気軽に描きたい。
BLASTYASSも便利だが、SVG形式のファイルでアウトプットしたい。

blast2dotplot.py

Requirements

pandas
svgwrite (verified with v. 1.4.3)
Biopython (verified with v. 1.79)

Usage

$ ./blast2dotplot.py
usage: blast2dotplot.py [-h] --input FILE

Draw a dot plot based on a pairwise BLASTN/TBLASTX result

optional arguments:
  -h, --help            show this help message and exit
  --input FILE, --in FILE, -i FILE
                        input BLASTN/TBLASTX result file in XML format (-outfmt 5)

Output example

200174764-310d8112-2e50-42b6-9e31-b030a48648c2.png

  • 順鎖のヒットを青、逆鎖のヒットをオレンジで表現する
  • 今後 output file名を指定可能にする
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1