Skip to content

Commit

Permalink
Update timsrust; use spectrum index instead of precursor index as spe…
Browse files Browse the repository at this point in the history
…ctrum id
  • Loading branch information
RalfG authored and lazear committed Apr 15, 2024
1 parent 033e24b commit 9e87042
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
14 changes: 12 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/sage-cloudpath/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ log = "0.4.0"
once_cell = "1.0"
tokio = { version = "1.0", features = ["fs", "io-util", "rt", "macros"] }
quick-xml = { version = "0.31.0", features = ["async-tokio"] }
timsrust = "0.2.0"
timsrust = "0.2.4"
rayon = "1.5"
reqwest = { version = "0.11", features = ["json", "rustls-tls"], default-features = false }
regex = "1.6"
Expand Down
2 changes: 1 addition & 1 deletion crates/sage-cloudpath/src/tdf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl TdfReader {
total_ion_current: 0.0,
mz: dda_spectrum.mz_values.iter().map(|&x| x as f32).collect(),
ms_level: 2,
id: dda_precursor.index.to_string(),
id: dda_spectrum.index.to_string(),
// precursor_id: dda_precursor.index as u32,
// frame_id: dda_precursor.frame_index as u32,
intensity: dda_spectrum.intensities.iter().map(|&x| x as f32).collect(),
Expand Down

0 comments on commit 9e87042

Please sign in to comment.