Skip to content

Commit a987ded

Browse files
authored
Merge pull request #138 from bigbio/dev
minor changes in the comments
2 parents 01aa4a8 + f7245b2 commit a987ded

File tree

1 file changed

+57
-43
lines changed

1 file changed

+57
-43
lines changed

pmultiqc/modules/quantms/quantms.py

Lines changed: 57 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -833,15 +833,22 @@ def draw_ms_information(self):
833833
name="MS1 Information",
834834
anchor="ms1_information",
835835
description="#### MS1 quality control information extracted from the spectrum files",
836-
helptext="This plot displays Total Ion Chromatograms (TICs) derived from MS1 scans across all analyzed samples. The x-axis represents retention time, and the y-axis shows the total ion intensity at each time point. Each colored trace corresponds to a different sample."
837-
"The TIC provides a global view of the ion signal throughout the LC-MS/MS run, reflecting when compounds elute from the chromatography column. Key aspects to assess include:"
838-
"1. Overall intensity pattern: A consistent baseline and similar peak profiles across samples indicate good reproducibility."
839-
"2. Major peak alignment: Prominent peaks appearing at similar retention times suggest stable chromatographic performance."
840-
"3. Signal-to-noise ratio: High peaks relative to baseline noise reflect better sensitivity."
841-
"4. Chromatographic resolution: Sharp, well-separated peaks indicate effective separation."
842-
"5. Signal drift: A gradual decline in signal intensity across the run may point to source contamination or chromatography issues."
843-
""
844-
"Deviations such as shifted retention times, missing peaks, or inconsistent intensities may signal problems in sample preparation, LC conditions, or mass spectrometer performance that require further investigation.",
836+
helptext="""
837+
This plot displays Total Ion Chromatograms (TICs) derived from MS1 scans across all analyzed samples.
838+
The x-axis represents retention time, and the y-axis shows the total ion intensity at each time point.
839+
Each colored trace corresponds to a different sample. The TIC provides a global view of the ion signal
840+
throughout the LC-MS/MS run, reflecting when compounds elute from the chromatography column.
841+
Key aspects to assess include:
842+
843+
* Overall intensity pattern: A consistent baseline and similar peak profiles across samples indicate good reproducibility.
844+
* Major peak alignment: Prominent peaks appearing at similar retention times suggest stable chromatographic performance.
845+
* Signal-to-noise ratio: High peaks relative to baseline noise reflect better sensitivity.
846+
* Chromatographic resolution: Sharp, well-separated peaks indicate effective separation.
847+
* Signal drift: A gradual decline in signal intensity across the run may point to source contamination or chromatography issues.
848+
849+
Deviations such as shifted retention times, missing peaks, or inconsistent intensities may signal problems
850+
in sample preparation, LC conditions, or mass spectrometer performance that require further investigation.
851+
""",
845852
plot=ms1_tic_html,
846853
)
847854

@@ -857,14 +864,16 @@ def draw_ms_information(self):
857864
ms1_bpc_html = linegraph.plot(self.ms1_bpc, ms1_bpc_config)
858865
self.add_section(
859866
description="#### MS1 base peak chromatograms extracted from the spectrum files",
860-
helptext="The Base Peak Chromatogram (BPC) displays the intensity of the most abundant ion at each retention"
861-
" time point across your LC-MS run. Unlike the Total Ion Chromatogram (TIC) which shows the summed"
862-
" intensity of all ions, the BPC highlights the strongest signals, providing better visualization"
863-
" of compounds with high abundance while reducing baseline noise. This makes it particularly useful"
864-
" for identifying major components in complex samples, monitoring dominant species, and providing"
865-
" clearer peak visualization when signal-to-noise ratio is a concern. Comparing BPC patterns across"
866-
" samples allows you to evaluate consistency in the detection of high-abundance compounds"
867-
" and can reveal significant variations in sample composition or instrument performance.",
867+
helptext="""
868+
The Base Peak Chromatogram (BPC) displays the intensity of the most abundant ion at each retention
869+
time point across your LC-MS run. Unlike the Total Ion Chromatogram (TIC) which shows the summed
870+
intensity of all ions, the BPC highlights the strongest signals, providing better visualization
871+
of compounds with high abundance while reducing baseline noise. This makes it particularly useful
872+
for identifying major components in complex samples, monitoring dominant species, and providing
873+
clearer peak visualization when signal-to-noise ratio is a concern. Comparing BPC patterns across
874+
samples allows you to evaluate consistency in the detection of high-abundance compounds
875+
and can reveal significant variations in sample composition or instrument performance.
876+
""",
868877
plot=ms1_bpc_html,
869878
)
870879

@@ -880,25 +889,28 @@ def draw_ms_information(self):
880889
ms1_peaks_html = linegraph.plot(self.ms1_peaks, ms1_peaks_config)
881890
self.add_section(
882891
description="""#### MS1 Peaks from the spectrum files""",
883-
helptext="This plot shows the number of peaks detected in MS1 scans over the course of each sample run."
884-
" The x-axis represents retention time (in minutes), while the y-axis displays the number of"
885-
" distinct ion signals (peaks) identified in each MS1 scan. The MS1 peak count reflects spectral"
886-
" complexity and provides insight into instrument performance during the LC-MS analysis."
887-
" Key aspects to consider include:"
888-
" 1. Overall pattern: Peak counts typically increase during the elution of complex mixtures and"
889-
" decrease during column washing or re-equilibration phases."
890-
" 2. Peak density: Higher counts suggest more complex spectra, potentially indicating a greater"
891-
" number of compounds present at that time point."
892-
" 3. Peak Consistency across samples: Similar profiles among replicates or related samples"
893-
" indicate good analytical reproducibility."
894-
" 4. Sudden drops: Abrupt decreases in peak count may point to transient ionization issues,"
895-
" spray instability, or chromatographic disruptions."
896-
" 5. Baseline values: The minimum peak count observed reflects the level of background noise"
897-
" or instrument sensitivity in the absence of eluting compounds."
898-
""
899-
" Monitoring MS1 peak counts complements total ion chromatogram (TIC) and base peak chromatogram"
900-
" (BPC) data, offering an additional layer of quality control related to signal complexity,"
901-
" instrument stability, and sample composition.",
892+
helptext="""
893+
This plot shows the number of peaks detected in MS1 scans over the course of each sample run.
894+
The x-axis represents retention time (in minutes), while the y-axis displays the number of
895+
distinct ion signals (peaks) identified in each MS1 scan. The MS1 peak count reflects spectral
896+
complexity and provides insight into instrument performance during the LC-MS analysis.
897+
Key aspects to consider include:
898+
899+
* Overall pattern: Peak counts typically increase during the elution of complex mixtures and
900+
decrease during column washing or re-equilibration phases.
901+
* Peak density: Higher counts suggest more complex spectra, potentially indicating a greater
902+
number of compounds present at that time point."
903+
* Peak Consistency across samples: Similar profiles among replicates or related samples
904+
indicate good analytical reproducibility.
905+
* Sudden drops: Abrupt decreases in peak count may point to transient ionization issues,
906+
spray instability, or chromatographic disruptions.
907+
* Baseline values: The minimum peak count observed reflects the level of background noise
908+
or instrument sensitivity in the absence of eluting compounds.
909+
910+
Monitoring MS1 peak counts complements total ion chromatogram (TIC) and base peak chromatogram
911+
(BPC) data, offering an additional layer of quality control related to signal complexity,
912+
instrument stability, and sample composition.
913+
""",
902914
plot=ms1_peaks_html,
903915
)
904916

@@ -912,13 +924,15 @@ def draw_ms_information(self):
912924
table_html = table.plot(self.ms1_general_stats, pconfig=tconfig)
913925
self.add_section(
914926
description="#### General stats for MS1 information extracted from the spectrum files",
915-
helptext="This table presents general statistics for MS1 information extracted from mass spectrometry data files."
916-
" It displays MS runs with their acquisition dates and times."
917-
" For each file, the table shows two key metrics: TotalCurrent (the sum of all MS1 ion intensities throughout the run) and ScanCurrent (the sum of MS2 ion intensities)."
918-
" These values provide a quick overview of the total ion signals detected during both survey scans (MS1) and fragmentation scans (MS2),"
919-
" allowing for comparison of overall signal intensity across samples. Consistent TotalCurrent and ScanCurrent values across similar samples typically"
920-
" indicate good reproducibility in the mass spectrometry analysis, while significant variations may suggest issues with sample preparation,"
921-
" instrument performance, or ionization efficiency. The blue shading helps visualize the relative intensity differences between samples.",
927+
helptext="""
928+
This table presents general statistics for MS1 information extracted from mass spectrometry data files."
929+
It displays MS runs with their acquisition dates and times.
930+
For each file, the table shows two key metrics: TotalCurrent (the sum of all MS1 ion intensities throughout the run) and ScanCurrent (the sum of MS2 ion intensities).
931+
These values provide a quick overview of the total ion signals detected during both survey scans (MS1) and fragmentation scans (MS2),
932+
allowing for comparison of overall signal intensity across samples. Consistent TotalCurrent and ScanCurrent values across similar samples typically
933+
indicate good reproducibility in the mass spectrometry analysis, while significant variations may suggest issues with sample preparation,
934+
instrument performance, or ionization efficiency. The blue shading helps visualize the relative intensity differences between samples.
935+
""",
922936
plot=table_html,
923937
)
924938

0 commit comments

Comments
 (0)