I am using CAGEr to analyze some of my CAGE data. However I run into some errors when I tried to cluster the TSSs using clusterCTSS() function.
I use CAGEr 1.18 and R 3.3.2.
My input is the CTSS file for human genome 38 chr1, e.g.:
chr1 10594 - 1
chr1 10595 - 3
chr1 10597 - 14
chr1 10599 - 4
chr1 10600 - 17
Here are the commands I used before clustering:
>myCAGEset <- new("CAGEset", genomeName = "BSgenome.Hsapiens.UCSC.hg38", inputFiles = ctss_file, inputFilesType = 'ctss', sampleLabels=c("test”))
>getCTSS(myCAGEset)
>normalizeTagCount(myCAGEset, method = "powerLaw",fitInRange = c(5, 1000), alpha = 1.0, T = 10^6)
>ctss <- CTSStagCount(myCAGEset)
> clusterCTSS(object = myCAGEset, method = "paraclu")
Filtering CTSSs below threshold...
Clustering...
-> test
Error in subset.default(clusters, (max_d >= (minStability * min_d)) & :
object 'max_d' not found
Thanks a lot!