Closed JeffreyMaurer closed 2 years ago
This is a broader problem that tictoc introduced (https://github.com/jabiru/tictoc/commit/8cf7894a25e1462da8114a8e96195710f2b6f3d1) and may affect any package that uses core Bioconductor classes and methods such as List and apparently also shift()
.
I first saw it reported here: https://github.com/drisso/SingleCellExperiment/issues/67
In any case, your example seems to be about DSS::makeBSseqData()
which isn't part of bsseq and so this would really need to be reported to the DSS authors.
Please re-open the issue if you can you minimise your example to use code that just uses bsseq features and removes unnecessary dependencies.
FWIW I'd just use system.time()
for simple timing like this and avoid tictoc entirely.
I'm trying to profile my RRBS script because, as RRBS, it takes a long time to chunk through and I want to reduce that time.
I tried to use the tictoc library, but it masks shift and List. I think the fix is just replacing "shift" with "LIBRARY::shift" somewhere in the code. I tried it myself manually copy-pasting the 'strandCollapse' from BSSeq-class.R and 'setMethod("shift", "FWIRanges",...) from FWIRanges-class.R but that didn't work.
Here's a reprex: