@@ -325,7 +325,7 @@ def parse_idxml(
325325 hyper_hist_range ,
326326 spec_evalue_hist_range ,
327327 pep_hist_range ,
328- mL_spec_ident_final ,
328+ ml_spec_ident_final ,
329329 mzml_peptide_map ,
330330 remove_decoy = True ,
331331):
@@ -339,7 +339,7 @@ def parse_idxml(
339339 hyper_hist_range: Range for hyper histogram
340340 spec_evalue_hist_range: Range for spec_evalue histogram
341341 pep_hist_range: Range for PEP histogram
342- mL_spec_ident_final : Dictionary of identified spectra counts
342+ ml_spec_ident_final : Dictionary of identified spectra counts
343343 mzml_peptide_map: Dictionary of peptide maps
344344 remove_decoy: Whether to remove decoy hits
345345
@@ -354,8 +354,8 @@ def parse_idxml(
354354 for raw_id in consensus_paths :
355355 if raw_id in idx_paths :
356356 idx_paths .remove (raw_id )
357-
358- MSGF_label , Comet_label , Sage_label = False , False , False
357+
358+ msgf_label , comet_label , sage_label = False , False , False
359359 search_engine = {
360360 "SpecE" : OrderedDict (),
361361 "xcorr" : OrderedDict (),
@@ -458,7 +458,7 @@ def parse_idxml(
458458
459459 if search_engine_name == "MSGF+" or "msgf" in raw_id_name :
460460 mzml_table [ms_name ]["MSGF" ] = identified_num
461- MSGF_label = True
461+ msgf_label = True
462462 spec_e_label .append ({"name" : raw_id_name , "ylab" : "Counts" })
463463 peps_label .append ({"name" : raw_id_name , "ylab" : "Counts" })
464464 for peptide_id in peptide_ids :
@@ -483,7 +483,7 @@ def parse_idxml(
483483 search_engine ["PEPs" ][raw_id_name ] = posterior_error .dict ["data" ]
484484
485485 elif search_engine_name == "Comet" or "comet" in raw_id_name :
486- Comet_label = True
486+ comet_label = True
487487 mzml_table [ms_name ]["Comet" ] = identified_num
488488 xcorr_label .append ({"name" : raw_id_name , "ylab" : "Counts" })
489489 peps_label .append ({"name" : raw_id_name , "ylab" : "Counts" })
@@ -504,7 +504,7 @@ def parse_idxml(
504504 search_engine ["PEPs" ][raw_id_name ] = posterior_error .dict ["data" ]
505505
506506 elif search_engine_name == "Sage" or "sage" in raw_id_name :
507- Sage_label = True
507+ sage_label = True
508508 mzml_table [ms_name ]["Sage" ] = identified_num
509509 hyper_label .append ({"name" : raw_id_name , "ylab" : "Counts" })
510510 peps_label .append ({"name" : raw_id_name , "ylab" : "Counts" })
@@ -528,10 +528,10 @@ def parse_idxml(
528528 mzml_table [ms_name ][search_engine_name ] = identified_num
529529
530530 mzml_table [ms_name ]["num_quant_psms" ] = (
531- mL_spec_ident_final [ms_name ] if ms_name in mL_spec_ident_final .keys () else 0
531+ ml_spec_ident_final [ms_name ] if ms_name in ml_spec_ident_final .keys () else 0
532532 )
533533 mzml_table [ms_name ]["num_quant_peps" ] = (
534- len (mzml_peptide_map [ms_name ]) if ms_name in mL_spec_ident_final .keys () else 0
534+ len (mzml_peptide_map [ms_name ]) if ms_name in ml_spec_ident_final .keys () else 0
535535 )
536536
537537 for raw_id in consensus_paths :
@@ -547,7 +547,7 @@ def parse_idxml(
547547
548548 consensus_label .append ({"name" : raw_id_name , "ylab" : "Counts" })
549549 search_engine ["consensus_support" ][raw_id_name ] = OrderedDict ()
550-
550+
551551 consensus_support = Histogram (
552552 "Consensus PSM number" , plot_category = "frequency" , stacks = bar_stacks
553553 )
@@ -567,4 +567,4 @@ def parse_idxml(
567567 "consensus_label" : consensus_label ,
568568 }
569569
570- return search_engine , MSGF_label , Comet_label , Sage_label
570+ return search_engine , msgf_label , comet_label , sage_label
0 commit comments