package phylogenetics

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Phylogenetics.PhylipSource

The original format is described there. This implementation also allows a somewhat more relaxed syntax:

<nb sequences> <nb cols>
<id> TAB <sequence>
<id> TAB <sequence>
...

which is specified with the option ~strict:false.

Sourcetype item = {
  1. name : string;
  2. sequence : string;
}
Sourcetype t = private {
  1. number_of_sequences : int;
  2. sequence_length : int;
  3. items : item list;
}
Sourceval make_exn : item list -> t
Sourceval read : ?strict:bool -> string -> (t, [> `Msg of string ]) result
Sourceval read_exn : ?strict:bool -> string -> t
Sourceval write : ?strict:bool -> t -> string -> unit