cagey.ReactionKey#
- class cagey.ReactionKey(experiment, plate, formulation_number)[source]#
Bases:
object
A unique identifier for a reaction.
- Parameters:
Methods
Create from a JSON file.
Create from a mass spectrum path.
Create from a title file.
Attributes
The name of the experiment.
The plate number.
The formulation number.
- static from_json_file(json_file)[source]#
Create from a JSON file.
The JSON file should contain the
"experiment"
,"plate"
, and"formulation_number"
keys.- Parameters:
json_file (Path) – The path to the JSON file.
- Returns:
A reaction key.
- Return type:
- static from_ms_path(path)[source]#
Create from a mass spectrum path.
- Parameters:
path (Path) – The path to the mass spectrum directory.
- Returns:
A reaction key.
- Return type:
- static from_title_file(title_file)[source]#
Create from a title file.
The title file should contain the experiment, plate, and formulation number in the following format
experiment_plate_formulation_number
.- Parameters:
title_file (Path) – The path to the title file.
- Returns:
A reaction key.
- Return type: