xcorrrs 1.3.0

Reimplmenmentation of Comet's xcorr algorithm.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use context_error::{BasicKind, BoxedError};
use thiserror::Error;

#[derive(Error, Debug)]
pub enum Error {
    #[error("Empty experimental m/z")]
    EmptyExperimentalSpectrum,
    #[error("m/z ({0}) and intensities ({1}) arrays must have the same length")]
    ExperimentalSpectrumShape(usize, usize),
    #[error("Invalid configuration: {0}")]
    InvalidConfiguration(String),
    #[error("Invalid ProForma string: {0:?}")]
    InvalidProForma(Vec<BoxedError<'static, BasicKind>>),
}