Closed krish8484 closed 4 years ago
Even after this PR, there is a limit of how much information one can show in a single PDF. The graph may still not look very pretty if the input sequence length increases to 200.
Why is that? what parts "will not be pretty?". For long sequences you can turn off the letter annotation of columns, as I mentioned in the issue, right? It is highly possible that in real life we will work with sequences of hundreds of letters.
Actually, its not bad, I ran the pipeline for an input sequence length of 300. This is the graph I got. One may have to use a good PDF viewer, so they can zoom in to view the graph clearly. For instance, opening it in Google Chrome will be good. ProbabilityVsSequence.pdf
Ok, this one is not bad, Let's make a test at maximum capacity - could you please run with a seq.len=1000 and full ATtRACT db and post the picture here as well?
The plot might look good but it is too heavy to parse by PDF viewers. As my system says - the image resolution is 18792 × 85248
- isn't that too much? You need to reduce the size of the file - currently me, a potential user, cannot even open it neither on mac nor Ubuntu.
PTry to look into distinct formats, encoding etc.
Maybe try raster image format, I am fine with raster in that case.
I tried plotting the graph in png
, jpeg
, tiff
and svg
png
, jpeg
and tiff
returned an error due to image size (after googling about the error)
Error in grDevices::png(..., res = dpi, units = "in") : unable to start device 'png'
.
Even after the scaling it down, using scale
parameter, the jpeg
image is not even close to good.
svg
file is too large, around 280 Mb
OK, let's leave it the way it is for now. It is OK for regular use-case. For a proper presentation of FULL ATtRACT database and very long sequences we will have to come up with another approach...
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Addresses #34
Type of change
Please delete options that are not relevant.
Checklist: