Pyteomics documentation v2.1.5

auxiliary - common functions and objects

«  mzid - mzIdentML file reader   ::   Contents

auxiliary - common functions and objects

Math

linear_regression() - a wrapper for numpy linear regression

Project infrastructure

PyteomicsError - a pyteomics-specific exception

exception pyteomics.auxiliary.PyteomicsError(msg)[source]

Exception raised for errors in Pyteomics library.

Attributes

message
pyteomics.auxiliary.linear_regression(x, y, a=None, b=None)[source]

Calculate coefficients of a linear regression y = a * x + b.

Parameters :

x, y : array_like of float

a : float, optional

If specified then the slope coefficient is fixed and equals a.

b : float, optional

If specified then the free term is fixed and equals b.

Returns :

out : 4-tuple of float

The structure is (a, b, r, stderr), where a – slope coefficient, b – free term, r – Peason correlation coefficient, stderr – standard deviation.

pyteomics.auxiliary.memoize(maxsize=1000)[source]

Make a memoization decorator. A negative value of maxsize means no size limit.

«  mzid - mzIdentML file reader   ::   Contents