This function estimates the m_score cutoff required in a dataset to reach a given overall assay level FDR.
It counts target and decoy assays at high resolution across the m_score cutoffs and reports a useful m_score cutoff - assay FDR pair close to the supplied fdr_target level over the entire dataset. The m_score cutoff is returned by the function and can be used in the context of the filtering functions, e.g.:data.assayFDR1pc<-filter_mscore(data, mscore4assayfdr(data, fdr_target=0.01))
To arrive from decoy counts at an estimation of the false discovery rate (false positives among the targets remaining at a given mscore cutoff) the ratio of false positives to true negatives (decoys) (FFT) must be supplied. It is estimated for each run individually by pyProphet and contained in the pyProphet statistics [Injection_name]_full_stat.csv. As an approximation, the FFTs of multiple runs are averaged and supplied as argument FFT. For further details see the Vignette Section 1.3 and 4.1.
For FDR evaluations on peptide and protein level, please refer to functions
mscore4pepfdr
mscore4protfdr