Comments (11)
Everything is negotiable... My coding principles are hanging high enough so that I can limbo below every once in a while. If you're not happy with postprocessing, I'm also accepting pull requests with your solution :)
from panacus.
I could add an option to specify the output format (pdf/png). Separate PNGs... what do you mean by that?
from panacus.
The final output is one PDF with 3 Figures, if I am not mistaken.
panacus.pdf
In the MultiQC report, we would like to have 3 separate figures, so we would need each of them in its own PNG file.
from panacus.
The option specifying the output format sounds great!
from panacus.
Regarding the separation of figures: Panacus always produces 1 output file from 1 input file. But if you want to have the figures separated, it's super easy to have this done in a subsequent script that utilizes identify
and convert
from ImageMagick.
identify
gives you the dimensions of the image:
identify panacus.png
panacus.png PNG 9000x1800 9000x1800+0+0 8-bit sRGB 690629B 0.000u 0:00.000
- It's clear that each plot has same dimensions, so all you need to do is take with width and divide by 3 for cropping with
convert
:
convert -crop 3000x1800+0+0 panacus.png panacus1.png
convert -crop 3000x1800+3000+0 panacus.png panacus2.png
convert -crop 3000x1800+6000+0 panacus.png panacus3.png
from panacus.
(Also, there is a bug in the plotting script that draws the estimate of the 2nd plot at the wrong position; I just pushed a fix)
from panacus.
Yes, we also thought about ImageMagick. But that would mean more work downstream for us. A new nf-core module, more to maintain, etc.
That's why we are wishing for 3 PNGs.
If that's not possible, we will have to go for the ImageMagick option.
from panacus.
Please take a look at https://github.com/marschall-lab/panacus/pull/11/files @danydoerr
from panacus.
@subwaystation Thanks! Very helpful, I only have a few requests that I think will improve the usability.
from panacus.
It's now merged. Again, thanks @heringerp!
from panacus.
@heringerp @subwaystation made a minor change for the prefix argument, which is now called 'split_prefix', to associate it more closely with the split option
from panacus.
Related Issues (20)
- What does the output content represent HOT 7
- could you give us an example of cactus? HOT 7
- Installation instructions HOT 2
- Merge different chroms stats into one graph HOT 3
- path coordinates HOT 8
- After `panacus hist` and `panacus growth`, the final visualization will show `#nodes` instead of `bps`. I use `-c bp` for hist HOT 1
- Could you please make an new release? HOT 3
- command is not supported for more than 65534 HOT 6
- How to Visualize the results of the minigraph-cactus? HOT 21
- Request software updates HOT 6
- Feature request: Alternative plot with #nodes/#edges vs AC
- A problem while running panacus-visualize HOT 1
- Update Readme to reflect installation of python dependencies in the installation section. HOT 1
- compiler error in rustc-serialize HOT 3
- Haplotype labels in TSV, visualisations ? HOT 8
- panacus-visualize.py is overwhelmed by 1000 haplotypes HOT 10
- how is panacus treating Ns HOT 4
- Discrepancy between graph length, reference length, and novel base pairs HOT 3
- macOS binary missing HOT 1
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 panacus.