reader
Reader functions for various file formats
read_dynamx(filepath_or_buffer, time_conversion=('min', 's'))
Reads DynamX .csv files and returns the resulting peptide table as a narwhals DataFrame.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
filepath_or_buffer
|
Path | str | IO | bytes
|
File path of the .csv file or :class: |
required |
time_conversion
|
Optional[tuple[Literal['h', 'min', 's'], Literal['h', 'min', 's']]]
|
How to convert the time unit of the field 'exposure'. Format is (' |
('min', 's')
|
Returns:
Type | Description |
---|---|
DataFrame
|
Peptide table as a narwhals DataFrame. |
Source code in hdxms_datasets/reader.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
|