C functions to detect IUPAC sequences
This commit is contained in:
30
src/encode.h
30
src/encode.h
@ -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.
|
||||
*
|
||||
|
Reference in New Issue
Block a user