全基因组复制鉴定
WGD的Python项目详细描述
WGDI
Author | Pengchuan Sun (sunpengchuan) |
sunpengchuan@gmail.com | |
License | BSD |
说明
精细识别全基因组复制事件,生成基因组同源表。
功能
- 生成同源基因点图。
- 通过colinerscan和mcscanx两个模块生成基因组同源表。
- 计算同源对的ks。
- 在同源基因点图中标记同源块的ks值,以帮助确定由不同加倍事件产生的共线片段。
安装
pip install wgdi
用法
以下是使用此模块的两种方法。第一个是通过模块调用传入配置参数选项。有关特定参数,请参见选项。第二种方法是执行脚本并将配置参数选项写入扩展名为的配置文件。具体执行方法见选项。
选项
$ wgdi -h -d DOTPLOT, --dotplot DOTPLOT More information, try to use 'wgdi -d example' -c CORRESPONDENCE, --correspondence CORRESPONDENCE More information, try to use 'wgdi -c example' -a ALIGNMENT, --alignment ALIGNMENT More information, try to use 'wgdi -a example' -r RETAIN, --retain RETAIN More information, try to use 'wgdi -r example' -bk BLKKS, --blkks BLKKS More information, try to use 'wgdi -bk example' -ks CALKS, --calks CALKS More information, try to use 'wgdi -ks example'
每个参数都是一个处理程序,详细信息可以通过wgdi-*example(*represent argument)获得,并保存到your
.conf或options。
$ wgdi -d example
[dotplot]
blast = blast file
gff1 = gff1 file
gff2 = gff2 file
lens1 = lens1 file
lens2 = lens2 file
genome1_name = Genome1 name
genome2_name = Genome2 name
WGD = 1
markersize = 0.5
savefile = savefile(.png,.pdf)
修改参数后,执行class
。运行()或wgdi-*your
.conf。
fromwgdi.dotplotimportdotplotoptions={'blast':'os_os.1e-5.blast','gff1':'os.gff','gff2':'os.gff','lens1':'os_chrs.lens','lens2':'os_chrs.lens','genome1_name':'os','genome2_name':'os','WGD ':1,'markersize':0.5,'savefile':'os_os.dotplot.new.png'}options=list(options.items())newdot=dotplot(options)newdot.run()