convert
convert_rt(rt_str)
Convert HDExaminer retention time string to float example: "7.44-7.65" -> 7.545
Lossy conversion
This conversion loses information. The full range is not preserved. This was done such that
retention time can be stored as float and thus be aggregated.
Future versions may store the full range with additional rt_min
and rt_max
columns.
Source code in hdxms_datasets/convert.py
67 68 69 70 71 72 73 74 75 76 77 78 79 |
|
from_dynamx_cluster(dynamx_df)
Convert a DynamX cluster DataFrame to OpenHDX format.
Source code in hdxms_datasets/convert.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
|
from_dynamx_state(dynamx_df)
Convert a DynamX state DataFrame to OpenHDX format.
Source code in hdxms_datasets/convert.py
38 39 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 |
|
from_hdexaminer(hd_examiner_df, extra_columns=None)
Convert an HDExaminer DataFrame to OpenHDX format.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
hd_examiner_df
|
DataFrame
|
DataFrame in HDExaminer format. |
required |
extra_columns
|
list[str] | dict[str, str] | str | None
|
Additional columns to include, either as a list/str of column name(s) or a dictionary mapping original column names to new names. |
None
|
Returns:
Type | Description |
---|---|
DataFrame
|
A DataFrame in OpenHDX format. |
Source code in hdxms_datasets/convert.py
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 |
|