You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear all, I stumbled over this problem: subsetting a DataFrame within bplapply that uses SnowParam results in this error: Error in x[1, ]: object of type 'S4' is not subsettable. To reproduce:
This has until relatively recently been the case for parallel evaluation via SNOW -- it is a separate R process so has to have packages etc. loaded explicitly. Obviously this can entail substantial 'start up' time, reducing the value of parallel evaluation; it may be worth-while to start the cluster once (via bpparam = bpstart(SnowParam())) and then re-use bpparm across calls before calling bpstop(bpparam); I think this is discussed in section 4.1.2 of the vignette and elsewhere.
@Jiefei-Wang has introduced functionality that is supposed to automate this process to some extent, so perhaps this particular case (S4 method on[) is not handled properly. But that should be discussed in an issue in BiocParallel.
Dear all, I stumbled over this problem: subsetting a
DataFrame
withinbplapply
that usesSnowParam
results in this error:Error in x[1, ]: object of type 'S4' is not subsettable
. To reproduce:The last call results in
This can be fixed with:
could it be that there is some NAMESPACE issue regarding the
[
method @hpages ?This is with current devel version (R 4.4.1, S4Vectors 0.43.2), but I got the same version for the BioC 3.18 and 3.19 versions.
The text was updated successfully, but these errors were encountered: