diff --git a/docs/chromascope/fn.main.html b/docs/chromascope/fn.main.html index 68cee0b..e702084 100644 --- a/docs/chromascope/fn.main.html +++ b/docs/chromascope/fn.main.html @@ -1,2 +1,2 @@ main in chromascope - Rust -

Function chromascope::main

source ·
pub(crate) fn main()
\ No newline at end of file +

Function chromascope::main

source ·
pub(crate) fn main()
\ No newline at end of file diff --git a/docs/chromascope/gui/index.html b/docs/chromascope/gui/index.html index bdb1f0f..76eb1f4 100644 --- a/docs/chromascope/gui/index.html +++ b/docs/chromascope/gui/index.html @@ -1,5 +1,5 @@ -chromascope::gui - Rust -

Module chromascope::gui

source ·
Expand description

§MzViewerApp Module

+chromascope::gui - Rust +

Module chromascope::gui

source ·
Expand description

§gui logic and components

The mzviewer module provides a graphical user interface (GUI) for visualizing mass spectrometry data from MzML files. It allows users to load mass spectrometry data, select various plotting options, and visualize chromatograms and mass spectra. The module utilizes the eframe and egui libraries for building the GUI and rendering plots.

diff --git a/docs/chromascope/index.html b/docs/chromascope/index.html index cdd3bb8..f23ac69 100644 --- a/docs/chromascope/index.html +++ b/docs/chromascope/index.html @@ -1,11 +1,10 @@ -chromascope - Rust 960 961 962 -
//! # MzViewerApp Module
+
//! # gui logic and components
 
 //! The `mzviewer` module provides a graphical user interface (GUI) for visualizing mass spectrometry data from MzML files.
 //! It allows users to load mass spectrometry data, select various plotting options, and visualize chromatograms and mass spectra.
@@ -1621,7 +1621,7 @@ 

Files

self.invalid_file = FileValidity::Valid; self.user_input.file_path = Some(file_path_str.clone()); self.parsed_ms_data = parser::MzData::default(); - match self.parsed_ms_data.open_msfile(&path) { + match self.parsed_ms_data.open_msfile(path) { Ok(_) => info!("File opened successfully."), Err(e) => warn!("Failed to open file: {}", e), } diff --git a/docs/src/chromascope/main.rs.html b/docs/src/chromascope/main.rs.html index d602489..f9727ea 100644 --- a/docs/src/chromascope/main.rs.html +++ b/docs/src/chromascope/main.rs.html @@ -55,27 +55,21 @@

Files

53 54 55 -56 -57 -58 -
//! Chromascope is an easy-to-use GUI application designed to handle and read mzML mass spectrometry data.
+
//! Chromascope is a lightweight and easy-to-use GUI application designed to read mzML mass spectrometry data.
 //!
 //! The crate consists of three main modules:
 //!
 //! 1. `gui.rs`: This module contains the implementation of the graphical user interface (GUI) using the `egui` library.
 //! 2. `parser.rs`: This module handles the parsing and processing of the mzML data files.
 //! 3. `plotting_parameters.rs`: This module defines the parameters and settings for the data plotting functionality.
-//!
-//! The application is designed to run on Windows systems, and the `#![windows_subsystem = "windows"]` directive is included to ensure proper integration with the Windows environment.
 
-#![windows_subsystem = "windows"]
+#![cfg_attr(target_os = "windows", windows_subsystem = "windows")]
 
 mod gui;
 mod parser;
 mod plotting_parameters;
 
 use egui::IconData;
-use env_logger;
 use gui::*;
 use log::{error, info};
 use std::process;
diff --git a/docs/src/chromascope/parser.rs.html b/docs/src/chromascope/parser.rs.html
index db17f4b..b47ee68 100644
--- a/docs/src/chromascope/parser.rs.html
+++ b/docs/src/chromascope/parser.rs.html
@@ -577,7 +577,7 @@ 

Files

575 576 577 -
//! # Parses and prepares MzML files for plotting
+
//! # backend for parsing MzML files for plotting
 
 //! The `parser` module provides functionality for reading and processing mass spectrometry data from MzML files. It allows users to extract various types of data, including Base Peak Intensity (BIC), Total Ion Chromatogram (TIC), and Extracted Ion Chromatogram (XIC). Additionally, it offers methods for data smoothing and preparation for plotting.
 
diff --git a/docs/src/chromascope/plotting_parameters.rs.html b/docs/src/chromascope/plotting_parameters.rs.html
index d85092f..e7255c6 100644
--- a/docs/src/chromascope/plotting_parameters.rs.html
+++ b/docs/src/chromascope/plotting_parameters.rs.html
@@ -106,9 +106,9 @@ 

Files

104 105 106 -
//! # Line Properties Module
+
//! # contains enums for defining line properties
 //!
-//! This module defines various enumerations and their associated methods for representing line properties in a graphical context. It includes definitions for line colors, line types, and plot types, which can be used in conjunction with the `egui` and `egui_plot` libraries for rendering graphics.
+//! This module defines various enums and their associated methods for representing line properties in a graphical context. It includes definitions for line colors, line types, and plot types, which can be used in conjunction with the `egui` and `egui_plot` libraries for rendering graphics.
 //!
 //! ## Enums
 //!
diff --git a/src/parser.rs b/src/parser.rs
index bee7f0a..72fa910 100644
--- a/src/parser.rs
+++ b/src/parser.rs
@@ -526,8 +526,11 @@ mod tests {
         let mut d = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
         d.push(TEST_FILE);
 
+        // Normalize the path to account for different separators
+        let normalized_d = PathBuf::from(d.to_str().unwrap().replace("\\", "/"));
+
         let mut mzdata = MzData::new();
-        let result = mzdata.open_msfile(&d);
+        let result = mzdata.open_msfile(&normalized_d);
         assert!(result.is_ok());
         assert!(mzdata.msfile.is_ok());
     }
@@ -537,9 +540,12 @@ mod tests {
         let mut d = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
         d.push(TEST_FILE);
 
+        // Normalize the path to account for different separators
+        let normalized_d = PathBuf::from(d.to_str().unwrap().replace("\\", "/"));
+
         let mut mzdata = MzData::new();
 
-        mzdata.open_msfile(&d).unwrap();
+        mzdata.open_msfile(&normalized_d).unwrap();
 
         let result = mzdata.get_xic(722.43, ScanPolarity::Positive, 1000.0);
         assert!(result.is_ok());
@@ -551,9 +557,12 @@ mod tests {
         let mut d = PathBuf::from(env!("CARGO_MANIFEST_DIR"));
         d.push(TEST_FILE);
 
+        // Normalize the path to account for different separators
+        let normalized_d = PathBuf::from(d.to_str().unwrap().replace("\\", "/"));
+
         let mut mzdata = MzData::new();
 
-        mzdata.open_msfile(&d).unwrap();
+        mzdata.open_msfile(&normalized_d).unwrap();
 
         let result = mzdata.get_tic(ScanPolarity::Positive);
         assert!(result.is_ok());