File tree Expand file tree Collapse file tree 2 files changed +19
-6
lines changed
Expand file tree Collapse file tree 2 files changed +19
-6
lines changed Original file line number Diff line number Diff line change 1313 parse_mzml ,
1414 aggregate_general_stats
1515)
16- from pmultiqc .modules .common .dia_utils import parse_diann_report , parse_diann_version , draw_diann_metadata_table
16+ from pmultiqc .modules .common .dia_utils import (
17+ parse_diann_report ,
18+ parse_diann_version ,
19+ draw_diann_metadata_table
20+ )
1721from pmultiqc .modules .common .plots .general import draw_exp_design
1822from pmultiqc .modules .common .plots .id import (
1923 draw_summary_protein_ident_table ,
Original file line number Diff line number Diff line change 2929from . import sparklines
3030
3131from pmultiqc .modules .base import BasePMultiqcModule
32- from pmultiqc .modules .common .dia_utils import parse_diann_report , parse_diann_version , draw_diann_metadata_table
32+ from pmultiqc .modules .common .dia_utils import (
33+ parse_diann_report ,
34+ parse_diann_version ,
35+ draw_diann_metadata_table
36+ )
3337from pmultiqc .modules .common .common_utils import (
3438 parse_sdrf ,
3539 get_ms_path ,
@@ -257,11 +261,16 @@ def get_data(self):
257261
258262 # DIA-NN log file for version extraction
259263 self .diann_version = None
260- for f in self .find_log_files ("pmultiqc/diann_log" , filecontents = False ):
261- log_path = os .path .join (f ["root" ], f ["fn" ])
262- self .diann_version = parse_diann_version (log_path )
264+ for key in ["pmultiqc/diann_log_txt" , "pmultiqc/diann_log" ]:
265+ for f in self .find_log_files (key , filecontents = False ):
266+ log_path = os .path .join (f ["root" ], f ["fn" ])
267+ self .diann_version = parse_diann_version (log_path )
268+
269+ if self .diann_version :
270+ log .info (f"DIA-NN version detected: { self .diann_version } " )
271+ break
272+
263273 if self .diann_version :
264- log .info (f"DIA-NN version detected: { self .diann_version } " )
265274 break
266275
267276 if not self .enable_dia :
You can’t perform that action at this time.
0 commit comments