massdash.loaders.access.TransitionTSVDataAccess
- class massdash.loaders.access.TransitionTSVDataAccess(filename: str)
Bases:
objectClass to load a transition TSV file
- filename
(str) The path to the transition TSV file.
- data
(pd.DataFrame) The TSV data.
- _load()
Loads the TSV file.
- _validate_columns()
Validates the TSV file has the required columns.
- _resolve_column_names()
Renames the columns of the TSV file to match the required column names.
- _get_actual_column()
Given an attribute name, returns the actual column name in the data that corresponds to that attribute.
- generate_annotation()
Generates an annotation for each row in the data by concatenating the ‘FragmentType’, ‘FragmentSeriesNumber’, and ‘ProductCharge’ columns.
- generate_annotation()
Generates an annotation for each row in the data by concatenating the ‘FragmentType’, ‘FragmentSeriesNumber’, and ‘ProductCharge’ columns.
If the ‘Annotation’ column does not exist in the data, it will be created.
- Returns:
None
- load() DataFrame
Load the transition TSV file