proteobench.io.params.maxquant module#
Functionality to parse Maxqunt mqpar.xml parameter files.
- proteobench.io.params.maxquant.add_record(data: dict, tag: str, record) dict[source]#
Add tag and record to data dict.
- proteobench.io.params.maxquant.build_Series_from_records(records, index_length=4)[source]#
Build a pandas Series from records.
- Parameters:
- Returns:
The pandas Series built from the records.
- Return type:
- proteobench.io.params.maxquant.extend_tuple(t, target_length: int)[source]#
Extend tuple with None values to match target length.
- Parameters:
- Returns:
The extended tuple.
- Return type:
- Raises:
TypeError – If the input is not a tuple.
ValueError – If the tuple is longer than the target length.
- proteobench.io.params.maxquant.extend_tuples_with_none(list_of_tuples: list[tuple], target_length: int)[source]#
Extend the tuples in a list of tuples with None values to match target length.
- proteobench.io.params.maxquant.extract_params(fname, ms2frac='FTMS', json_file='/home/docs/checkouts/readthedocs.org/user_builds/proteobench/envs/v0.11.1/lib/python3.11/site-packages/proteobench/io/params/json/Quant/quant_lfq_DDA_ion.json') ProteoBenchParameters[source]#
Extract parameters from a MaxQuant XML file.
- Parameters:
- Returns:
The extracted parameters.
- Return type:
- proteobench.io.params.maxquant.flatten_dict_of_dicts(d: dict, parent_key: str = '') dict[source]#
Build tuples for nested dictionaries for use as pandas.MultiIndex.