/** * @typedef {object} MSEMFilterOptions * @property {object} [ionization={ mf: '', em: 0, charge: 0 }] - ionization method * @property {boolean} [forceIonization=false] - If true ignore existing ionizations * @property {number} [precision=1000] - The precision on the experimental mass * @property {number} [targetMass] - Target mass, allows to calculate error and filter results * @property {number[]} [targetMasses] - Target masses: SORTED array of numbers * @property {number[]} [targetIntensities] - Target intensities: SORTED array of numbers * @property {number} [minMW=-Infinity] - Minimal monoisotopic mass * @property {number} [maxMW=+Infinity] - Maximal monoisotopic mass * @property {number} [minEM=-Infinity] - Minimal monoisotopic mass * @property {number} [maxEM=+Infinity] - Maximal monoisotopic mass * @property {number} [minMSEM=-Infinity] - Minimal monoisotopic mass observed by mass * @property {number} [maxMSEM=+Infinity] - Maximal monoisotopic mass observed by mass * @property {number} [minCharge=-Infinity] - Minimal charge * @property {number} [maxCharge=+Infinity] - Maximal charge * @property {boolean} [absoluteCharge=false] - If true, the charge is absolute (so between 0 and +Infinity by default) * @property {boolean} [allowNegativeAtoms=false] - Allow to have negative number of atoms * @property {object} [unsaturation={}] * @property {number} [unsaturation.min=-Infinity] - Minimal unsaturation * @property {number} [unsaturation.max=+Infinity] - Maximal unsaturation * @property {boolean} [unsaturation.onlyInteger=false] - Integer unsaturation * @property {boolean} [unsaturation.onlyNonInteger=false] - Non integer unsaturation * @property {boolean} [atoms] - object of atom:{min, max} * @property {Function} [callback] - a function that contains information about the current MF */ /** * @param {object} [entry={}] * @param {MSEMFilterOptions} [options={}] * @return {boolean} */ /** * We always recalculate msem */ export function msemMatcher(entry: any, options?: {}): false | { ms: { ionization: any; em: number; charge: any; }; ionization: any; }; export type MSEMFilterOptions = { /** * - ionization method */ ionization?: object; /** * - If true ignore existing ionizations */ forceIonization?: boolean | undefined; /** * - The precision on the experimental mass */ precision?: number | undefined; /** * - Target mass, allows to calculate error and filter results */ targetMass?: number | undefined; /** * - Target masses: SORTED array of numbers */ targetMasses?: number[] | undefined; /** * - Target intensities: SORTED array of numbers */ targetIntensities?: number[] | undefined; /** * - Minimal monoisotopic mass */ minMW?: number | undefined; /** * - Maximal monoisotopic mass */ maxMW?: number | undefined; /** * - Minimal monoisotopic mass */ minEM?: number | undefined; /** * - Maximal monoisotopic mass */ maxEM?: number | undefined; /** * - Minimal monoisotopic mass observed by mass */ minMSEM?: number | undefined; /** * - Maximal monoisotopic mass observed by mass */ maxMSEM?: number | undefined; /** * - Minimal charge */ minCharge?: number | undefined; /** * - Maximal charge */ maxCharge?: number | undefined; /** * - If true, the charge is absolute (so between 0 and +Infinity by default) */ absoluteCharge?: boolean | undefined; /** * - Allow to have negative number of atoms */ allowNegativeAtoms?: boolean | undefined; unsaturation?: { /** * - Minimal unsaturation */ min?: number | undefined; /** * - Maximal unsaturation */ max?: number | undefined; /** * - Integer unsaturation */ onlyInteger?: boolean | undefined; /** * - Non integer unsaturation */ onlyNonInteger?: boolean | undefined; } | undefined; /** * - object of atom:{min, max} */ atoms?: boolean | undefined; /** * - a function that contains information about the current MF */ callback?: Function | undefined; }; //# sourceMappingURL=msemMatcher.d.ts.map