Skip to content

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

2 messages · Robert Castelo, Obenchain, Valerie

#
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:

  
    
6 days later
#
Hi,

Just wanted to let you know I saw this and will get to it as soon as
possible.

Valerie
On 10/01/2015 05:47 AM, Robert Castelo wrote:
This email message may contain legally privileged and/or confidential information.  If you are not the intended recipient(s), or the employee or agent responsible for the delivery of this message to the intended recipient(s), you are hereby notified that any disclosure, copying, distribution, or use of this email message is prohibited.  If you have received this message in error, please notify the sender immediately by e-mail and delete this email message from your computer. Thank you.