-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
87a0b98
commit 1b817de
Showing
7 changed files
with
48 additions
and
59 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 was deleted.
Oops, something went wrong.
33 changes: 0 additions & 33 deletions
33
src/file_readers/common/sql_reader/tables/pasef_frame_msms.rs
This file was deleted.
Oops, something went wrong.
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,4 +1,5 @@ | ||
pub mod frames; | ||
pub mod pasef_frame_msms; | ||
pub mod precursors; | ||
|
||
use std::path::{Path, PathBuf}; | ||
|
30 changes: 30 additions & 0 deletions
30
src/io/readers/file_readers/sql_reader/pasef_frame_msms.rs
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
use super::SqlReadable; | ||
|
||
#[derive(Debug, PartialEq)] | ||
pub struct SqlPasefFrameMsMs { | ||
pub frame: usize, | ||
pub scan_start: usize, | ||
pub scan_end: usize, | ||
pub mz_center: f64, | ||
pub mz_width: f64, | ||
pub collision_energy: f64, | ||
pub precursor: usize, | ||
} | ||
|
||
impl SqlReadable for SqlPasefFrameMsMs { | ||
fn get_sql_query() -> String { | ||
"SELECT Frame, ScanNumBegin, ScanNumEnd, IsolationMz, IsolationWidth, CollisionEnergy, Precursor FROM PasefFrameMsMsInfo".to_string() | ||
} | ||
|
||
fn from_sql_row(row: &rusqlite::Row) -> Self { | ||
Self { | ||
frame: row.get(0).unwrap_or_default(), | ||
scan_start: row.get(1).unwrap_or_default(), | ||
scan_end: row.get(2).unwrap_or_default(), | ||
mz_center: row.get(3).unwrap_or_default(), | ||
mz_width: row.get(4).unwrap_or_default(), | ||
collision_energy: row.get(5).unwrap_or_default(), | ||
precursor: row.get(6).unwrap_or_default(), | ||
} | ||
} | ||
} |