forked from jlab/fold-grammars
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRNAmotiFold_subopt_pfc.gap
More file actions
51 lines (44 loc) · 2.47 KB
/
RNAmotiFold_subopt_pfc.gap
File metadata and controls
51 lines (44 loc) · 2.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import rna
import "Extensions/probabilities.hh" //Includes the pfunc filter code
import "Extensions/typesRNAfolding.hh"
import "Extensions/singlefold.hh"
import "Extensions/mfesubopt.hh"
import "Extensions/rnaoptions_defaults.hh"
import "Extensions/rnaoptions.hh"
import "Extensions/motif.hh"
import "Extensions/shapes.hh"
input rna
type shape_t = shape
type Rope = extern
type base_t = extern
type answer_macrostate_mfe = extern
type answer_macrostate_pfunc = extern
type mfeanswer_v2 = extern
//Signature
include "Signatures/sig_foldrna.gap"
//Algebras
include "Algebras/MFE/alg_mfe_macrostate.gap" //Also contains alg_mfe_subopt
include "Algebras/Pfunc/alg_pfunc_macrostate.gap" //Partition function algebra
include "Algebras/Motif/alg_motif.gap" //Algebra alg_motif working with grammar macrostate
include "Algebras/Motif/alg_motBracket.gap" //Algebra alg_motBracket working with grammar macrostate
include "Algebras/Motif/alg_shapes_mot.gap" // "Motified" shapes algebra including motifs
include "Algebras/Motif/alg_hishapes_mot.gap" // "Motified" hishapes algebras
//Grammars
include "Grammars/gra_macrostate.gap"
include "Grammars/gra_motified_macrostate.gap"
//Instances
//RNAmotiFold
instance RNAmotiFold_motmacro_subopt = gra_motified_macrostate ((alg_motif * alg_mfe_subopt) * alg_motBracket);
instance RNAmotiFold_motmacro_pfc = gra_motified_macrostate((alg_motif*alg_pfunc) suchthat filterLowProbShapes);
instance RNAmotiFold_subopt = gra_macrostate ((alg_motif * alg_mfe_subopt) * alg_motBracket);
instance RNAmotiFold_pfc = gra_macrostate((alg_motif*alg_pfunc) suchthat filterLowProbShapes);
//Motshapes
instance RNAmoSh_motmacro_subopt = gra_motified_macrostate((alg_shapeX_mot*alg_mfe_subopt)*alg_motBracket);
instance RNAmoSh_motmacro_pfc = gra_motified_macrostate((alg_shapeX_mot*alg_pfunc) suchthat filterLowProbShapes);
instance RNAmoSh_subopt = gra_macrostate((alg_shapeX_mot*alg_mfe_subopt)*alg_motBracket);
instance RNAmoSh_pfc = gra_macrostate((alg_shapeX_mot*alg_pfunc) suchthat filterLowProbShapes);
//Mothishapes
instance RNAmotiCes_motmacro_subopt = gra_motified_macrostate((alg_hishapes_mot*alg_mfe_subopt)*alg_motBracket);
instance RNAmotiCes_motmacro_pfc = gra_motified_macrostate((alg_hishapes_mot*alg_pfunc) suchthat filterLowProbShapes);
instance RNAmotiCes_subopt = gra_macrostate((alg_hishapes_mot*alg_mfe_subopt)*alg_motBracket);
instance RNAmotiCes_pfc = gra_macrostate((alg_hishapes_mot*alg_pfunc) suchthat filterLowProbShapes);