sgibb / MALDIquant

Quantitative Analysis of Mass Spectrometry Data
https://strimmerlab.github.io/software/maldiquant/
60 stars 25 forks source link

filterPeaks should respect different minFrequency arguments for different labels #21

Closed sgibb closed 11 years ago

sgibb commented 11 years ago

filterPeaks doesn't allow different minFrequency arguments for different labels. It only allows one minFrequency argument for all labels. That's only fine if all biological replicates have the same number of technical replicates.

sgibb commented 11 years ago

Allowing different minFrequency arguments or a vector of frequencies will turn filterPeaks into a hardly to understand function (length(minFrequency) has to be equal to length(labels) or length(levels(labels)) and we have to respect the order of the minFrequency vector). An absolute threshold will implemented instead.