pyms.Experiment
¶
Models a GC-MS experiment, represented by a list of signal peaks.
Classes:
|
Models an experiment. |
Functions:
|
Loads an experiment saved with |
|
Reads the set of experiment files and returns a list of |
-
class
Experiment
(expr_code, peak_list)[source]¶ Bases:
pymsBaseClass
Models an experiment.
- Parameters:
- Author:
Vladimir Likic, Andrew Isaac, Dominic Davis-Foster (type assertions, properties and pathlib support)
Methods:
__copy__
()Returns a new Experiment object containing a copy of the data in this object.
__deepcopy__
([memodict])Returns a new Experiment object containing a copy of the data in this object.
__eq__
(other)Return whether this Experiment object is equal to another object.
__len__
()Returns the number of peaks in the Experiment.
dump
(file_name[, protocol])Dumps an object to a file through
pickle.dump()
.sele_rt_range
(rt_range)Discards all peaks which have the retention time outside the specified range.
Attributes:
Returns the expr_code of the experiment.
Returns the peak list.
-
__copy__
()[source]¶ Returns a new Experiment object containing a copy of the data in this object.
- Return type:
-
__deepcopy__
(memodict={})[source]¶ Returns a new Experiment object containing a copy of the data in this object.
- Return type:
-
__eq__
(other)[source]¶ Return whether this Experiment object is equal to another object.
- Parameters:
other – The other object to test equality with.
- Return type:
-
dump
(file_name, protocol=3)¶ Dumps an object to a file through
pickle.dump()
.
-
load_expr
(file_name)[source]¶ Loads an experiment saved with
pyms.Experiment.Experiment.dump()
.
-
read_expr_list
(file_name)[source]¶ Reads the set of experiment files and returns a list of
pyms.Experiment.Experiment
objects.