RNAlib-2.4.14
|
|
General utility- and helper-functions for RNA sequence and structure strings used throughout the ViennaRNA Package. More...
Go to the source code of this file.
Macros | |
#define | XSTR(s) STR(s) |
Stringify a macro after expansion. | |
#define | STR(s) #s |
Stringify a macro argument. | |
#define | FILENAME_MAX_LENGTH 80 |
Maximum length of filenames that are generated by our programs. More... | |
#define | FILENAME_ID_LENGTH 42 |
Maximum length of id taken from fasta header for filename generation. More... | |
Functions | |
char * | vrna_strdup_printf (const char *format,...) |
Safely create a formatted string. More... | |
char * | vrna_strdup_vprintf (const char *format, va_list argp) |
Safely create a formatted string. More... | |
int | vrna_strcat_printf (char **dest, const char *format,...) |
Safely append a formatted string to another string. More... | |
int | vrna_strcat_vprintf (char **dest, const char *format, va_list args) |
Safely append a formatted string to another string. More... | |
char ** | vrna_strsplit (const char *string, const char *delimiter) |
Split a string into tokens using a delimiting character. More... | |
char * | vrna_random_string (int l, const char symbols[]) |
Create a random string using characters from a specified symbol set. More... | |
int | vrna_hamming_distance (const char *s1, const char *s2) |
Calculate hamming distance between two sequences. More... | |
int | vrna_hamming_distance_bound (const char *s1, const char *s2, int n) |
Calculate hamming distance between two sequences up to a specified length. More... | |
void | vrna_seq_toRNA (char *sequence) |
Convert an input sequence (possibly containing DNA alphabet characters) to RNA alphabet. More... | |
void | vrna_seq_toupper (char *sequence) |
Convert an input sequence to uppercase. More... | |
char * | vrna_seq_ungapped (const char *seq) |
Remove gap characters from a nucleotide sequence. More... | |
char * | vrna_cut_point_insert (const char *string, int cp) |
Add a separating '&' character into a string according to cut-point position. More... | |
char * | vrna_cut_point_remove (const char *string, int *cp) |
Remove a separating '&' character from a string. More... | |
void | str_uppercase (char *sequence) |
Convert an input sequence to uppercase. More... | |
void | str_DNA2RNA (char *sequence) |
Convert a DNA input sequence to RNA alphabet. More... | |
char * | random_string (int l, const char symbols[]) |
Create a random string using characters from a specified symbol set. More... | |
int | hamming (const char *s1, const char *s2) |
Calculate hamming distance between two sequences. More... | |
int | hamming_bound (const char *s1, const char *s2, int n) |
Calculate hamming distance between two sequences up to a specified length. More... | |
General utility- and helper-functions for RNA sequence and structure strings used throughout the ViennaRNA Package.
,
void str_uppercase | ( | char * | sequence | ) |
Convert an input sequence to uppercase.
void str_DNA2RNA | ( | char * | sequence | ) |
Convert a DNA input sequence to RNA alphabet.
char* random_string | ( | int | l, |
const char | symbols[] | ||
) |
Create a random string using characters from a specified symbol set.
int hamming | ( | const char * | s1, |
const char * | s2 | ||
) |
Calculate hamming distance between two sequences.
int hamming_bound | ( | const char * | s1, |
const char * | s2, | ||
int | n | ||
) |
Calculate hamming distance between two sequences up to a specified length.