let string_to_gff ?filename ~tags () =
let gff = Gff.Transform.string_to_item ?filename () in
embed_parser ?filename (gff ~tags)
~reconstruct:(function
| `bypassed (Ok f) -> Ok (f :> gff_t)
| `bypassed (Error f) -> Error (f :> [> gff_parse_error])
| `transformed (Ok o) -> Ok (o :> gff_t)
| `transformed (Error e) -> Error (e :> [> gff_parse_error]))