Entering edit mode
With dba.plorProfile
function I can calculate the profiles but while plotting, I get the following error:
> profiles <- dba.plotProfile(dbobj, sites=overlaps)
Generating profiles...
> dba.plotProfile(profiles)
Plotting...
Error in heatmap_width_pt * raster_quality :
non-numeric argument to binary operator
Can anyone help me with this? Thank you in advance.
I got the same error while trying to set the maxSites. It would be great if anyone could help here. Thanks in advance
Not really an answer as I don't know really know why , but I also had the same issue and may have found a workaround ! If I set maxSites > 2000 specifically I get this problem. Lowering raster_quality from the generateEnrichedHeatmap function does allow me to plot it (raster_quality is 2 by default and in the description of generateEnrichedHeatmap it says "A value set to larger than 1 will improve the quality of the raster image." ). So what I mean is:
Yes, setting
raster_quality
down is a good way to address this issue. I've taken to usingraster_quality=1
in general as I think the plots actually look better as well!Is there a reasonable upper limit to the amount of sites one can plot using plot.profile? I am trying to plot profiles for a set of 88000 sites but I cannot get it to work even with raster_quality=1. I can generate the profiles just not plot them. I am using a machine with 64 threads and 380 of Gb of memory. Any recommendations for alternatives or methods in order to be able to plot it? Thanks in advance