這篇文章主要講解了“circos中的pattern怎么使用”,文中的講解內(nèi)容簡(jiǎn)單清晰,易于學(xué)習(xí)與理解,下面請(qǐng)大家跟著小編的思路慢慢深入,一起來(lái)研究和學(xué)習(xí)“circos中的pattern怎么使用”吧!
創(chuàng)新互聯(lián)是一家業(yè)務(wù)范圍包括IDC托管業(yè)務(wù),虛擬空間、主機(jī)租用、主機(jī)托管,四川、重慶、廣東電信服務(wù)器租用,多線服務(wù)器托管,成都網(wǎng)通服務(wù)器托管,成都服務(wù)器租用,業(yè)務(wù)范圍遍及中國(guó)大陸、港澳臺(tái)以及歐美等多個(gè)國(guó)家及地區(qū)的互聯(lián)網(wǎng)數(shù)據(jù)服務(wù)公司。
在官網(wǎng)提供的配置文件示例中,經(jīng)常會(huì)見(jiàn)到pattern
這個(gè)參數(shù)。這個(gè)參數(shù)的作用和fill_color
類似,都用于指定填充的樣式,只不過(guò)fill_color
使用顏色進(jìn)行填充,pattern
則用點(diǎn)和線進(jìn)行填充。
在hisograms
, heatmap
,links
這3種block 中,可以使用pattern
參數(shù),指定填充的樣式,用法如下:
pattern = checker
pattern
參數(shù)的取值范圍包括以下9種:
solid
hline
hline-sparse
vline
vline-sparse
checker
checker-sparse
dot
dot-sparse
在軟件的安裝目錄下的etc/patterns.conf
中,保存了pattern
的配置信息
在tiles
目錄下,可以找到每種樣式對(duì)應(yīng)的圖片。根據(jù)名字,可以把分成以下5大類別
hlines :
hlines-sparse :
vlines :
vline-sparse:
checkers :
checkers-sparse:
dots :
dots-sparse :
solid
代表完全填充,hlines
代表水平線填充,vlines
代表豎線填充,checker
代表格子填充,dots
代表用點(diǎn)填充;加上sparse
后綴,相比不加后綴時(shí),會(huì)稀疏一點(diǎn)。
pattern
默認(rèn)的樣式都是白底黑字,可以結(jié)合color
屬性來(lái)改變其顏色。有以下兩種寫法:
示例
color = red
pattern = hlines
此時(shí)白色的背景依然不會(huì)變,但是默認(rèn)的黑色的字體會(huì)替換成紅色
示例
color = white:red,black:orange
冒號(hào)分隔的兩個(gè)顏色代表替換的意思,white:red
表示將默認(rèn)的白色背景替換成紅色,black:orange
代表將黑色替換成橙色。
結(jié)合pattern
和color
, 可以使得填充更加的多元化。看一個(gè)例子
對(duì)應(yīng)的配置文件為
<<include etc/colors_fonts_patterns.conf>> <<include ideogram.conf>> <<include ticks.conf>> karyotype = data/karyotype/karyotype.human.txt <image> <<include etc/image.conf>> </image> chromosomes_units = 1000000 chromosomes_display_default = yes <links> <link> file = data/8/15/links.txt ribbon = yes flat = yes radius = 0.95r bezier_radius = 0r crest = 0.2 <rules> <rule> condition = rand() < 0.5 pattern = eval((qw(hline vline checker dot))[rand(4)]) color = black:dblue,white:vlblue z = 10 </rule> <rule> condition = rand() < 0.5 pattern = eval((qw(hline vline checker dot))[rand(4)]) z = 5 </rule> </rules> </link> </links> <<include etc/housekeeping.conf>>
感謝各位的閱讀,以上就是“circos中的pattern怎么使用”的內(nèi)容了,經(jīng)過(guò)本文的學(xué)習(xí)后,相信大家對(duì)circos中的pattern怎么使用這一問(wèn)題有了更深刻的體會(huì),具體使用情況還需要大家實(shí)踐驗(yàn)證。這里是創(chuàng)新互聯(lián),小編將為大家推送更多相關(guān)知識(shí)點(diǎn)的文章,歡迎關(guān)注!
當(dāng)前題目:circos中的pattern怎么使用
本文網(wǎng)址:http://aaarwkj.com/article12/ihpgdc.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供關(guān)鍵詞優(yōu)化、全網(wǎng)營(yíng)銷推廣、企業(yè)網(wǎng)站制作、服務(wù)器托管、營(yíng)銷型網(wǎng)站建設(shè)、網(wǎng)站導(dǎo)航
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)