Skip to content

Commit

Permalink
Add changeScanTimeToMinutes to mzmlconversion
Browse files Browse the repository at this point in the history
  • Loading branch information
caroott committed Apr 24, 2022
1 parent e6b3701 commit 7784524
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/MzMLToMzLite/MzMLToMzLite.fs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ open MzIO.Processing
open MzIO.IO
open MzIO.MzSQL
open MzIO.IO.MzML
open ProteomIQon.Core.MzIO.Processing

module MzMLToMzLite =

Expand Down Expand Up @@ -170,7 +171,6 @@ module MzMLToMzLite =
// Get all mass spectra
let massSpectra =
inReaderMS.ReadMassSpectra(inRunID)

logger.Trace "Filtering mass spectra according to retention time."
// Filter mass spectra by minimum or maximum scan time time.
let massSpectraF =
Expand All @@ -195,7 +195,6 @@ module MzMLToMzLite =
)
| None, None ->
massSpectra

//logger.Trace (sprintf "Copying %i mass spectra to output data base." (Seq.length massSpectraF))
///
let insert =
Expand All @@ -207,7 +206,7 @@ module MzMLToMzLite =
|> Seq.iteri (fun i ms ->
if i%1000 = 0 then logger.Trace (sprintf "%i" i)
try
insertSprectrum processParams.Compress outReader outRunID ms1PeakPicking ms2PeakPicking ms
insertSprectrum processParams.Compress outReader outRunID ms1PeakPicking ms2PeakPicking (changeScanTimeToMinutes ms)
with
| ex ->
logger.Trace (sprintf "File:%s ID: %s could not be inserted. Exeption:%A" instrumentOutput ms.ID ex)
Expand Down

0 comments on commit 7784524

Please sign in to comment.