RNAlib-2.4.12
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 
20 
21 
22 #define VRNA_SEQUENCE_RNA 1U
23 
24 #define VRNA_SEQUENCE_DNA 2U
25 
29 typedef enum {
34 
35 
41  char *string;
42  short *encoding;
43  unsigned int length;
44 };
45 
46 
47 vrna_seq_t *
48 vrna_sequence(const char *string,
49  unsigned int options);
50 
51 
52 int
53 vrna_sequence_add(vrna_fold_compound_t *fc,
54  const char *string,
55  unsigned int options);
56 
57 
58 int
59 vrna_sequence_remove(vrna_fold_compound_t *fc,
60  unsigned int i);
61 
62 
63 void
64 vrna_sequence_remove_all(vrna_fold_compound_t *fc);
65 
66 
67 void
68 vrna_sequence_prepare(vrna_fold_compound_t *fc);
69 
70 
75 #endif
vrna_seq_type_e type
The type of sequence.
Definition: sequence.h:40
char * string
The string representation of the sequence.
Definition: sequence.h:41
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:32
Data structure representing a nucleotide sequence.
Definition: sequence.h:39
short * encoding
The integer representation of the sequence.
Definition: sequence.h:42
Nucleotide sequence represents an Unkown type.
Definition: sequence.h:30
Nucleotide sequence represents an RNA type.
Definition: sequence.h:31
The Basic Fold Compound API.
unsigned int length
The length of the sequence.
Definition: sequence.h:43
vrna_seq_type_e
A enumerator used in vrna_sequence_s to distinguish different nucleotide sequences.
Definition: sequence.h:29