Plot specific gene with tracks and peak2gene linkages.

plotP2GTracks(
  samples_path,
  samples_suffix,
  gene_name,
  left = 10000,
  right = 10000,
  peaks,
  peak2gene,
  cor_cutoff = 0.4,
  line_size = 0.8,
  curvature = 0.3,
  color = NA,
  back.color = TRUE
)

Arguments

samples_path

The bigwig (bw) file folder.

samples_suffix

The suffix of the samples. Like the ".cpm.bw"

gene_name

The gene name.

left

The gene left flanking to plot. Default: 10000.

right

The gene right flanking to plot. Default: 10000.

peaks

The merged peaks.

peak2gene

The RDS file obtained by **getPeak2Gene**.

cor_cutoff

The correlation cutoff of peak-to-gene links. Default: 0.4.

line_size

The curve line with. Default: 0.8.

curvature

The degree of curvature. Default: 0.3.

color

Color list to plot tracks.

back.colorWhether

to plot backgroud color. Default: TRUE.

Examples

 plotP2GTracks(samples_path="./signal", samples_suffix=".cpm.bw", gene_name="ENST00000220244", peaks="./merged_peaks.bed", peak2gene="./All_Peak2Gene_links.rds")
#> Error in checkGeAnno(): Necessary Annotation not exist. Please **addAnnotation** first.