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