module BC_NA: sig end
Functions over nucleic acid sequences
val is_dna_char : char -> bool
returns true if the character is 'a', 't', 'c', or 'g'
(case insensitive)
val is_rna_char : char -> bool
returns true if the character is 'a', 'u', 'c', or 'g'
(case insensitive)
val is_na_char : char -> bool
returns true if the character is one of
"acgtumrwsykvhdbxn" (case insensitive)
val is_dna_seq : string -> bool
val is_rna_seq : string -> bool
val is_na_seq : string -> bool
val na_charset : char -> string
returns the set of nucleic acids represented by a
single character: e.g. na_charset 'y' returns "ct"
val to_rna_char : char -> char
convert a character to an RNA character.
This just converts 't's to 'u's (case is preserved), and identity otherwise
val to_dna_char : char -> char
convert a character to a DNA character.
This just converts 'u's to 't's (case is preserved), and identity otherwise
val to_dna : string -> string
convert a string to a DNA sequence.
This just converts all 'u's in the string to 't's (case is preserved)
val to_rna : string -> string
convert a string to an RNA sequence.
This just converts all 't's in the string to 'u's (case is preserved)
val comp_to_dna_char : char -> char
Return the complement base. Outputs 't' for 'a'.
val comp_to_rna_char : char -> char
Return the complement base. Outputs 'u' for 'a'.
val comp_to_dna : string -> string
val comp_to_rna : string -> string
val revcomp_to_dna : string -> string
Return a fresh string representing the reverse complement of the input.
val revcomp_to_rna : string -> string
Return a fresh string representing the reverse complement of the input.