Skip to content

Commit

Permalink
chore: release v0.14.6
Browse files Browse the repository at this point in the history
- add ion mobility to parquet outputs
- update changelog
- cargo fmt
  • Loading branch information
lazear committed Feb 3, 2024
1 parent a7414c8 commit 0cc7ca4
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 9 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v0.14.6]
### Added
- Support for MGF files
- Support for writing ion mobility measurements to output files: `ion_mobility`, `predicted_mobility`, `delta_mobility` added to primary tsv and parquet reports. Ion mobility is predicted in a similar manner to RT, using a linear model trained on the data from the search.

## [v0.14.5]
### Added
- Support for semi-enzymatic digests (`database.enzyme.semi_enzymatic` parameter)
Expand Down
6 changes: 3 additions & 3 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-cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sage-cli"
version = "0.14.5"
version = "0.14.6"
authors = ["Michael Lazear <michaellazear92@gmail.com"]
edition = "2021"
rust-version = "1.62"
Expand Down
3 changes: 1 addition & 2 deletions crates/sage-cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,7 @@ impl Runner {
self.parameters.mzml_paths.len(),
);
let _ = sage_core::ml::retention_model::predict(&self.database, &mut outputs.features);
let _ =
sage_core::ml::mobility_model::predict(&self.database, &mut outputs.features);
let _ = sage_core::ml::mobility_model::predict(&self.database, &mut outputs.features);
Some(alignments)
} else {
None
Expand Down
2 changes: 1 addition & 1 deletion crates/sage-cloudpath/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sage-cloudpath"
version = "0.14.5"
version = "0.14.6"
authors = ["Michael Lazear <michaellazear92@gmail.com"]
edition = "2021"
rust-version = "1.62"
Expand Down
6 changes: 6 additions & 0 deletions crates/sage-cloudpath/src/parquet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ pub fn build_schema() -> Result<Type, parquet::errors::ParquetError> {
required float aligned_rt;
required float predicted_rt;
required float delta_rt_model;
required float ion_mobility;
required float predicted_mobility;
required float delta_mobility;
required int32 matched_peaks;
required int32 longest_b;
required int32 longest_y;
Expand Down Expand Up @@ -204,6 +207,9 @@ pub fn serialize_features(
write_col!(aligned_rt, FloatType);
write_col!(predicted_rt, FloatType);
write_col!(delta_rt_model, FloatType);
write_col!(ims, FloatType);
write_col!(predicted_ims, FloatType);
write_col!(delta_ims_model, FloatType);
write_col!(matched_peaks, Int32Type);
write_col!(longest_b, Int32Type);
write_col!(longest_y, Int32Type);
Expand Down
2 changes: 1 addition & 1 deletion crates/sage/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sage-core"
version = "0.14.5"
version = "0.14.6"
authors = ["Michael Lazear <michaellazear92@gmail.com"]
edition = "2021"
rust-version = "1.62"
Expand Down
2 changes: 1 addition & 1 deletion crates/sage/src/ml/mobility_model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ impl MobilityModel {
// Embed N- and C-terminal AA's
// 2 on each end
match aa_idx {
0 | 1=> embedding[N_TERMINAL + idx] += 1.0,
0 | 1 => embedding[N_TERMINAL + idx] += 1.0,
x if x > cterm => embedding[C_TERMINAL + idx] += 1.0,
_ => {}
}
Expand Down

0 comments on commit 0cc7ca4

Please sign in to comment.