Displaying 1 result from an estimated 1 matches for "computescore".
2012 Jan 03
1
Error when using foreach package for parralelization
...s !
I'm trying to parallelize the following R code :
pk2test =
c(1:16,(12*16+1):(12*16+16),(16*16+1):(16*16+16),(20*16+1):(20*16+16))
score.mat = matrix(nc=16*4,nr=16*4)
for(i in 1:(16*4)) {
for(j in i:(16*4)) {
score.mat[i,j] = score.mat[j,i] =
computeScore(pk[[pk2test[i]]],pk[[pk2test[j]]],10,5)$score
}
}
pk is a list of Object of type MassPeak from MALDIquant library. Each
object is composed with a mass vector (@mass) an intensity vector
(@intensity) and a metaData field (another list)
score.mat is a matrix with scores (reals)
pk2tes...