运行软件plotsr时报错:“ImportError: Incomplete genomic information”

为了对 syri.out (assembly的变异检测结果)进行可视化处理,本人选择了plotsr软件对其基因组重排现象进行可视化:

(base) [hgzhong@head01 08.assembly_calling]$ plotsr --sr syri.out --genomes ../data/Sc_R64.fasta --genomes ../data/Sc_YJM1447.fasta  -H 8 -W 5
2023-07-14 21:41:50,978 - Plotsr - INFO - Starting
Traceback (most recent call last):
  File "/data/home/hgzhong/miniconda3/bin/plotsr", line 6, in <module>
    main(sys.argv[1:])
  File "/data/home/hgzhong/miniconda3/lib/python3.10/site-packages/plotsr/scripts/plotsr.py", line 334, in main
    plotsr(args)
  File "/data/home/hgzhong/miniconda3/lib/python3.10/site-packages/plotsr/scripts/plotsr.py", line 171, in plotsr
    chrlengths, genomes = validalign2fasta(alignments, args.genomes.name)
  File "/data/home/hgzhong/miniconda3/lib/python3.10/site-packages/plotsr/scripts/func.py", line 1017, in validalign2fasta
    raise ImportError("Incomplete genomic information.\nExpected format for the genome file:\npath_to_genome1\tgenome1_id\ttags\npath_to_genome2\tgenome2_id\ttags\n\nMake sure that the columns are separated by tabs (and not spaces).")
ImportError: Incomplete genomic information.
Expected format for the genome file:
path_to_genome1	genome1_id	tags
path_to_genome2	genome2_id	tags

出现“ImportError: Incomplete genomic information” 报错,

## 需准备两个物种的基因组列表
python3 $PATH_TO_PLOTSR --sr syri.out --genomes genomes
cat genomes
/home A.chr.fa refgenome
/home B.chr.fa refgenome

but the error appear.
ImportError: Incomplete genomic information.
Expected format for the genome file:
path_to_genome1 genome1_id tags
path_to_genome2 genome2_id tags

Make sure that the columns are separated by tabs (and not spaces).
so, what should be the format of the input file --genomes
Could you please guide if there is any solution, how to fix theproblem?

仍然报错,显示genomes.txt的分割符应为 tab 而非空格

plotsr --sr syri.out --genomes genomes  -H 8 -W 5

参数:

--sr : 指定syri.out文件

-- genomes: 两个物种的基因组列表,该文件含有2列,第一列为物种基因组的路径,第二列为 genome_id。注意此2列的分隔符为tab(非空格)--参考网站 报错网址

-H: plot 图的高度

-W: plot 图的宽度

 

 问题成功解决,最终获得plotsr.pdf文件。

 

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值