Post-transcriptional Base Modifications#
Support of modified bases in secondary structure prediction.
Defines
-
VRNA_SC_MOD_CHECK_FALLBACK#
Check for sequence positions whether they resemble the fallback base.
#include <ViennaRNA/constraints/soft_special.h>
This flag can be used to enable a sanity check within the vrna_sc_mod*() functions to see whether a supposedly modified position actually resembles the fallback base as specified in the modification parameters
-
VRNA_SC_MOD_CHECK_UNMOD#
Check for sequence positions whether they resemble the unmodified base.
#include <ViennaRNA/constraints/soft_special.h>
This flag can be used to enable a sanity check within the vrna_sc_mod*() functions to see whether a supposedly modified position actually resembles the unmodified base as specified in the modification parameters
-
VRNA_SC_MOD_SILENT#
Do not produce any warnings within the vrna_sc_mod*() functions.
#include <ViennaRNA/constraints/soft_special.h>
-
VRNA_SC_MOD_DEFAULT#
Default settings for the vrna_sc_mod*() functions.
#include <ViennaRNA/constraints/soft_special.h>
Typedefs
-
typedef struct vrna_sc_mod_param_s *vrna_sc_mod_param_t#
Modified base parameter data structure.
#include <ViennaRNA/constraints/soft_special.h>
Functions
-
vrna_sc_mod_param_t vrna_sc_mod_read_from_jsonfile(const char *filename, vrna_md_t *md)#
Parse and extract energy parameters for a modified base from a JSON file.
#include <ViennaRNA/constraints/soft_special.h>
- SWIG Wrapper Notes:
This function is available as an overloaded function
sc_mod_read_from_jsonfile()where themdparameter may be omitted and defaults toNULL. See, e.g.RNA.sc_mod_read_from_jsonfile()in the The RNA Python module .
- Parameters:
filename – The JSON file containing the specifications of the modified base
md – A model-details data structure (for look-up of canonical base pairs)
- Returns:
Parameters of the modified base
-
vrna_sc_mod_param_t vrna_sc_mod_read_from_json(const char *json, vrna_md_t *md)#
Parse and extract energy parameters for a modified base from a JSON string.
#include <ViennaRNA/constraints/soft_special.h>
- SWIG Wrapper Notes:
This function is available as an overloaded function
sc_mod_read_from_json()where themdparameter may be omitted and defaults toNULL. See, e.g.RNA.sc_mod_read_from_json()in the The RNA Python module .
See also
vrna_sc_mod_read_from_jsonfile(), vrna_sc_mod_parameters_free(), vrna_sc_mod(), Modified Bases
- Parameters:
json – The JSON string containing the specifications of the modified base
md – A model-details data structure (for look-up of canonical base pairs)
- Returns:
Parameters of the modified base
-
void vrna_sc_mod_parameters_free(vrna_sc_mod_param_t params)#
Release memory occupied by a modified base parameter data structure.
#include <ViennaRNA/constraints/soft_special.h>
Properly free a vrna_sc_mod_param_t data structure
- Parameters:
params – The data structure to free
-
int vrna_sc_mod_json(vrna_fold_compound_t *fc, const char *json, const unsigned int *modification_sites, unsigned int options)#
Prepare soft constraint callbacks for modified base as specified in JSON string.
#include <ViennaRNA/constraints/soft_special.h>
This function prepares all requirements to acknowledge modified bases as specified in the provided
jsonstring. All subsequent predictions will treat each modification site special and adjust energy contributions if necessary.- SWIG Wrapper Notes:
This function is attached as overloaded method
sc_mod_json()to objects of typefold_compoundwith defaultoptions= VRNA_SC_MOD_DEFAULT. See, e.g.RNA.fold_compound.sc_mod_json()in the The RNA Python module .
See also
vrna_sc_mod_jsonfile(), vrna_sc_mod(), vrna_sc_mod_m6A(), vrna_sc_mod_pseudouridine(), vrna_sc_mod_inosine(), vrna_sc_mod_7DA(), vrna_sc_mod_purine(), vrna_sc_mod_dihydrouridine(), VRNA_SC_MOD_CHECK_FALLBACK, VRNA_SC_MOD_CHECK_UNMOD, VRNA_SC_MOD_SILENT, VRNA_SC_MOD_DEFAULT, Modified Bases
- Parameters:
fc – The fold_compound the corrections should be bound to
json – The JSON formatted string with the modified base parameters
modification_sites – A list of modification site, i.e. positions that contain the modified base (1-based, last element in the list indicated by 0)
options – A bitvector of options how to handle the input, e.g. VRNA_SC_MOD_DEFAULT
- Returns:
Number of sequence positions modified base parameters will be used for
-
int vrna_sc_mod_jsonfile(vrna_fold_compound_t *fc, const char *json_file, const unsigned int *modification_sites, unsigned int options)#
Prepare soft constraint callbacks for modified base as specified in JSON string.
#include <ViennaRNA/constraints/soft_special.h>
Similar to vrna_sc_mod_json(), this function prepares all requirements to acknowledge modified bases as specified in the provided
jsonfile. All subsequent predictions will treat each modification site special and adjust energy contributions if necessary.- SWIG Wrapper Notes:
This function is attached as overloaded method
sc_mod_jsonfile()to objects of typefold_compoundwith defaultoptions= VRNA_SC_MOD_DEFAULT. See, e.g.RNA.fold_compound.sc_mod_jsonfile()in the The RNA Python module .
See also
vrna_sc_mod_json(), vrna_sc_mod(), vrna_sc_mod_m6A(), vrna_sc_mod_pseudouridine(), vrna_sc_mod_inosine(), vrna_sc_mod_7DA(), vrna_sc_mod_purine(), vrna_sc_mod_dihydrouridine(), VRNA_SC_MOD_CHECK_FALLBACK, VRNA_SC_MOD_CHECK_UNMOD, VRNA_SC_MOD_SILENT, VRNA_SC_MOD_DEFAULT, Modified Bases
- Parameters:
fc – The fold_compound the corrections should be bound to
json_file – The JSON formatted string with the modified base parameters
modification_sites – A list of modification site, i.e. positions that contain the modified base (1-based, last element in the list indicated by 0)
options – A bitvector of options how to handle the input, e.g. VRNA_SC_MOD_DEFAULT
- Returns:
Number of sequence positions modified base parameters will be used for
-
int vrna_sc_mod(vrna_fold_compound_t *fc, const vrna_sc_mod_param_t params, const unsigned int *modification_sites, unsigned int options)#
Prepare soft constraint callbacks for modified base as specified in JSON string.
#include <ViennaRNA/constraints/soft_special.h>
This function takes a vrna_sc_mod_param_t data structure as obtained from vrna_sc_mod_read_from_json() or vrna_sc_mod_read_from_jsonfile() and prepares all requirements to acknowledge modified bases as specified in the provided
paramsdata structure. All subsequent predictions will treat each modification site special and adjust energy contributions if necessary.- SWIG Wrapper Notes:
This function is attached as overloaded method
sc_mod()to objects of typefold_compoundwith defaultoptions= VRNA_SC_MOD_DEFAULT. See, e.g.RNA.fold_compound.sc_mod()in the The RNA Python module .
See also
vrna_sc_mod_read_from_json(), vrna_sc_mod_read_from_jsonfile(), vrna_sc_mod_json(), vrna_sc_mod_jsonfile(), vrna_sc_mod_m6A(), vrna_sc_mod_pseudouridine(), vrna_sc_mod_inosine(), vrna_sc_mod_7DA(), vrna_sc_mod_purine(), vrna_sc_mod_dihydrouridine() VRNA_SC_MOD_CHECK_FALLBACK, VRNA_SC_MOD_CHECK_UNMOD, VRNA_SC_MOD_SILENT, VRNA_SC_MOD_DEFAULT
- Parameters:
fc – The fold_compound the corrections should be bound to
params – The modified base parameters
modification_sites – A list of modification site, i.e. positions that contain the modified base (1-based, last element in the list indicated by 0)
options – A bitvector of options how to handle the input, e.g. VRNA_SC_MOD_DEFAULT
- Returns:
Number of sequence positions modified base parameters will be used for
-
int vrna_sc_mod_m6A(vrna_fold_compound_t *fc, const unsigned int *modification_sites, unsigned int options)#
Add soft constraint callbacks for N6-methyl-adenosine (m6A).
#include <ViennaRNA/constraints/soft_special.h>
This is a convenience wrapper to add support for m6A using the soft constraint callback mechanism. Modification sites are provided as a list of sequence positions (1-based). Energy parameter corrections are derived from Kierzek et al. [2022] .
- SWIG Wrapper Notes:
This function is attached as overloaded method
sc_mod_m6A()to objects of typefold_compoundwith defaultoptions= VRNA_SC_MOD_DEFAULT. See, e.g.RNA.fold_compound.sc_mod_m6A()in the The RNA Python module .
See also
VRNA_SC_MOD_CHECK_FALLBACK, VRNA_SC_MOD_CHECK_UNMOD, VRNA_SC_MOD_SILENT, VRNA_SC_MOD_DEFAULT
- Parameters:
fc – The fold_compound the corrections should be bound to
modification_sites – A list of modification site, i.e. positions that contain the modified base (1-based, last element in the list indicated by 0)
options – A bitvector of options how to handle the input, e.g. VRNA_SC_MOD_DEFAULT
- Returns:
Number of sequence positions modified base parameters will be used for
-
int vrna_sc_mod_pseudouridine(vrna_fold_compound_t *fc, const unsigned int *modification_sites, unsigned int options)#
Add soft constraint callbacks for Pseudouridine.
#include <ViennaRNA/constraints/soft_special.h>
This is a convenience wrapper to add support for pseudouridine using the soft constraint callback mechanism. Modification sites are provided as a list of sequence positions (1-based). Energy parameter corrections are derived from Hudson et al. [2013] .
- SWIG Wrapper Notes:
This function is attached as overloaded method
sc_mod_pseudouridine()to objects of typefold_compoundwith defaultoptions= VRNA_SC_MOD_DEFAULT. See, e.g.RNA.fold_compound.sc_mod_pseudouridine()in the The RNA Python module .
See also
VRNA_SC_MOD_CHECK_FALLBACK, VRNA_SC_MOD_CHECK_UNMOD, VRNA_SC_MOD_SILENT, VRNA_SC_MOD_DEFAULT
- Parameters:
fc – The fold_compound the corrections should be bound to
modification_sites – A list of modification site, i.e. positions that contain the modified base (1-based, last element in the list indicated by 0)
options – A bitvector of options how to handle the input, e.g. VRNA_SC_MOD_DEFAULT
- Returns:
Number of sequence positions modified base parameters will be used for
-
int vrna_sc_mod_inosine(vrna_fold_compound_t *fc, const unsigned int *modification_sites, unsigned int options)#
Add soft constraint callbacks for Inosine.
#include <ViennaRNA/constraints/soft_special.h>
This is a convenience wrapper to add support for inosine using the soft constraint callback mechanism. Modification sites are provided as a list of sequence positions (1-based). Energy parameter corrections are derived from Wright et al. [2007] and Wright et al. [2018] .
- SWIG Wrapper Notes:
This function is attached as overloaded method
sc_mod_inosine()to objects of typefold_compoundwith defaultoptions= VRNA_SC_MOD_DEFAULT. See, e.g.RNA.fold_compound.sc_mod_inosine()in the The RNA Python module .
See also
VRNA_SC_MOD_CHECK_FALLBACK, VRNA_SC_MOD_CHECK_UNMOD, VRNA_SC_MOD_SILENT, VRNA_SC_MOD_DEFAULT
- Parameters:
fc – The fold_compound the corrections should be bound to
modification_sites – A list of modification site, i.e. positions that contain the modified base (1-based, last element in the list indicated by 0)
options – A bitvector of options how to handle the input, e.g. VRNA_SC_MOD_DEFAULT
- Returns:
Number of sequence positions modified base parameters will be used for
-
int vrna_sc_mod_7DA(vrna_fold_compound_t *fc, const unsigned int *modification_sites, unsigned int options)#
Add soft constraint callbacks for 7-deaza-adenosine (7DA).
#include <ViennaRNA/constraints/soft_special.h>
This is a convenience wrapper to add support for 7-deaza-adenosine using the soft constraint callback mechanism. Modification sites are provided as a list of sequence positions (1-based). Energy parameter corrections are derived from Richardson and Znosko [2016] .
- SWIG Wrapper Notes:
This function is attached as overloaded method
sc_mod_7DA()to objects of typefold_compoundwith defaultoptions= VRNA_SC_MOD_DEFAULT. See, e.g.RNA.fold_compound.sc_mod_7DA()in the The RNA Python module .
See also
VRNA_SC_MOD_CHECK_FALLBACK, VRNA_SC_MOD_CHECK_UNMOD, VRNA_SC_MOD_SILENT, VRNA_SC_MOD_DEFAULT
- Parameters:
fc – The fold_compound the corrections should be bound to
modification_sites – A list of modification site, i.e. positions that contain the modified base (1-based, last element in the list indicated by 0)
options – A bitvector of options how to handle the input, e.g. VRNA_SC_MOD_DEFAULT
- Returns:
Number of sequence positions modified base parameters will be used for
-
int vrna_sc_mod_purine(vrna_fold_compound_t *fc, const unsigned int *modification_sites, unsigned int options)#
Add soft constraint callbacks for Purine (a.k.a. nebularine).
#include <ViennaRNA/constraints/soft_special.h>
This is a convenience wrapper to add support for Purine using the soft constraint callback mechanism. Modification sites are provided as a list of sequence positions (1-based). Energy parameter corrections are derived from Jolley and Znosko [2017] .
- SWIG Wrapper Notes:
This function is attached as overloaded method
sc_mod_purine()to objects of typefold_compoundwith defaultoptions= VRNA_SC_MOD_DEFAULT. See, e.g.RNA.fold_compound.sc_mod_purine()in the The RNA Python module .
See also
VRNA_SC_MOD_CHECK_FALLBACK, VRNA_SC_MOD_CHECK_UNMOD, VRNA_SC_MOD_SILENT, VRNA_SC_MOD_DEFAULT
- Parameters:
fc – The fold_compound the corrections should be bound to
modification_sites – A list of modification site, i.e. positions that contain the modified base (1-based, last element in the list indicated by 0)
options – A bitvector of options how to handle the input, e.g. VRNA_SC_MOD_DEFAULT
- Returns:
Number of sequence positions modified base parameters will be used for
-
int vrna_sc_mod_dihydrouridine(vrna_fold_compound_t *fc, const unsigned int *modification_sites, unsigned int options)#
Add soft constraint callbacks for dihydrouridine.
#include <ViennaRNA/constraints/soft_special.h>
This is a convenience wrapper to add support for dihydrouridine using the soft constraint callback mechanism. Modification sites are provided as a list of sequence positions (1-based). Energy parameter corrections are derived from Rosetta/RECESS predictions.
- SWIG Wrapper Notes:
This function is attached as overloaded method
sc_mod_dihydrouridine()to objects of typefold_compoundwith defaultoptions= VRNA_SC_MOD_DEFAULT. See, e.g.RNA.fold_compound.sc_mod_dihydrouridine()in the The RNA Python module .
See also
VRNA_SC_MOD_CHECK_FALLBACK, VRNA_SC_MOD_CHECK_UNMOD, VRNA_SC_MOD_SILENT, VRNA_SC_MOD_DEFAULT
- Parameters:
fc – The fold_compound the corrections should be bound to
modification_sites – A list of modification site, i.e. positions that contain the modified base (1-based, last element in the list indicated by 0)
options – A bitvector of options how to handle the input, e.g. VRNA_SC_MOD_DEFAULT
- Returns:
Number of sequence positions modified base parameters will be used for
-
VRNA_SC_MOD_CHECK_FALLBACK#