let parse_platform = function
| "CAPILLARY" -> Ok `Capillary
| "LS454" -> Ok `LS454
| "ILLUMINA" -> Ok `Illumina
| "SOLID" -> Ok `Solid
| "HELICOS" -> Ok `Helicos
| "IONTORRENT" -> Ok `Ion_Torrent
| "PACBIO" -> Ok `Pac_Bio
| x -> error "unknown platform" x sexp_of_string