rrwick / Verticall

Recombination-free trees
GNU General Public License v3.0
56 stars 2 forks source link

Fix summary function arguments bug #2

Closed tomdstanton closed 2 years ago

tomdstanton commented 2 years ago

Hi Ryan, Amazing tool as always! I came across a problem with the summary function when trying to draw a plot with the following command:

python3 ../Verticall/verticall-runner.py summary -i verticall.tsv -a assembly_verticall_symlinks/SRR5973343.fasta --plot

Which throws this error:

Traceback (most recent call last):
  File "/Users/tom/Bioinformatics/CG29/../Verticall/verticall-runner.py", line 22, in <module>
    main()
  File "/Users/tom/Bioinformatics/Verticall/verticall/__main__.py", line 49, in main
    summary(args)
  File "/Users/tom/Bioinformatics/Verticall/verticall/summary.py", line 34, in summary
    args.horizontal_colour, args.ambiguous_colour)
AttributeError: 'Namespace' object has no attribute 'ambiguous_colour'

This change fixes it for me.

rrwick commented 2 years ago

Thanks for this - good catch! Merged.