Comments (7)
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.
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.
~/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.
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:
- updated plot README to suggest which plotting tool to use for GCP output.
- made --output option in all plotting tools required
- 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.
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.
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.
Moved the output file check until after help option is checked. Closing ticket.
from kat.
Related Issues (20)
- Color scale with low values
- KAT and long reads HOT 1
- How to get two clear peaks? Heterozygous and Homozygous peaks HOT 1
- KAT GCP plots are half white HOT 2
- Issue with KAT conda package HOT 1
- Issue with compiling KAT from the source on HPC
- kat filter error
- Can I make "kat hist" read from standard input?
- KAT comp stalling when making plots HOT 2
- KAT comp - issue with big genome HOT 7
- Unable to interprets results
- malloc_consolidate(): unaligned fastbin chunk detected HOT 2
- Can't compile HOT 1
- KAT comp for PacBio read and assembly HOT 1
- No module named 'PIL'
- 2.4.2 was tagged but not released
- Adjusting X-axis in kat comp HOT 1
- ../lib/include/kat/pyhelper.hpp([kat::KatPythonError*] = Unexpected python error
- Unable to install in Ubuntu 22.04 with python 3.10 HOT 2
- numpy issue when make install
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kat.