nucmer可視化

gitee:https://gitee.com/liaochenlanruo/mummer2circos
github: https://github.com/metagenlab/mummer2circos

來源:https://taylorreiter.github.io/2019-05-11-Visualizing-NUCmer-Output/

比對及R語言可視化

Installing mummer

conda create -n mummer 
conda activate mummer
conda install -c bioconda mummer4=4.0.0beta2

Running nucmer

To download the test data, run:

# M. harundinacea 6AC
wget -O mh6ac.fasta.gz ftp://ftp.ncbi.nlm.nih.gov/genomes/all/GCA/000/235/565/GCA_000235565.1_ASM23556v1/GCA_000235565.1_ASM23556v1_genomic.fna.gz
gunzip mh6ac.fasta.gz

# M. harundinacea MAG07
wget -O mag07.fasta https://osf.io/d9qyg/download 

The general structure of the nucmer command looks like this:

nucmer --mum reference.fasta query.fasta -p query_ref_nucmer

We will use the genbank assembly as a reference, and the metagenome assembled genome bin as the query.

nucmer --mum mh6ac.fasta mag07.fasta -p m_harundinacea

Here, we filter the nucmer output to only include alignment of length 1000. This is arbitrary, and you should use a length that makes sense for your biological question.

delta-filter -l 1000 -q m_harundinacea.delta > m_harundinacea_filter.delta
show-coords -c -l -L 1000 -r -T m_harundinacea_filter.delta > m_harundinacea_filter_coords.txt

Simple plot

  • -r reference fasta
  • -q other fasta with to compare with the reference fasta
  • -l mendatory option to build circular plots
  • genome tracks are ordered based on the order of the input query fasta files
mummer2circos -l -r genomes/NZ_CP008827.fna -q genomes/*fna
nucmer2circos_simple.png

Condensed tracks

mummer2circos -l -c -r genomes/NZ_CP008827.fna -q genomes/*fna
nucmer2circos_condensed.png

With gene tracks

  • the header of the reference fasta file chromosome (and eventual plasmids) should be the same as the locus accession of the genbank file. See example file NZ_CP008828.fna.

LOCUS NZ_CP008828 15096 bp DNA CON 16-AUG-2015

mummer2circos -l -r genomes/NZ_CP008827.fna -q genomes/*.fna -gb GCF_000281535_merged.gbk
nucmer2circos_gene_tracks.png

Label specific genes

  • given a fasta file of protein of interest, label the BBH of each amino acid sequence on the circular plot
  • the fasta headers are used as labels (see example file VF.faa)
mummer2circos -l -r genomes/NZ_CP008827.fna -q genomes/*.fna -gb GCF_000281535_merged.gbk -b VF.faa
nucmer2circos_labels.png

Show mapping depth along the chromosome (and plasmids)

  • depth files can be generated from bam file using samtools depth
  • the labels used in the .depth file should be the same as the fasta header (see example files)
  • regions with depth higher than 2 times the median are croped to that limit and coloured in green (deal with highly repeated sequences).
  • regions with depth lower than half of the median depth are coloured in red.
mummer2circos -l -r genomes/NZ_CP008827.fna -q genomes/*.fna -gb GCF_000281535_merged.gbk -b VF.faa -s GCF_000281535.depth
nucmer2circos_depth.png

Add labels based on coordinate file

  • structure: LOCUS start stop label (see labels.txt)
  • labels can not include spaces
mummer2circos -l -r genomes/NZ_CP008827.fna -q genomes/NZ_FO834906.fna -gb GCF_000281535_merged.gbk -b VF.faa -s GCF_000281535.depth -lf labels.txt
nucmer2circos_labels_coord.png

show links between two genomes

mummer2circos -r genomes/NZ_CP012745.fna -q genomes/*.fna -gb GCF_000281535_merged.gbk -b VF.faa -s GCF_000281535.depth -lf labels.txt
nucmer2circos_links.png
?著作權歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市,隨后出現(xiàn)的幾起案子段审,更是在濱河造成了極大的恐慌抑钟,老刑警劉巖食磕,帶你破解...
    沈念sama閱讀 217,185評論 6 503
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件尽棕,死亡現(xiàn)場離奇詭異,居然都是意外死亡彬伦,警方通過查閱死者的電腦和手機,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 92,652評論 3 393
  • 文/潘曉璐 我一進店門伊诵,熙熙樓的掌柜王于貴愁眉苦臉地迎上來单绑,“玉大人,你說我怎么就攤上這事曹宴÷С龋” “怎么了?”我有些...
    開封第一講書人閱讀 163,524評論 0 353
  • 文/不壞的土叔 我叫張陵笛坦,是天一觀的道長区转。 經(jīng)常有香客問我,道長版扩,這世上最難降的妖魔是什么废离? 我笑而不...
    開封第一講書人閱讀 58,339評論 1 293
  • 正文 為了忘掉前任,我火速辦了婚禮礁芦,結(jié)果婚禮上蜻韭,老公的妹妹穿的比我還像新娘。我一直安慰自己柿扣,他們只是感情好肖方,可當我...
    茶點故事閱讀 67,387評論 6 391
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著未状,像睡著了一般俯画。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上司草,一...
    開封第一講書人閱讀 51,287評論 1 301
  • 那天艰垂,我揣著相機與錄音,去河邊找鬼翻伺。 笑死材泄,一個胖子當著我的面吹牛,可吹牛的內(nèi)容都是我干的吨岭。 我是一名探鬼主播拉宗,決...
    沈念sama閱讀 40,130評論 3 418
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了旦事?” 一聲冷哼從身側(cè)響起魁巩,我...
    開封第一講書人閱讀 38,985評論 0 275
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎姐浮,沒想到半個月后谷遂,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 45,420評論 1 313
  • 正文 獨居荒郊野嶺守林人離奇死亡卖鲤,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 37,617評論 3 334
  • 正文 我和宋清朗相戀三年肾扰,在試婚紗的時候發(fā)現(xiàn)自己被綠了。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片蛋逾。...
    茶點故事閱讀 39,779評論 1 348
  • 序言:一個原本活蹦亂跳的男人離奇死亡集晚,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出区匣,到底是詐尸還是另有隱情偷拔,我是刑警寧澤,帶...
    沈念sama閱讀 35,477評論 5 345
  • 正文 年R本政府宣布亏钩,位于F島的核電站莲绰,受9級特大地震影響,放射性物質(zhì)發(fā)生泄漏姑丑。R本人自食惡果不足惜蛤签,卻給世界環(huán)境...
    茶點故事閱讀 41,088評論 3 328
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望彻坛。 院中可真熱鬧顷啼,春花似錦、人聲如沸昌屉。這莊子的主人今日做“春日...
    開封第一講書人閱讀 31,716評論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽间驮。三九已至躬厌,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間竞帽,已是汗流浹背扛施。 一陣腳步聲響...
    開封第一講書人閱讀 32,857評論 1 269
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留屹篓,地道東北人疙渣。 一個月前我還...
    沈念sama閱讀 47,876評論 2 370
  • 正文 我出身青樓,卻偏偏與公主長得像堆巧,于是被迫代替她去往敵國和親妄荔。 傳聞我的和親對象是個殘疾皇子泼菌,可洞房花燭夜當晚...
    茶點故事閱讀 44,700評論 2 354

推薦閱讀更多精彩內(nèi)容