p4cExportBedGraph exports the smoothed trend with an adaptative or a fixed smoothing window to a file which can be imported as a 'custom track' to the UCSC genome browser.

p4cExportBedGraph(
  p4c_obj,
  filename,
  trend_scale = "adaptive",
  min_win_cov = 50,
  color = "black"
)

Arguments

p4c_obj

p4cProfile object

filename

Filename of the bedGraph.

trend_scale

This parameter controls the smoothing method for the trendline. Either 'adaptive' (default), or, for fixed window trend, an integer with the desired size of the window (in restriction fragments units), put 0 for the raw molecule number.

min_win_cov

If the default smoothing method is used ('adaptive'), this parameter controls the window size by requiring that no less than min_win_cov molecules will be included in that genomic window.

color

Color of the bedGraph plot.