1 \hypertarget{move__set_8h_source}{
2 \section{/homes/fmmarquesmadeira/Projects/jabaws/binaries/src/ViennaRNA/H/move\_\-set.h}
6 \begin{footnotesize}\begin{alltt}
7 00001 \textcolor{preprocessor}{#ifndef \_\_MOVE\_SET\_H}
8 00002 \textcolor{preprocessor}{}\textcolor{preprocessor}{#define \_\_MOVE\_SET\_H}
9 00003 \textcolor{preprocessor}{}
10 00004 \textcolor{comment}{/* used data structure*/}
11 \hypertarget{move__set_8h_source_l00005}{}\hyperlink{structstruct__en}{00005} \textcolor{keyword}{typedef} \textcolor{keyword}{struct }\_struct\_en\{
12 00006 \textcolor{keywordtype}{int} energy; \textcolor{comment}{/* energy in 10kcal/mol*/}
13 00007 \textcolor{keywordtype}{short} *structure; \textcolor{comment}{/* structure in energy\_of\_move format*/}
14 00008 \} \hyperlink{structstruct__en}{struct_en};
16 00010 \textcolor{comment}{/* prints structure*/}
17 00011 \textcolor{keywordtype}{void} print\_stren(FILE *out, \hyperlink{structstruct__en}{struct_en} *str);
18 00012 \textcolor{keywordtype}{void} print\_str(FILE *out, \textcolor{keywordtype}{short} *str);
20 00014 \textcolor{comment}{/* copying functions*/}
21 00015 \textcolor{keywordtype}{void} copy\_arr(\textcolor{keywordtype}{short} *dest, \textcolor{keywordtype}{short} *src); \textcolor{comment}{/*just copy*/}
22 00016 \textcolor{keywordtype}{short} *allocopy(\textcolor{keywordtype}{short} *src); \textcolor{comment}{/*copy and make space*/}
24 00018 \textcolor{comment}{/* walking methods (verbose\_lvl 0-2, shifts = use shift moves? noLP = no lone pai
25 rs? (not compatible with shifts))}
26 00019 \textcolor{comment}{ input: seq - sequence}
27 00020 \textcolor{comment}{ ptable - structure encoded with make\_pair\_table() from pair\_mat.h}
28 00021 \textcolor{comment}{ s, s1 - sequence encoded with encode\_sequence from pair\_mat.h}
29 00022 \textcolor{comment}{ methods: deepest - lowest energy structure is used}
30 00023 \textcolor{comment}{ first - first found lower energy structure is used}
31 00024 \textcolor{comment}{ rand - random lower energy structure is used}
32 00025 \textcolor{comment}{ returns local minima structure in ptable and its energy in 10kcal/mol as outp
35 00027 \textcolor{keywordtype}{int} move\_deepest( \textcolor{keywordtype}{char} *seq,
36 00028 \textcolor{keywordtype}{short} *ptable,
37 00029 \textcolor{keywordtype}{short} *s,
38 00030 \textcolor{keywordtype}{short} *s1,
39 00031 \textcolor{keywordtype}{int} verbosity\_level,
40 00032 \textcolor{keywordtype}{int} shifts,
41 00033 \textcolor{keywordtype}{int} noLP);
42 00034 \textcolor{keywordtype}{int} move\_first( \textcolor{keywordtype}{char} *seq,
43 00035 \textcolor{keywordtype}{short} *ptable,
44 00036 \textcolor{keywordtype}{short} *s,
45 00037 \textcolor{keywordtype}{short} *s1,
46 00038 \textcolor{keywordtype}{int} verbosity\_level,
47 00039 \textcolor{keywordtype}{int} shifts,
48 00040 \textcolor{keywordtype}{int} noLP);
49 00041 \textcolor{keywordtype}{int} move\_rand( \textcolor{keywordtype}{char} *seq,
50 00042 \textcolor{keywordtype}{short} *ptable,
51 00043 \textcolor{keywordtype}{short} *s,
52 00044 \textcolor{keywordtype}{short} *s1,
53 00045 \textcolor{keywordtype}{int} verbosity\_level);
56 00048 \textcolor{comment}{/* browse\_neighbours and do funct function on each of them (used mainly for user
58 00049 \textcolor{comment}{ input: seq - sequence}
59 00050 \textcolor{comment}{ ptable - structure encoded with make\_pair\_table() from pair\_mat.h}
60 00051 \textcolor{comment}{ s, s1 - sequence encoded with encode\_sequence from pair\_mat.h}
61 00052 \textcolor{comment}{ funct - function (moved structure, current structure (or altered by
62 funct)) to do with every structure in neigbourhood}
63 00053 \textcolor{comment}{ returns energy of the structure funct sets as second argument*/}
64 00054 \textcolor{keywordtype}{int} browse\_neighs( \textcolor{keywordtype}{char} *seq,
65 00055 \textcolor{keywordtype}{short} *ptable,
66 00056 \textcolor{keywordtype}{short} *s,
67 00057 \textcolor{keywordtype}{short} *s1,
68 00058 \textcolor{keywordtype}{int} verbosity\_level,
69 00059 \textcolor{keywordtype}{int} shifts,
70 00060 \textcolor{keywordtype}{int} noLP,
71 00061 \textcolor{keywordtype}{int} (*funct) (\hyperlink{structstruct__en}{struct_en}*, \hyperlink{structstruct__en}{struct_en}*));
73 00063 \textcolor{preprocessor}{#endif}
74 \end{alltt}\end{footnotesize}