vendor-export-schema-mapping
Summary
Transform vendor-specific raw MRM lipidomics export files (TSV, CSV, vendor proprietary formats) into a standardized tabular schema by extracting, validating, and normalizing column headers and data types. This enables downstream matching, statistical analysis, and visualization workflows.
When to use
Raw MRM lipidomics data arrives in vendor-specific export formats (e.g., Sciex, Waters, Thermo TSV/CSV) with inconsistent or proprietary column naming, numeric encoding, and lipid nomenclature. Apply this skill when you must ingest heterogeneous vendor outputs into a unified pipeline that expects consistent column headers (retention time, m/z, intensity, lipid ID, sample identifier) and validated numeric types before matching or statistical analysis.
When NOT to use
- Input is already a validated, standardized feature table with normalized headers and decomposed lipid nomenclature fields.
- Data originates from a standardized, open format (e.g., mzML) that does not require vendor-specific schema mapping.
- Lipid nomenclature is already parsed into separate structured fields in the input.
Inputs
- vendor-specific MRM export file (TSV or CSV format)
- sample identifier mapping (optional, for enriching with sample metadata)
- lipid nomenclature patterns or reference (for decomposition)
Outputs
- cleaned, standardized CSV table with normalized column headers
- one row per lipid feature per sample
- decomposed lipid fields (class, chain composition, modification state)
- data quality report flagging missing or malformed rows
How to apply
Load the vendor export file into a pandas DataFrame using appropriate delimiters (TSV or CSV). Extract and standardize column headers by mapping vendor-specific names to canonical names (e.g., 'RetTime' → 'retention_time', 'MZ' → 'm/z', 'Area' → 'intensity'). Validate data integrity by checking for missing values in critical columns, confirming that m/z and intensity columns are numeric (not strings), and parsing lipid nomenclature into decomposed fields (lipid class, chain composition, modification state) using regex or string-split operations. Flag rows with malformed lipid identifiers or out-of-range values. Output the cleaned, structured table as CSV with one row per lipid feature per sample, ready for downstream processing.
Related tools
- pandas (DataFrame loading, column header extraction, standardization, and data validation for vendor export schema mapping)
- Python (Implementation language for regex parsing, string-split operations, and data integrity validation of lipid nomenclature)
Examples
import pandas as pd; df = pd.read_csv('vendor_export.tsv', sep='\t'); df.rename(columns={'RetTime': 'retention_time', 'MZ': 'm/z', 'Area': 'intensity'}, inplace=True); df[['m/z', 'intensity']] = df[['m/z', 'intensity']].apply(pd.to_numeric); df.to_csv('standardized_lipids.csv', index=False)
Evaluation signals
- All critical columns (retention_time, m/z, intensity, lipid_id, sample_id) are present and have expected names after standardization.
- m/z and intensity columns have numeric dtype (float or int), not string; no conversion errors or NaN artefacts introduced.
- Lipid nomenclature is successfully decomposed into separate fields (lipid_class, chain_composition, modification_state) with no rows dropped due to regex mismatch.
- No missing values in critical columns; any rows with missing values are flagged in a data quality report.
- Output CSV row count matches expected sample × feature count; spot-check several rows to confirm header alignment and value preservation.
Limitations
- Vendor export format must be TSV or CSV; proprietary binary formats require vendor-specific parsing libraries not addressed in this workflow.
- Lipid nomenclature parsing relies on regex or string-split heuristics; non-standard or ambiguous lipid identifiers in the vendor export may fail to decompose correctly and must be manually reviewed or flagged.
- No automated detection of vendor format variant; user must specify or infer correct delimiter, encoding, and header row index from the raw file.
- Schema mapping assumes a fixed set of expected columns; vendors with completely novel or missing column types may require ad-hoc extension.
Evidence
- [other] Load raw MRM export file (vendor-specific format, e.g., TSV or CSV) into a pandas DataFrame.: "Load raw MRM export file (vendor-specific format, e.g., TSV or CSV) into a pandas DataFrame."
- [other] Extract and standardize column headers (retention time, m/z, intensity, lipid ID, sample identifier).: "Extract and standardize column headers (retention time, m/z, intensity, lipid ID, sample identifier)."
- [other] Parse lipid nomenclature using regex or string-split operations to decompose lipid class, chain composition, and modification state into separate fields.: "Parse lipid nomenclature using regex or string-split operations to decompose lipid class, chain composition, and modification state into separate fields."
- [other] Validate data integrity: check for missing values, confirm numeric types for m/z and intensity columns, and flag rows with malformed lipid identifiers.: "Validate data integrity: check for missing values, confirm numeric types for m/z and intensity columns, and flag rows with malformed lipid identifiers."
- [readme] streamline various tasks such as data parsing, matching, statistical analysis, and visualization: "streamline various tasks such as data parsing, matching, statistical analysis, and visualization"
1---2name: vendor-export-schema-mapping3description: Use when raw MRM lipidomics data arrives in vendor-specific export formats (e.g., Sciex, Waters, Thermo TSV/CSV) with inconsistent or proprietary column naming, numeric encoding, and lipid nomenclature.4license: CC-BY-4.05---67# vendor-export-schema-mapping89## Summary1011Transform vendor-specific raw MRM lipidomics export files (TSV, CSV, vendor proprietary formats) into a standardized tabular schema by extracting, validating, and normalizing column headers and data types. This enables downstream matching, statistical analysis, and visualization workflows.1213## When to use1415Raw MRM lipidomics data arrives in vendor-specific export formats (e.g., Sciex, Waters, Thermo TSV/CSV) with inconsistent or proprietary column naming, numeric encoding, and lipid nomenclature. Apply this skill when you must ingest heterogeneous vendor outputs into a unified pipeline that expects consistent column headers (retention time, m/z, intensity, lipid ID, sample identifier) and validated numeric types before matching or statistical analysis.1617## When NOT to use1819- Input is already a validated, standardized feature table with normalized headers and decomposed lipid nomenclature fields.20- Data originates from a standardized, open format (e.g., mzML) that does not require vendor-specific schema mapping.21- Lipid nomenclature is already parsed into separate structured fields in the input.2223## Inputs2425- vendor-specific MRM export file (TSV or CSV format)26- sample identifier mapping (optional, for enriching with sample metadata)27- lipid nomenclature patterns or reference (for decomposition)2829## Outputs3031- cleaned, standardized CSV table with normalized column headers32- one row per lipid feature per sample33- decomposed lipid fields (class, chain composition, modification state)34- data quality report flagging missing or malformed rows3536## How to apply3738Load the vendor export file into a pandas DataFrame using appropriate delimiters (TSV or CSV). Extract and standardize column headers by mapping vendor-specific names to canonical names (e.g., 'RetTime' → 'retention_time', 'MZ' → 'm/z', 'Area' → 'intensity'). Validate data integrity by checking for missing values in critical columns, confirming that m/z and intensity columns are numeric (not strings), and parsing lipid nomenclature into decomposed fields (lipid class, chain composition, modification state) using regex or string-split operations. Flag rows with malformed lipid identifiers or out-of-range values. Output the cleaned, structured table as CSV with one row per lipid feature per sample, ready for downstream processing.3940## Related tools4142- **pandas** (DataFrame loading, column header extraction, standardization, and data validation for vendor export schema mapping)43- **Python** (Implementation language for regex parsing, string-split operations, and data integrity validation of lipid nomenclature)4445## Examples4647```48import pandas as pd; df = pd.read_csv('vendor_export.tsv', sep='\t'); df.rename(columns={'RetTime': 'retention_time', 'MZ': 'm/z', 'Area': 'intensity'}, inplace=True); df[['m/z', 'intensity']] = df[['m/z', 'intensity']].apply(pd.to_numeric); df.to_csv('standardized_lipids.csv', index=False)49```5051## Evaluation signals5253- All critical columns (retention_time, m/z, intensity, lipid_id, sample_id) are present and have expected names after standardization.54- m/z and intensity columns have numeric dtype (float or int), not string; no conversion errors or NaN artefacts introduced.55- Lipid nomenclature is successfully decomposed into separate fields (lipid_class, chain_composition, modification_state) with no rows dropped due to regex mismatch.56- No missing values in critical columns; any rows with missing values are flagged in a data quality report.57- Output CSV row count matches expected sample × feature count; spot-check several rows to confirm header alignment and value preservation.5859## Limitations6061- Vendor export format must be TSV or CSV; proprietary binary formats require vendor-specific parsing libraries not addressed in this workflow.62- Lipid nomenclature parsing relies on regex or string-split heuristics; non-standard or ambiguous lipid identifiers in the vendor export may fail to decompose correctly and must be manually reviewed or flagged.63- No automated detection of vendor format variant; user must specify or infer correct delimiter, encoding, and header row index from the raw file.64- Schema mapping assumes a fixed set of expected columns; vendors with completely novel or missing column types may require ad-hoc extension.6566## Evidence6768- [other] Load raw MRM export file (vendor-specific format, e.g., TSV or CSV) into a pandas DataFrame.: "Load raw MRM export file (vendor-specific format, e.g., TSV or CSV) into a pandas DataFrame."69- [other] Extract and standardize column headers (retention time, m/z, intensity, lipid ID, sample identifier).: "Extract and standardize column headers (retention time, m/z, intensity, lipid ID, sample identifier)."70- [other] Parse lipid nomenclature using regex or string-split operations to decompose lipid class, chain composition, and modification state into separate fields.: "Parse lipid nomenclature using regex or string-split operations to decompose lipid class, chain composition, and modification state into separate fields."71- [other] Validate data integrity: check for missing values, confirm numeric types for m/z and intensity columns, and flag rows with malformed lipid identifiers.: "Validate data integrity: check for missing values, confirm numeric types for m/z and intensity columns, and flag rows with malformed lipid identifiers."72- [readme] streamline various tasks such as data parsing, matching, statistical analysis, and visualization: "streamline various tasks such as data parsing, matching, statistical analysis, and visualization"