mh_utils.worklist_parser.columns
Properties for columns in a Worklist.
|
Represents a column in a worklist. |
|
Handle special case for injection volume of |
Mapping of column names to column objects. |
-
class
Column
(name, attribute_id, attribute_type, dtype, default_value, field_type=None, reorder_id=None)[source] Bases:
object
Represents a column in a worklist.
- Parameters
-
attribute_type
Type:
AttributeType
The attribute type identifier.
Can be System Defined (
0
), System Used (1
), or User Added (2
).
-
field_type
-
The field type identifier.
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.
-
classmethod
from_attribute
(attribute)[source] Construct a column for a
mh_utils.worklist_parser.classes.Attribute
.
-
injection_volume
(val)[source] Handle special case for injection volume of
-1
, which indicates “As Method”.
-
columns
Mapping of column names to column objects.