Skip to content

Commit

Permalink
FIX: implementation to take isoalation width and mz into account for …
Browse files Browse the repository at this point in the history
…minitdf. This is quite generix and could/should update in the future
  • Loading branch information
sander-willems-bruker committed Jul 8, 2024
1 parent 2ce3547 commit 71a6536
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/io/readers/spectrum_reader/minitdf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,14 @@ impl SpectrumReaderTrait for MiniTDFSpectrumReader {
spectrum.precursor = precursor;
spectrum.index = precursor.index;
spectrum.collision_energy = self.collision_energies[index];
spectrum.isolation_mz = 0.0; //TODO
spectrum.isolation_width = 0.0; //TODO
spectrum.isolation_mz = precursor.mz; //FIX?
spectrum.isolation_width = if precursor.mz <= 700.0 {
2.0
} else if precursor.mz >= 800.0 {
3.0
} else {
2.0 + (precursor.mz - 700.0) / 100.0
}; //FIX?
spectrum
}

Expand Down

0 comments on commit 71a6536

Please sign in to comment.