Plot the genome signal with tracks.

plotTracks(
  samples_path,
  samples_suffix,
  chr,
  start,
  end,
  peaks,
  color = NA,
  back.color = TRUE
)

Arguments

samples_path

The bigwig (bw) file folder.

samples_suffix

The suffix of the samples. e.g. ".cpm.bw".

chr

The chromosome ID.

start

The start position.

end

The end position.

peaks

The merged peaks file.

color

color list to plot tracks.

back.color

Whether to plot backgroud color. Default: TRUE.

Examples

 plotTracks(samples_path = "./signal", samples_suffix = ".cpm.bw", chr="chr1", start=10000, end=20000, peaks="final_res/meged.peaks.bed")
#> Error in checkGeAnno(): Necessary Annotation not exist. Please **addAnnotation** first.