YuLab-SMU / ChIPseeker

:dart: ChIP peak Annotation, Comparison and Visualization
https://onlinelibrary.wiley.com/share/author/GYJGUBYCTRMYJFN2JFZZ?target=10.1002/cpz1.585
220 stars 74 forks source link

plotAvgProf2 failed #171

Open songeric1107 opened 2 years ago

songeric1107 commented 2 years ago

ChIPseeker::plotAvgProf2(peak1,TxDb = txdb, conf = 0.95, by = "gene", type = "body",weightCol = "V5",ignore_strand = F)

preparing promoter regions... 2021-12-08 03:25:48 PM preparing tag matrix... 2021-12-08 03:25:48 PM plotting figure... 2021-12-08 03:25:51 PM Error in getTagCiMatrix(tagMatrix, conf = conf, ...) : unused arguments (by = "gene", type = "body", ignore_strand = F)

Prerequisites

Describe you issue

Ask in right place

MingLi-929 commented 2 years ago
plotAvgProf2 <- function(peak, weightCol = NULL, TxDb = NULL,
                         upstream = 1000, downstream = 1000,
                         xlab = "Genomic Region (5'->3')",
                         ylab = "Peak Count Frequency",
                         conf,
                         facet = "none",
                         free_y = TRUE,
                         verbose = TRUE, 
                         ignore_strand = FALSE,
                         ...)

plotAvgProf2() is inherited from the previous methods, which did not support to plot the body region. You should try plotPeakProf2() instead.

plotPeakProf2 <- function(peak, 
                          upstream, 
                          downstream,
                          conf,
                          by,
                          type,
                          weightCol = NULL, 
                          TxDb = NULL,
                          xlab = "Genomic Region (5'->3')",
                          ylab = "Peak Count Frequency",
                          facet = "none",
                          free_y = TRUE,
                          verbose = TRUE, 
                          nbin = NULL,
                          ignore_strand = FALSE,
                          ...)