pyms.Mixins
¶
Mixins for PyMassSpec Classes.
Classes:
Mixin class for retention time attributes and methods. |
|
Mixin class for |
|
Mixin class to add the |
|
Mixin class to add the |
|
Mixin class to add the |
-
class
GetIndexTimeMixin
[source]¶ Bases:
object
Mixin class for retention time attributes and methods.
Methods:
get_index_at_time
(time)Returns the nearest index corresponding to the given time.
Returns time at given index.
-
get_index_at_time
(time)[source]¶ Returns the nearest index corresponding to the given time.
- Parameters:
time (
float
) – Time in seconds- Return type:
- Returns:
Nearest index corresponding to given time
- Authors:
Lewis Lee, Tim Erwin, Vladimir Likic
Changed in version 2.3.0: Now returns
-1
if no index is found.
-
-
class
IntensityArrayMixin
[source]¶ Bases:
object
Mixin class for
intensity_array
attribute.Attributes:
Returns a copy of the intensity array.
Returns a copy of the intensity array as a list of lists of floats.
Returns a copy of the intensity matrix.
Returns the intensity matrix as a list of lists of floats.
-
property
intensity_array
¶ Returns a copy of the intensity array.
- Return type:
- Returns:
Matrix of intensity values.
- Authors:
Andrew Isaac, Lewis Lee
-
property
intensity_array_list
¶ Returns a copy of the intensity array as a list of lists of floats.
-
property
intensity_matrix
¶ Returns a copy of the intensity matrix.
- Return type:
- Returns:
Matrix of intensity values.
- Author:
Andrew Isaac
-
property
-
class
MassListMixin
[source]¶ Bases:
MaxMinMassMixin
Mixin class to add the
mass_list
property, which returns a copy of the internal_mass_list
attribute.Attributes:
Returns a list of the masses.
-
class
MaxMinMassMixin
[source]¶ Bases:
object
Mixin class to add the
min_mass
andmax_mass
properties, which provide read-only access to the internal_min_mass
and_max_mass
attributes.Attributes:
Returns the maximum m/z value in the spectrum.
Returns the minimum m/z value in the spectrum.
-
property
max_mass
¶ Returns the maximum m/z value in the spectrum.
-
property