C functions to detect IUPAC sequences

This commit is contained in:
Celine Mercier
2017-07-05 17:26:03 +02:00
parent 101f764cce
commit d10192ab0e
3 changed files with 92 additions and 0 deletions

View File

@ -78,6 +78,36 @@ enum
bool only_ATGC(const char* seq);
/**
* @brief Checks if there are only IUPAC DNA characters in a
* character string.
*
* @param seq The sequence to check.
*
* @returns A boolean value indicating if there are only
* IUPAC DNA characters in a character string.
*
* @since May 2017
* @author Celine Mercier (celine.mercier@metabarcoding.org)
*/
bool only_IUPAC_DNA(const char* seq);
/**
* @brief Checks if a character string can be read as a DNA sequence encoded
* with ACGT or IUPAC characters (in capital letters or not).
*
* @param seq The sequence to check.
*
* @returns A boolean value indicating if the character string
* can be read as a DNA sequence.
*
* @since May 2017
* @author Celine Mercier (celine.mercier@metabarcoding.org)
*/
bool is_a_DNA_seq(const char* seq);
/**
* @brief Encodes a DNA sequence with each nucleotide coded on 2 bits.
*