MetaboLights validation framework is dynamic and based on Open Policy Agent
# | SECTION | VALIDATION RULES | DEFAULT FILE COLUMNS | PRIORITISED CONTROL LISTS |
---|---|---|---|---|
1 | ALL | Validation Rules | - | - |
2 | INVESTIGATION FILE (i_Investigation.txt) | Validation Rules | - | Prioritised Control Lists |
3 | SAMPLE FILE (s_REQxxx.txt or s_MTBLSxxx.txt) | Validation Rules | Default Sample File | Characteristics & Factors, Units |
4 | ASSAY FILE (a_REQxxx.txt or a_MTBLSxxx.txt) | Validation Rules | LC-MS, GC-MS, GCxGC-MS, DI-MS, FIA-MS, LC-DAD, CE-MS, MS Imaging, GC-FID, MALDI-MS, MS, NMR, MR Imaging | LC-MS, GC-MS, FIA-MS, DI-MS, GCxGC-MS, MALDI-MS, MSImaging, NMR, Units |
5 | MAF FILE (m_REQxxx.tsv or a_MTBLSxxx.tsv) | Validation Rules | MAF File for MS Assays, MAF File for NMR Assays | |
6 | DATA FILES | Validation Rules |
- Install Open Policy Agent extension (tsandall.opa)
- Download opa executable from here
cd validation
opa test . -v
opa build --ignore tests .