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
I was trying to use reduceByYield(..., init = DF, iterate = TRUE, parallel = TRUE), but it didn't seem to pass on the init argument to the downstream reduce function. Adapting an example from the documentation, I can show the problem as follows. Below is identical to the example:
Then, we could want to offset every number by +100 and try to do this through the init parameter.
init<- alphabetFrequency(DNAStringSet())
init<- setNames(rep(100, ncol(init)), colnames(init))
print(init)
#> A C G T M R W S Y K V H D B N - + . #> 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100
When we do this, the output is identical to the output we'd get if we had not set the init argument.
outcome<- reduceByYield(bf, YIELD, MAP, REDUCE, parallel=TRUE, init=init)
print(outcome)
#> A C G T M R W S Y K V H D #> 39904 23195 20477 31681 0 0 0 0 0 0 0 0 0 #> B N - + . #> 0 29 0 0 0
The following is the outcome I had expected, and is also the outcome when setting parallel = FALSE.
print(outcome+100)
#> A C G T M R W S Y K V H D #> 40004 23295 20577 31781 100 100 100 100 100 100 100 100 100 #> B N - + . #> 100 129 100 100 100
I think that the line mentioned below doesn't pass on the init parameter to bpiterate, but I don't know if this is intended or not.
I had assumed this is a bug because I thought changing the parallel parameter shouldn't effect the outcome, but it does, so I thought to report it here.
Thanks for reading!
The text was updated successfully, but these errors were encountered:
Hello everyone,
I was trying to use
reduceByYield(..., init = DF, iterate = TRUE, parallel = TRUE)
, but it didn't seem to pass on theinit
argument to the downstream reduce function. Adapting an example from the documentation, I can show the problem as follows. Below is identical to the example:Then, we could want to offset every number by +100 and try to do this through the
init
parameter.When we do this, the output is identical to the output we'd get if we had not set the
init
argument.The following is the outcome I had expected, and is also the outcome when setting
parallel = FALSE
.I think that the line mentioned below doesn't pass on the
init
parameter tobpiterate
, but I don't know if this is intended or not.GenomicFiles/R/reduceByYield.R
Line 16 in f17056c
I had assumed this is a bug because I thought changing the
parallel
parameter shouldn't effect the outcome, but it does, so I thought to report it here.Thanks for reading!
The text was updated successfully, but these errors were encountered: