circos报错处理:Error parsing the configuration file

circos: Error parsing the configuration file

环境

  • 系统:Ubuntu 18.04
  • 安装 sudo apt install circos

报错

lzn@lzn-PC:~/CKX/gene_duplication/circos$ circos -conf circos.conf

debuggroup summary 0.12s welcome to circos v0.69-6 31 July 2017 on Perl 5.026001
debuggroup summary 0.12s current working directory /home/lzn/CKX/gene_duplication/circos
debuggroup summary 0.12s command circos -conf circos.conf
debuggroup summary 0.13s loading configuration from file circos.conf
debuggroup summary 0.13s found conf file circos.conf

*** CIRCOS ERROR ***

  cwd: /home/lzn/CKX/gene_duplication/circos

  command: /usr/bin/circos -conf circos.conf

CONFIGURATION FILE ERROR

Error parsing the configuration file. You used an <<include FILE>> directive,
but the FILE could not be found. This FILE is interpreted relative to the
configuration file in which the <<include>> directive is used. Circos lookd
for the file in these directories

/etc/circos

.

./etc

/usr/bin/etc

/usr/bin/…/etc

/usr/bin/…

/usr/bin

The Config::General module reported the error

Config::General The file “etc/fonts/fonts.conf” does not exist within
ConfigPath:
/etc/circos…/etc./usr/bin/etc./usr/bin/…/etc./usr/bin/…/usr/bin! at
/usr/share/perl5/Circos/Configuration.pm line 820.

If you are having trouble debugging this error, first read the best practices
tutorial for helpful tips that address many common problems

  http://www.circos.ca/documentation/tutorials/reference/best_practices

The debugging facility is helpful to figure out what’s happening under the
hood

  http://www.circos.ca/documentation/tutorials/configuration/debugging

If you’re still stumped, get support in the Circos Google Group.

  http://groups.google.com/group/circos-data-visualization

Please include this error, all your configuration, data files and the version
of Circos you’re running (circos -v).Do not email me directly – please use
the group.

Stack trace:
at /usr/share/perl5/Circos/Error.pm line 425.
Circos::Error::fatal_error(“configuration”, “cannot_find_include”, “/etc/circos\x{a}.\x{a}./etc\x{a}/usr/bin/etc\x{a}/usr/bin/…/etc\x{a}/usr/bin/…\x{a}”…, “Config::General The file “etc/fonts/fonts.conf” does not exis”…) called at /usr/share/perl5/Circos/Configuration.pm line 826
Circos::Configuration::loadconfiguration(“circos1.txt”) called at /usr/share/perl5/Circos.pm line 148
Circos::run(“Circos”, “_argv”, “-conf circos1.txt”, “configfile”, “circos1.txt”, “_cwd”, “/home/lzn/CKX/gene_duplication/circos”) called at /usr/bin/circos line 538

报错原因

Error parsing the configuration file. You used an <> directive,
but the FILE could not be found. This FILE is interpreted relative to the
configuration file in which the <> directive is used. Circos lookd
for the file in these directories

中文大概意思是:解析配置文件失败。你使用的<<include FILE>>找不到。该文件对于使用<<include>>指令的配置文件进行解释。

<<include FILE>>是在你画circos图的配置文件(本文中的circos.conf)中指定的。

circos.conf中的具体内容:

chromosomes_units=1000000
<ideogram>
fill=yes
label_font=default
label_parallel=yes
label_radius=dims(image,radius)-60p
label_size=45
radius=0.90r

​ …

</ticks>
<colors>
<<include etc/colors.conf>> #找不到
<<include etc/brewer.conf>> #找不到
#<<include etc/colors_fonts_patterns.conf>> #找不到
#<< include colors.ucsc.conf>>
#<< include colors.hsv.conf>>
</colors>

<fonts>
<<include etc/fonts.conf>> #找不到
</fonts>

<image>
<<include etc/image.conf>> #找不到
</image>
<<include etc/housekeeping.conf>> #找不到

解决办法

因为找不到<<include FILE>>文件。同时提示:circos在如下目录:

/etc/circos

.

./etc

/usr/bin/etc

/usr/bin/…/etc

/usr/bin/…

/usr/bin

中查找文件。这些<<include FILE>>都在 /etc/circos文件夹中,所以只需将配置文件中的路径改为/etc/circos内即可。例如:

</ticks>
<colors>
<<include /etc/circos/colors.conf>>
<<include /etc/circos/brewer.conf>>
#<<include /etc/circos/colors_fonts_patterns.conf>>
#<< include colors.ucsc.conf>>
#<< include colors.hsv.conf>>
</colors>

<fonts>
<<include /etc/circos/fonts.conf>>
</fonts>

<image>
<<include /etc/circos/image.conf>>
</image>
<<include /etc/circos/housekeeping.conf>>

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值