RNAlib-2.2.7
alphabet.h
Go to the documentation of this file.
1 #ifndef VIENNA_RNA_PACKAGE_ALPHABET_H
2 #define VIENNA_RNA_PACKAGE_ALPHABET_H
3 
4 /* make this interface backward compatible with RNAlib < 2.2.0 */
5 #define VRNA_BACKWARD_COMPAT
6 
7 #ifdef DEPRECATION_WARNINGS
8 # ifdef __GNUC__
9 # define DEPRECATED(func) func __attribute__ ((deprecated))
10 # else
11 # define DEPRECATED(func) func
12 # endif
13 #else
14 # define DEPRECATED(func) func
15 #endif
16 
26 #include <ViennaRNA/model.h>
27 
37 char *vrna_ptypes( const short *S,
38  vrna_md_t *md);
39 
44 short *vrna_seq_encode( const char *sequence,
45  vrna_md_t *md);
46 
51 short *vrna_seq_encode_simple(const char *sequence,
52  vrna_md_t *md);
53 
65 int vrna_nucleotide_encode( char c,
66  vrna_md_t *md);
67 
79 char vrna_nucleotide_decode(int enc,
80  vrna_md_t *md);
81 
82 void vrna_aln_encode( const char *sequence,
83  short **S_p,
84  short **s5_p,
85  short **s3_p,
86  char **ss_p,
87  unsigned short **as_p,
88  vrna_md_t *md);
89 
94 #ifdef VRNA_BACKWARD_COMPAT
95 
96 DEPRECATED(char *get_ptypes(const short *S, vrna_md_t *md, unsigned int idx_type));
97 
98 #endif
99 
100 #endif
int vrna_nucleotide_encode(char c, vrna_md_t *md)
Encode a nucleotide character to numerical value.
The model details data structure and its corresponding modifiers.
short * vrna_seq_encode_simple(const char *sequence, vrna_md_t *md)
Get a numerical representation of the nucleotide sequence (simple version)
The data structure that contains the complete model details used throughout the calculations.
Definition: model.h:187
char vrna_nucleotide_decode(int enc, vrna_md_t *md)
Decode a numerical representation of a nucleotide back into nucleotide alphabet.
short * vrna_seq_encode(const char *sequence, vrna_md_t *md)
Get a numerical representation of the nucleotide sequence.
char * vrna_ptypes(const short *S, vrna_md_t *md)
Get an array of the numerical encoding for each possible base pair (i,j)