mh_utils.worklist_parser.columns¶
Properties for columns in a Worklist.
Classes:
|
Represents a column in a worklist. |
Functions:
|
Handle special case for injection volume of |
-
class
Column(name, attribute_id, attribute_type, dtype, default_value, field_type=None, reorder_id=None)[source]¶ Bases:
objectRepresents a column in a worklist.
- Parameters
name – The name of the column
attribute_id
attribute_type – can be System Defined = 0, System Used = 1, User Added = 2
dtype (
Callable)default_value (
Any)field_type (
Optional[int]) – Each of the system defined columns have a field type starting from sampleid = 0 to reserved6 = 24. The system used column can be ‘compound param’ = 35, ‘optim param’ = 36, ‘mass param’ = 37 and ‘protein param’ = 38. The User added columns start from 45. DefaultNone.
Methods:
__eq__(other)Return
self == other.__ge__(other)Return
self >= other.Used for pickling.
__gt__(other)Return
self > other.__le__(other)Return
self <= other.__lt__(other)Return
self < other.__ne__(other)Return
self != other.__repr__()Return a string representation of the
Column.__setstate__(state)Used for pickling.
cast_value(value)Cast
valueto the dtype of this column.from_attribute(attribute)Construct a column for an
Attribute.from_dict(d)Construct an instance of
Columnfrom a dictionary.to_dict([convert_values])Returns a dictionary containing the contents of the
Columnobject.Attributes:
can be System Defined = 0, System Used = 1, User Added = 2
Each of the system defined columns have a field type starting from sampleid = 0 to reserved6 = 24.
The name of the column
-
attribute_type¶ Type:
AttributeTypecan be System Defined = 0, System Used = 1, User Added = 2
-
field_type¶ -
Each of the system defined columns have a field type starting from sampleid = 0 to reserved6 = 24. The system used column can be ‘compound param’ = 35, ‘optim param’ = 36, ‘mass param’ = 37 and ‘protein param’ = 38. The User added columns start from 45.
-
injection_volume(val)[source]¶ Handle special case for injection volume of
-1, which indicates “As Method”.
-
columns¶ Mapping of column names to column objects.