File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -653,7 +653,7 @@ mass spectra that are not :term:`MS1` spectra
653
653
654
654
# 'filtered' now only contains spectra with MS level >= 2
655
655
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
657
657
unwanted data is not even loaded into memory.
658
658
659
659
.. code-block :: python
@@ -707,11 +707,11 @@ To find a spectrum using their original scan number from their native ID we can
707
707
# thus we can use (this would also work for Thermo native IDs)
708
708
lookup.readSpectra(inp, " scan=(?<SCAN>\d+)" ) # # required: creates an internal look-up table
709
709
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
711
711
712
712
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 )])
715
715
716
716
filtered.size() # # prints '2'
717
717
filtered.updateRanges() # # make sure RT and m/z ranges are up to date
You can’t perform that action at this time.
0 commit comments