let print_ref_seq (x:ref_seq) =
sprintf "@SQ\tSN:%s\tLN:%d%s%s%s%s"
x.name
x.length
(match x.assembly with None -> "" | Some x -> sprintf "\tAS:%s" x)
(match x.md5 with None -> "" | Some x -> sprintf "\tM5:%s" x)
(match x.species with None -> "" | Some x -> sprintf "\tSP:%s" x)
(match x.uri with None -> "" | Some x -> sprintf "\tUR:%s" x)