Closed MKoesters closed 3 years ago
After changing to None values in uparma. ursgal2 crashed
{'bigger_scores_better': {'original_key': 'bigger_scores_better', 'original_value': None, 'translated_key': 'bigger_scores_better', 'translated_value': {None: None, 'msamanda_1_0_0_5242': True, 'msamanda_1_0_0_5243': True, 'msamanda_1_0_0_6299': True, 'msamanda_1_0_0_6300': True, 'msamanda_1_0_0_7503': True, 'msamanda_1_0_0_7504': True, 'msamanda_2_0_0_9706': True, 'msamanda_2_0_0_9695': True, 'msamanda_2_0_0_10695': True, 'msamanda_2_0_0_11219': True, 'msamanda_2_0_0_13723': True, 'msamanda_2_0_0_14665': True, 'msgfplus_v2016_09_16': False, 'msgfplus_v2017_01_27': False, 'msgfplus_v2018_01_30': False, 'msgfplus_v2018_06_28': False, 'msgfplus_v2018_09_12': False, 'msgfplus_v2019_01_22': False, 'msgfplus_v2019_04_18': False, 'msgfplus_v2019_07_03': False, 'msgfplus_v9979': False, 'myrimatch_2_1_138': True, 'myrimatch_2_2_140': True, 'omssa_2_1_9': False, 'xtandem_cyclone_2010': True, 'xtandem_jackhammer': True, 'xtandem_piledriver': True, 'xtandem_sledgehammer': True, 'xtandem_vengeance': True, 'xtandem_alanine': True, 'msfragger_20170103': True, 'msfragger_20171106': True, 'msfragger_20190222': True, 'msfragger_20190628': True, 'msfragger_2_3': True, 'msfragger_3_0': True, 'mascot_x_x_x': True, 'pipi_1_4_5': True, 'pipi_1_4_6': True, 'moda_v1_51': True, 'moda_v1_61': True, 'moda_v1_62': True, 'pglyco_db_2_2_0': True, 'pglyco_db_2_2_2': True, 'deepnovo_0_0_1': True, 'deepnovo_pointnovo': True, 'pnovo_3_1_3': True, 'tag_graph_1_8_0': True}}, 'validation_score_field': {'original_key': 'validation_score_field', 'original_value': None, 'translated_key': 'validation_score_field', 'translated_value': {'msamanda_1_0_0_5242': 'Amanda:Score', 'msamanda_1_0_0_5243': 'Amanda:Score', 'msamanda_1_0_0_6299': 'Amanda:Score', 'msamanda_1_0_0_6300': 'Amanda:Score', 'msamanda_1_0_0_7503': 'Amanda:Score', 'msamanda_1_0_0_7504': 'Amanda:Score', 'msamanda_2_0_0_9706': 'Amanda:Score', 'msamanda_2_0_0_9695': 'Amanda:Score', 'msamanda_2_0_0_10695': 'Amanda:Score', 'msamanda_2_0_0_11219': 'Amanda:Score', 'msamanda_2_0_0_13723': 'Amanda:Score', 'msamanda_2_0_0_14665': 'Amanda:Score', 'msgfplus_v2016_09_16': 'MS-GF:SpecEValue', 'msgfplus_v2017_01_27': 'MS-GF:SpecEValue', 'msgfplus_v2018_01_30': 'MS-GF:SpecEValue', 'msgfplus_v2018_06_28': 'MS-GF:SpecEValue', 'msgfplus_v2018_09_12': 'MS-GF:SpecEValue', 'msgfplus_v2019_01_22': 'MS-GF:SpecEValue', 'msgfplus_v2019_04_18': 'MS-GF:SpecEValue', 'msgfplus_v2019_07_03': 'MS-GF:SpecEValue', 'msgfplus_v9979': 'MS-GF:SpecEValue', 'myrimatch_2_1_138': 'MyriMatch:MVH', 'myrimatch_2_2_140': 'MyriMatch:MVH', 'novor_1_1beta': 'Novor:score', 'novor_1_05': 'Novor:score', 'omssa_2_1_9': 'OMSSA:pvalue', 'pepnovo_3_1': 'Pepnovo:PnvScr', 'xtandem_cyclone_2010': 'X\\!Tandem:hyperscore', 'xtandem_jackhammer': 'X\\!Tandem:hyperscore', 'xtandem_piledriver': 'X\\!Tandem:hyperscore', 'xtandem_sledgehammer': 'X\\!Tandem:hyperscore', 'xtandem_vengeance': 'X\\!Tandem:hyperscore', 'xtandem_alanine': 'X\\!Tandem:hyperscore', 'msfragger_20170103': 'MSFragger:Hyperscore', 'msfragger_20171106': 'MSFragger:Hyperscore', 'msfragger_20190222': 'MSFragger:Hyperscore', 'msfragger_20190628': 'MSFragger:Hyperscore', 'msfragger_2_3': 'MSFragger:Hyperscore', 'msfragger_3_0': 'MSFragger:Hyperscore', 'mascot_x_x_x': 'Mascot:Score', 'pipi_1_4_5': 'PIPI:score', 'pipi_1_4_6': 'PIPI:score', 'moda_v1_51': 'ModA:probability', 'moda_v1_61': 'ModA:probability', 'moda_v1_62': 'ModA:probability', 'pglyco_db_2_2_0': 'pGlyco:TotalScore', 'pglyco_db_2_2_2': 'pGlyco:TotalScore', 'deepnovo_0_0_1': 'DeepNovo:score', 'deepnovo_pointnovo': 'DeepNovo:score', 'pnovo_3_1_3': 'pNovo:Score', 'tag_graph_1_8_0': 'TagGraph:: 1-log10 EM'}}, 'initial_engine': {'original_key': 'initial_engine', 'original_value': 'xtandem_alanine', 'translated_key': '-i', 'translated_value': 'xtandem_alanine'}} (Pdb) json.dumps( self.get("translated_cparameters", {}), sort_keys=True,cls=ursgal.uconvert.JSONEncoder,) *** TypeError: '<' not supported between instances of 'str' and 'NoneType' (Pdb)
This is due to the fact, that in bigger_scores_better translated_value there is a None: None pair. Since one key is None, the values cant be sorted anymore
bigger_scores_better
None: None
None
After changing to None values in uparma. ursgal2 crashed
This is due to the fact, that in
bigger_scores_better
translated_value there is aNone: None
pair. Since one key isNone
, the values cant be sorted anymore