I have a problem when I try to smooth my data with the package bsseq. This data comes from bismark and has been previously loaded to R with read.bismark function without problems. You have the commands I used below:
library("bsseq") files_chh = list.files(path = ".", pattern = "CHH") meth <- read.bismark(files_chh, c("P150_1","P150_2","P150_3","P60_1","P60_2","P60_3","PM1","PM2","PM3")) splitBtSample <- list() for (x in 1:ncol(meth)) { splitBtSample[x] <- BSmooth(meth[,x], mc.cores = 5, verbose = TRUE) } [BSmooth] preprocessing ... done in 154.6 sec [BSmooth] smoothing by 'sample' (mc.cores = 5, mc.preschedule = FALSE) [BSmooth] smoothing done in 338.3 sec Error in `colnames<-`(`*tmp*`, value = "P150_1") : attempt to set 'colnames' on an object with less than two dimensions
As you can see, an error appears and I am not able to find the origin. Do you have any idea what is going on? I have analysed other data following these commands and all went fine. Raw files seem to be OK.
By the way, do you recommend filtering the data by setting a coverage threshold? How would you do that?
Thank you very much.
Hi Nikolay,
Did you figure out how to solve this problem?
I got the same situation and I don't know what to do.
Thank you,
Kai