Skip to content
Prev 8071 / 21312 Next

[Bioc-devel] BiocParallel::bpvec() and DNAStringSet objects, problem

hi Valerie,

regarding the bug you fixed about a month ago and described below, 
there's something still not entirely correct that i did not notice then, 
or maybe something has broken since then. Let me run the example again 
to explain it:

library(Biostrings)
library(BiocParallel)

bpvec(X=DNAStringSet(c("AC", "GT")), FUN=as.character, 
BPPARAM=bpparam("SerialParam"))
[1] "AC" "GT"

## this looks fine so far but notice the result when i call
## now the function 'class()' instead of 'as.character()'

bpvec(X=DNAStringSet(c("AC", "GT")), FUN=class, 
BPPARAM=bpparam("SerialParam"))
[1] "DNAString" "DNAString"

somehow bpvec() is chopping the input into objects of a class different 
to the original input class. this does not happen with the multicore 
backend:

bpvec(X=DNAStringSet(c("AC", "GT")), FUN=class, 
BPPARAM=bpparam("MulticoreParam"))
[1] "DNAStringSet" "DNAStringSet"


so, i guess there's still something wrong with the SerialParam backend.


thanks!!

robert.
On 09/05/2015 12:10 AM, Obenchain, Valerie wrote: