Giter Site home page Giter Site logo

gcp plot as .ps/.pdf about kat HOT 7 CLOSED

tgac avatar tgac commented on September 16, 2024
gcp plot as .ps/.pdf

from kat.

Comments (7)

maplesond avatar maplesond commented on September 16, 2024

Theorectically yes, but I haven't tried it with the current version. My gnuplot configuration on my current machine only supports PNG output so that's all I've tried. If you have correctly configured gnuplot to handle PS / PDF then you can set this with the outputtype option.

from kat.

maplesond avatar maplesond commented on September 16, 2024

Ah sorry, you mean directly through kat gcp? In that case no, we default in the code to write out PNG. As mentioned in the previous post, it should directly through the plotting tool. What kind of error are you receiving when trying to load the matrix file? Does it work with PNG output?

from kat.

thackl avatar thackl commented on September 16, 2024
~/software/kat/bin/kat plot spectra-mx -p png kat-gcp.mx
Kmer Analysis Toolkit (KAT) V2.0.6


gnuplot> set output ""
                      ^
         cannot open file; output not changed
         line 0: util.c: No such file or directory

plot_spectra_mx.cc(132): Throw in function bool kat::PlotSpectraMx::plot()
Dynamic exception type: boost::exception_detail::clone_impl<PlotSpectraMxException>
std::exception::what: std::exception
[PlotSpectraMxError*] = Error: not sure how to process matrix.  You did not select a list of content from the matrix ("--list"), or alternatively select intersection mode ("--intersection")
[1]    24575 exit 4     ~/software/kat/bin/kat plot spectra-mx -p png kat-gcp.mx

Are the matrices of gcp and comp compatible at all? I have not yet used comp...

However, as far as I'm concerned, I already found a quick and dirty work around based on your previous comment (added pd.setOutputType("ps") to kat::Gcp::plot()). So thanks and feel free to close this issue :)

from kat.

maplesond avatar maplesond commented on September 16, 2024

Yes, that workaround would work. So the error you were running into is caused by two things. First I didn't set the "--output" option to be required on the plotting tools. Setting that should fix the issue. Second, you should probably use the "kat plot density" tool for handling GCP matrix output.

I've just updated the develop branch, to do the following:

  1. updated plot README to suggest which plotting tool to use for GCP output.
  2. made --output option in all plotting tools required
  3. added options to GCP, HIST, COMP subtools to enable user to set the output format for plotting.

Hope that fixes the issue. Closing case. Feel free to reopen if you have any further comments or suggestions.

from kat.

thackl avatar thackl commented on September 16, 2024

Almost there :). I tested it today, switching output format works. However, the --output requirement check seems to come to early blocking --help.

~/software/kat/bin/kat plot spectra-hist --help
# '--output' is required but missing
~/software/kat/bin/kat plot spectra-hist --output foo --help
# help screen

from kat.

maplesond avatar maplesond commented on September 16, 2024

Ahh, yes that would be why I didn't apply the ->required() setting in the first place. I'll write some manual checks that apply after the help option is detected.

Thanks for pointing this out.

from kat.

maplesond avatar maplesond commented on September 16, 2024

Moved the output file check until after help option is checked. Closing ticket.

from kat.

Related Issues (20)

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.