1
mclapply可以使用CompressedRleList嗎?mclapply可以使用CompressedRleList嗎?
例如,我有雪茄(A)的載體,以及cigarToRleList返回CompressedRleList因爲向量:
a = c("44M","44M","9S35M","44M","40M4S")
b = cigarToRleList(a)
如果我嘗試的b mclapply運行我得到這個錯誤:
mclapply(b,function(x) class(x))
Error in as.list.default(X) :
no method for coercing this S4 class to a vector
強迫b到A列表似乎並沒有幫助,因爲這名單是長度爲1:
mclapply(list(b),function(x) class(x))
[[1]]
[1] "CompressedRleList"
attr(,"package")
[1] "IRanges"
任何想法如何讓mclapply與CompressedRleList結構一起工作?