Skip to content

Commit 24b397a

Browse files
committed
grammar fixes; var name fixes
1 parent 5698ab1 commit 24b397a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/source/user_guide/ms_data.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ mass spectra that are not :term:`MS1` spectra
653653
654654
# 'filtered' now only contains spectra with MS level >= 2
655655
656-
Alternatively, we can chose to load only spectra of a certain level using :py:class:`~.PeakFileOptions`, which is even more efficient since
656+
Alternatively, we can choose to load only spectra of a certain level using :py:class:`~.PeakFileOptions`, which is even more efficient since
657657
unwanted data is not even loaded into memory.
658658

659659
.. code-block:: python
@@ -707,11 +707,11 @@ To find a spectrum using their original scan number from their native ID we can
707707
# thus we can use (this would also work for Thermo native IDs)
708708
lookup.readSpectra(inp, "scan=(?<SCAN>\d+)") ## required: creates an internal look-up table
709709
710-
vendor_scan_nrs = [19, 20] ## our test.mzML contains 4 spectra, starting at scan=19
710+
vendor_scan_nrs = [19, 21] ## our test.mzML contains 4 spectra, starting at scan=19
711711
712712
filtered = oms.MSExperiment() ## our result, with all spectra we were looking for
713-
for v_scan_nrs in vendor_scan_nrs:
714-
filtered.addSpectrum(inp[lookup.findByScanNumber(v_scan_nrs)])
713+
for v_scan_nr in vendor_scan_nrs:
714+
filtered.addSpectrum(inp[lookup.findByScanNumber(v_scan_nr)])
715715
716716
filtered.size() ## prints '2'
717717
filtered.updateRanges() ## make sure RT and m/z ranges are up to date

0 commit comments

Comments
 (0)