let string_to_bed ?filename ?more_columns () =
let bed = Bed.Transform.string_to_item ?more_columns () in
embed_parser ?filename bed
~reconstruct:(function
| `bypassed (Ok f) -> Ok (f :> bed_t)
| `bypassed (Error f) -> Error (f :> [> bed_parse_error])
| `transformed (Ok o) -> Ok (`content o :> bed_t)
| `transformed (Error e) -> Error (e :> [> bed_parse_error]))