RNAlib-2.4.14
boltzmann_sampling.h
Go to the documentation of this file.
1 #ifndef VIENNA_RNA_PACKAGE_BOLTZMANN_SAMPLING_H
2 #define VIENNA_RNA_PACKAGE_BOLTZMANN_SAMPLING_H
3 
28 #define VRNA_PBACKTRACK_DEFAULT 0
29 
40 #define VRNA_PBACKTRACK_NON_REDUNDANT 1
41 
57 typedef void (vrna_boltzmann_sampling_callback)(const char *stucture,
58  void *data);
59 
75 typedef struct vrna_pbacktrack_memory_s *vrna_pbacktrack_mem_t;
76 
78 
108 char *
110  unsigned int length);
111 
112 
157 char **
159  unsigned int num_samples,
160  unsigned int length,
161  unsigned int options);
162 
163 
213 unsigned int
215  unsigned int num_samples,
216  unsigned int length,
218  void *data,
219  unsigned int options);
220 
221 
296 char **
298  unsigned int num_samples,
299  unsigned int length,
300  vrna_pbacktrack_mem_t *nr_mem,
301  unsigned int options);
302 
303 
381 unsigned int
383  unsigned int num_samples,
384  unsigned int length,
386  void *data,
387  vrna_pbacktrack_mem_t *nr_mem,
388  unsigned int options);
389 
390 
418 char *
420 
421 
464 char **
466  unsigned int num_samples,
467  unsigned int options);
468 
469 
517 unsigned int
519  unsigned int num_samples,
521  void *data,
522  unsigned int options);
523 
524 
595 char **
597  unsigned int num_samples,
598  vrna_pbacktrack_mem_t *nr_mem,
599  unsigned int options);
600 
601 
675 unsigned int
677  unsigned int num_samples,
679  void *data,
680  vrna_pbacktrack_mem_t *nr_mem,
681  unsigned int options);
682 
683 
692 void
694 
695 
699 #endif
char ** vrna_pbacktrack5_resume(vrna_fold_compound_t *vc, unsigned int num_samples, unsigned int length, vrna_pbacktrack_mem_t *nr_mem, unsigned int options)
Obtain a set of secondary structure samples for a subsequence from the Boltzmann ensemble according t...
char ** vrna_pbacktrack5_num(vrna_fold_compound_t *fc, unsigned int num_samples, unsigned int length, unsigned int options)
Obtain a set of secondary structure samples for a subsequence from the Boltzmann ensemble according t...
The most basic data structure required by many functions throughout the RNAlib.
Definition: fold_compound.h:132
void vrna_pbacktrack_mem_free(vrna_pbacktrack_mem_t s)
Release memory occupied by a Boltzmann sampling memory data structure.
char * vrna_pbacktrack5(vrna_fold_compound_t *fc, unsigned int length)
Sample a secondary structure of a subsequence from the Boltzmann ensemble according its probability...
unsigned int vrna_pbacktrack_resume_cb(vrna_fold_compound_t *fc, unsigned int num_samples, vrna_boltzmann_sampling_callback *cb, void *data, vrna_pbacktrack_mem_t *nr_mem, unsigned int options)
Obtain a set of secondary structure samples from the Boltzmann ensemble according their probability...
unsigned int vrna_pbacktrack5_resume_cb(vrna_fold_compound_t *fc, unsigned int num_samples, unsigned int length, vrna_boltzmann_sampling_callback *cb, void *data, vrna_pbacktrack_mem_t *nr_mem, unsigned int options)
Obtain a set of secondary structure samples for a subsequence from the Boltzmann ensemble according t...
char * vrna_pbacktrack(vrna_fold_compound_t *fc)
Sample a secondary structure from the Boltzmann ensemble according its probability.
char ** vrna_pbacktrack_num(vrna_fold_compound_t *fc, unsigned int num_samples, unsigned int options)
Obtain a set of secondary structure samples from the Boltzmann ensemble according their probability...
void( vrna_boltzmann_sampling_callback)(const char *stucture, void *data)
Callback for Boltzmann sampling.
Definition: boltzmann_sampling.h:57
unsigned int vrna_pbacktrack5_cb(vrna_fold_compound_t *fc, unsigned int num_samples, unsigned int length, vrna_boltzmann_sampling_callback *cb, void *data, unsigned int options)
Obtain a set of secondary structure samples for a subsequence from the Boltzmann ensemble according t...
char ** vrna_pbacktrack_resume(vrna_fold_compound_t *fc, unsigned int num_samples, vrna_pbacktrack_mem_t *nr_mem, unsigned int options)
Obtain a set of secondary structure samples from the Boltzmann ensemble according their probability...
The Basic Fold Compound API.
struct vrna_pbacktrack_memory_s * vrna_pbacktrack_mem_t
Boltzmann sampling memory data structure.
Definition: boltzmann_sampling.h:75
unsigned int vrna_pbacktrack_cb(vrna_fold_compound_t *fc, unsigned int num_samples, vrna_boltzmann_sampling_callback *cb, void *data, unsigned int options)
Obtain a set of secondary structure samples from the Boltzmann ensemble according their probability...