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
)
The bigwig (bw) file folder.
The suffix of the samples. Like the ".cpm.bw"
The gene name.
The gene left flanking to plot. Default: 10000.
The gene right flanking to plot. Default: 10000.
The merged peaks.
The RDS file obtained by **getPeak2Gene**.
The correlation cutoff of peak-to-gene links. Default: 0.4.
The curve line with. Default: 0.8.
The degree of curvature. Default: 0.3.
Color list to plot tracks.
to plot backgroud color. Default: TRUE.
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.