diff --git a/src/io/readers/metadata_reader.rs b/src/io/readers/metadata_reader.rs index 81c8e11..a439239 100644 --- a/src/io/readers/metadata_reader.rs +++ b/src/io/readers/metadata_reader.rs @@ -19,11 +19,17 @@ impl MetadataReader { let tdf_sql_reader = SqlReader::open(&sql_path).unwrap(); let sql_metadata: HashMap = SqlMetadata::from_sql_reader(&tdf_sql_reader).unwrap(); + let compression_type = sql_metadata + .get("TimsCompressionType") + .unwrap() + .parse() + .unwrap(); Metadata { path: path.as_ref().to_path_buf(), rt_converter: get_rt_converter(&tdf_sql_reader), im_converter: get_im_converter(&sql_metadata, &tdf_sql_reader), mz_converter: get_mz_converter(&sql_metadata), + compression_type, } } } diff --git a/src/ms_data/acquisition.rs b/src/ms_data/acquisition.rs index 790c503..b3e7be0 100644 --- a/src/ms_data/acquisition.rs +++ b/src/ms_data/acquisition.rs @@ -3,7 +3,7 @@ pub enum AcquisitionType { DDAPASEF, DIAPASEF, - // DiagonalDIAPASEF, + DiagonalDIAPASEF, // PRMPASEF, /// Default value. #[default] diff --git a/src/ms_data/metadata.rs b/src/ms_data/metadata.rs index 8da4852..55766a5 100644 --- a/src/ms_data/metadata.rs +++ b/src/ms_data/metadata.rs @@ -11,4 +11,5 @@ pub struct Metadata { pub rt_converter: Frame2RtConverter, pub im_converter: Scan2ImConverter, pub mz_converter: Tof2MzConverter, + pub compression_type: u8, }