-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add flexible transition lab n sort of outs
- Loading branch information
Showing
11 changed files
with
190 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
use crate::HasIntegerID; | ||
use serde::{Deserialize, Serialize}; | ||
use std::collections::HashMap; | ||
use std::hash::Hash; | ||
|
||
#[derive(Debug, Serialize, Deserialize)] | ||
pub struct ElutionGroup { | ||
pub struct ElutionGroup<T: Clone + Eq + Serialize + Hash + Send + Sync> { | ||
pub id: u64, | ||
pub mobility: f32, | ||
pub rt_seconds: f32, | ||
pub precursor_mz: f64, | ||
pub precursor_charge: u8, | ||
pub fragment_mzs: Option<Vec<f64>>, | ||
pub fragment_charges: Option<Vec<u8>>, | ||
pub fragment_mzs: HashMap<T, f64>, | ||
} | ||
|
||
impl<T: Clone + Eq + Serialize + Hash + Send + Sync> HasIntegerID for ElutionGroup<T> { | ||
fn get_id(&self) -> u64 { | ||
self.id | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.