package phylogenetics

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

Module Phylogenetics.AlignmentSource

A representation for sequence alignments

The following invariants are maintained:

  • the alignment is non-empty
  • all sequences have the same length
Sourcetype t
Sourceval nrows : t -> int
Sourceval ncols : t -> int
Sourceval description : t -> int -> string
Sourceval sequence : t -> int -> string
Sourcetype error = [
  1. | `Empty_alignment
  2. | `Unequal_sequence_lengths
]
Sourceval map : t -> f:(description:string -> sequence:string -> string * string) -> (t, [> `Unequal_sequence_lengths ]) result
Sourceval array_mapi : t -> f:(int -> description:string -> sequence:string -> 'a) -> 'a array
Sourceval fold : t -> init:'a -> f:('a -> description:string -> sequence:string -> 'a) -> 'a
Sourceval find_sequence : t -> string -> string option
Sourcetype parsing_error = [
  1. | `Fasta_parser_error of string
  2. | error
]
Sourceval of_assoc_list : (string * string) list -> (t, [> error ]) result
Sourceval from_fasta : string -> (t, [> parsing_error ]) result
Sourceval from_fasta_exn : string -> t

Same as from_fasta but raises Failure if some error happens

Sourceval to_fasta : t -> string -> unit
Sourceval indel_free_columns : t -> bool array
Sourceval residues : t -> column:int -> Core_kernel.Char.Set.t
Sourceval number_of_residues_per_column_stats : t -> (int * int) list
Sourceval composition : t -> (Char.t * float) list
Sourceval constant_site : t -> int -> bool
Sourcemodule Make (S : Seq.S) : Sigs.ALIGNMENT with type base = S.base and type sequence = S.t

Legacy code: provides a functor to build from SEQUENCE modules.