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