YuLab-SMU / ChIPseeker

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

Feature request: flexible distance ranges in plotDistToTSS() #231

Open perinom opened 7 months ago

perinom commented 7 months ago

Great tool, thanks a lot!

Quick question: The distance bins used by plotDistToTSS() seem to be hard-coded into lines 52-55 of plotDistToTSS.R. Would it be possible to turn them into function parameters?

   ## assign Feature according to the distancetoFeature
    peakDist$Feature <- NA
    limit <- c(0, 1000, 3000, 5000, 10000, 100000)
    lbs <- c("0-1kb", "1-3kb", "3-5kb", "5-10kb", "10-100kb", ">100kb")

For species with small genomes (e.g. Fruit flies, yeast, C.elegans) these are huge distances and being able to customise them would be fantastic.

Thanks a lot!