RNAlib-2.4.5
sequence.h
Go to the documentation of this file.
1 #ifndef VIENNA_RNA_PACKAGE_SEQUENCE_H
2 #define VIENNA_RNA_PACKAGE_SEQUENCE_H
3 
15 typedef struct vrna_sequence_s vrna_seq_t;
16 
17 
18 #define VRNA_SEQUENCE_RNA 1U
19 
20 #define VRNA_SEQUENCE_DNA 2U
21 
25 typedef enum {
30 
31 
37  char *string;
38  short *encoding;
39  unsigned int length;
40 };
41 
42 
43 vrna_seq_t *vrna_sequence(const char *string,
44  unsigned int options);
45 
46 
47 int vrna_sequence_add(vrna_fold_compound_t *vc,
48  const char *string,
49  unsigned int options);
50 
51 
52 int vrna_sequence_remove(vrna_fold_compound_t *vc,
53  unsigned int i);
54 
55 
56 void vrna_sequence_remove_all(vrna_fold_compound_t *vc);
57 
58 
59 void vrna_sequence_prepare(vrna_fold_compound_t *fc);
60 
61 
66 #endif
char * string
The string representation of the sequence.
Definition: sequence.h:37
Nucleotide sequence represents a DNA type.
Definition: sequence.h:28
Data structure representing a nucleotide sequence.
Definition: sequence.h:35
The most basic data structure required by many functions throughout the RNAlib.
Definition: fold_compound.h:131
short * encoding
The integer representation of the sequence.
Definition: sequence.h:38
unsigned int length
The length of the sequence.
Definition: sequence.h:39
vrna_seq_type_e
A enumerator used in vrna_sequence_s to distinguish different nucleotide sequences.
Definition: sequence.h:25
Nucleotide sequence represents an Unkown type.
Definition: sequence.h:26
Nucleotide sequence represents an RNA type.
Definition: sequence.h:27
vrna_seq_type_e type
The type of sequence.
Definition: sequence.h:36