schneebergerlab / plotsr

Tool to plot synteny and structural rearrangements between genomes
MIT License
288 stars 28 forks source link

ValueError when running plotsr function #68

Closed ngorringe closed 1 year ago

ngorringe commented 1 year ago

Hi there,

I keep getting the same error when running the plotsr function that I cannot seem to fix. All other steps leading up to the plotsr function work fine.

My command is: plotsr --sr A_Bsyri.out \ --sr B_Csyri.out \ --genomes genomes.txt \ --tracks tracks.txt \ --cfg base.cfg \ -o output_plot.png

The error is: Traceback (most recent call last): File "/path/miniconda3/bin/plotsr", line 6, in main(sys.argv[1:]) File "/path/miniconda3/lib/python3.9/site-packages/plotsr/main.py", line 55, in main plotsr(args) File "/path/miniconda3/lib/python3.9/site-packages/plotsr/plotsr.py", line 152, in plotsr chrlengths, genomes = validalign2fasta(alignments, args.genomes.name) File "/path/miniconda3/lib/python3.9/site-packages/plotsr/func.py", line 872, in validalign2fasta gen.addtags(line[2]) File "/path/miniconda3/lib/python3.9/site-packages/plotsr/func.py", line 760, in addtags n, v = i.split(":") ValueError: too many values to unpack (expected 2)

Thank you in advance!

Best, Nicola

mnshgl0110 commented 1 year ago

Please check the genomes.txt file. This error suggests that this file is incomplete and for some tag no value is provided.

ngorringe commented 1 year ago

All solved, thank you! I needed to change the file names for some of the genomes