Skip to content

Commit

Permalink
skip to tests not working with pytests pooling.
Browse files Browse the repository at this point in the history
  • Loading branch information
ypriverol committed Apr 19, 2024
1 parent 4b4c8ab commit 040c291
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions pypgatk/proteogenomics/mztab_class_fdr.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@ class MzTabClassFdr(ParameterConfiguration):

def __init__(self, config_data, pipeline_arguments):
"""
Init the class with the specific parameters.
:param config_data configuration file
:param pipeline_arguments pipelines arguments
"""

Init the class with the specific parameters.
:param config_data configuration file
:param pipeline_arguments pipelines arguments
"""
super(MzTabClassFdr, self).__init__(self.CONFIG_KEY_MzTabClassFdr, config_data, pipeline_arguments)
self._decoy_prefix = self.get_fdr_parameters(variable=self.CONFIG_DECOY_PREFIX, default_value='decoy')
self._global_fdr_cutoff = self.get_fdr_parameters(variable=self.CONFIG_GLOBAL_FDR_CUTOFF, default_value=0.01)
Expand Down Expand Up @@ -87,8 +86,8 @@ def _compute_class_fdr(self, df_psms, order):

# calculate class-specific q-value
curr_class.sort_values("search_engine_score[1]", ascending=order, inplace=True)
FDR = (range(1, len(curr_class["target"]) + 1) / curr_class["target"].cumsum()) - 1
curr_class['class-specific-q-value'] = FDR[::-1].cummin()[::-1]
fdr = (range(1, len(curr_class["target"]) + 1) / curr_class["target"].cumsum()) - 1
curr_class['class-specific-q-value'] = fdr[::-1].cummin()[::-1]
df = pd.concat(ls)

# df_psms['class-specific-q-value'] = df['class-specific-q-value']
Expand Down

0 comments on commit 040c291

Please sign in to comment.