Giter VIP home page Giter VIP logo

metalogo's Issues

metalogo fails when --task_name or --output_name contains a period

Thanks for making MetaLogo! I'm using v1.1.3.

Works fine

name=sample_A

metalogo \
    --seq_file sampleA.fasta \
    --seq_file_type fasta \
    --sequence_type dna \
    --task_name ${name} \
    --output_name ${name} \
    --clustalo_bin /programs/clustalo \
    --fasttree_bin /programs/fasttree/FastTree \
    --fasttreemp_bin /programs/fasttree/FastTreeMP

Fails

name=sample.A

metalogo \
    --seq_file sampleA.fasta \
    --seq_file_type fasta \
    --sequence_type dna \
    --task_name ${name} \
    --output_name ${name} \
    --clustalo_bin /programs/clustalo \
    --fasttree_bin /programs/fasttree/FastTree \
    --fasttreemp_bin /programs/fasttree/FastTreeMP

Error message

Traceback (most recent call last):
  File "/home/miniconda3/envs/metalogo/bin/metalogo", line 8, in <module>
    sys.exit(main())
  File "/home/miniconda3/envs/metalogo/lib/python3.7/site-packages/MetaLogo/entry.py", line 310, in main
    run_from_args(args)
  File "/home/miniconda3/envs/metalogo/lib/python3.7/site-packages/MetaLogo/entry.py", line 62, in run_from_args
    logogroup.savefig(f'{args.output_dir}/{args.output_name}')
  File "/home/miniconda3/envs/metalogo/lib/python3.7/site-packages/MetaLogo/item.py", line 28, in savefig
    self.ax.get_figure().savefig(filename,bbox_inches=bbox_inches)
  File "/home/miniconda3/envs/metalogo/lib/python3.7/site-packages/matplotlib/figure.py", line 3058, in savefig
    self.canvas.print_figure(fname, **kwargs)
  File "/home/miniconda3/envs/metalogo/lib/python3.7/site-packages/matplotlib/backend_bases.py", line 2259, in print_figure
    canvas = self._get_output_canvas(backend, format)
  File "/home/miniconda3/envs/metalogo/lib/python3.7/site-packages/matplotlib/backend_bases.py", line 2190, in _get_output_canvas
    .format(fmt, ", ".join(sorted(self.get_supported_filetypes()))))
ValueError: Format 'a' is not supported (supported formats: eps, jpeg, jpg, pdf, pgf, png, ps, raw, rgba, svg, svgz, tif, tiff)

图片输出为其他格式

图片输出为其他格式,而不是png,希望能添加一个输出项,修改源代码找起来就麻烦了。感谢!

metalogo fails to write pdf

The metalogo help text (metalogo -h) states that --logo_format can be used to specify either png or pdf output. However, --logo_format pdf is ignored, and a png is created.

I'm using metalogo v1.1.3.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.