ChIPseeker icon indicating copy to clipboard operation
ChIPseeker copied to clipboard

plotAvgProf2 failed

Open songeric1107 opened this issue 3 years ago • 1 comments

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

  • [x] Have you read Feedback and follow the guide?
    • [ ] make sure your are using the latest release version
    • [x] read the documents
    • [ ] google your quesion/issue

Describe you issue

  • [ ] Make a reproducible example (e.g. 1)
  • [ ] your code should contain comments to describe the problem (e.g. what expected and actually happened?)

Ask in right place

  • [ ] for bugs or feature requests, post here (github issue)
  • [ ] for questions, please post to Bioconductor or Biostars with tag ChIPseeker

songeric1107 avatar Dec 08 '21 20:12 songeric1107

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,
                          ...)

MingLi-929 avatar Dec 09 '21 01:12 MingLi-929