varri-js 1.0.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,226 @@
1
+ (function registerVaRRIExamples(root) {
2
+ 'use strict';
3
+
4
+ const featureOverviewProfile = [
5
+ '# unpaired probabilities',
6
+ '1 0.9',
7
+ '2 0.7',
8
+ '3 0.3',
9
+ '4 0.1',
10
+ '7 0.3',
11
+ '8 0.7',
12
+ '9 0.6',
13
+ ].join('\n');
14
+
15
+ const coronelTellezProfile1 = [
16
+ '61 0.6',
17
+ '62 1',
18
+ '63 0.6',
19
+ '64 0.2',
20
+ '65 0.2',
21
+ '66 1',
22
+ '67 0.2',
23
+ '68 0.2',
24
+ '69 0.2',
25
+ '70 0.2',
26
+ '71 0.6',
27
+ '72 1',
28
+ '73 0.6',
29
+ '74 0.6',
30
+ '75 1',
31
+ '76 1',
32
+ '77 0.2',
33
+ '78 0.2',
34
+ '79 0.2',
35
+ '80 0.6',
36
+ '81 0.6',
37
+ '82 0.2',
38
+ '83 0.6',
39
+ '84 0.2',
40
+ '85 0.6',
41
+ '86 0.6',
42
+ '87 0.6',
43
+ '88 0.2',
44
+ '89 0.2',
45
+ '90 0.2',
46
+ '91 0.2',
47
+ '92 0.2',
48
+ '93 0.2',
49
+ '94 0.6',
50
+ '95 0.6',
51
+ '96 0.2',
52
+ '97 0',
53
+ '98 1',
54
+ '99 0.6',
55
+ '100 0.2',
56
+ '101 1',
57
+ '102 0.6',
58
+ '103 0.2',
59
+ '104 0.2',
60
+ '105 0',
61
+ '106 0.2',
62
+ '107 0.2',
63
+ ].join('\n');
64
+
65
+ const coronelTellezProfile2 = [
66
+ '64 0.6',
67
+ '65 0.2',
68
+ '66 0.2',
69
+ '67 0',
70
+ '68 0.6',
71
+ '69 0.6',
72
+ '70 0.2',
73
+ '71 0.2',
74
+ '72 0',
75
+ '73 1',
76
+ '74 0.2',
77
+ '75 0.2',
78
+ '76 0',
79
+ '77 0.6',
80
+ '78 0.2',
81
+ '79 0.2',
82
+ '80 0.2',
83
+ '81 0.2',
84
+ '82 0.2',
85
+ '83 0.2',
86
+ '84 0.2',
87
+ '85 0.2',
88
+ '86 0.2',
89
+ '87 0.2',
90
+ '88 0.6',
91
+ '89 0.2',
92
+ '90 1',
93
+ '91 0.6',
94
+ '92 0.6',
95
+ '93 1',
96
+ '94 0.2',
97
+ '95 0.2',
98
+ '96 1',
99
+ '97 0.2',
100
+ '98 0.2',
101
+ '99 0.2',
102
+ '100 0.6',
103
+ '101 0.2',
104
+ '102 0.2',
105
+ '103 0.2',
106
+ '104 0',
107
+ '105 0',
108
+ '106 0',
109
+ '107 0.6',
110
+ ].join('\n');
111
+
112
+ const examples = {
113
+ '2mol': {
114
+ name: 'RNA–RNA interaction feature overview',
115
+ nameShort: 'All feature showcase',
116
+ description: 'Demonstrates cropping, probability profiles, region and subsequence highlights, and point mutations in one interaction.',
117
+ descriptionShort: 'Showcases all features of vaRRI.',
118
+ vaRRIParams: {
119
+ sequence: 'ACGAUCAUGUGGUUUAGAGCAUUUUCGACAGCAG&ACGAAAAAAAGAGCAGACAGUAG',
120
+ structure: '..<<..<<...>>>>...((....(((...((..&............)))))..))..',
121
+ startIndex1: -6,
122
+ startIndex2: 100,
123
+ coloring: 'strand',
124
+ highlighting: 'region',
125
+ backgroundhighlighting: 'basepairs',
126
+ forceLayoutLinearRRI: 1,
127
+ distinctBpTypes: 1,
128
+ cropping: 2,
129
+ forceLayout: 0,
130
+ regionHighlights: '21-25&113-114:0d00ff:0.2',
131
+ subseqHighlights: '1:15-18:338a29:1,2:117-118:1e1ee4:0.7',
132
+ mutations: '1:20G:338a29,2:115C:1e1ee4',
133
+ profileData1: featureOverviewProfile,
134
+ profileIdxRef1: 1,
135
+ profileColorRepresentsOne1: 1,
136
+ profileColorRepresentsOne2: 0,
137
+ },
138
+ },
139
+ 'coronel-tellez-2022': {
140
+ name: 'sRNA-controlled iron sparing response in Staphylococci',
141
+ nameShort: 'SHAPE annotation & cropping',
142
+ authors: 'Coronel-Tellez, et al., 2022',
143
+ doi: 'http://dx.doi.org/10.1093/nar/gkac648',
144
+ description: 'Reproduction of *Figure 6A-bottom* [(Coronel-Tellez, et al., 2022)](http://dx.doi.org/10.1093/nar/gkac648) showing an interaction with position-specific SHAPE probing data annotation and subsequence highlighting. The long input sequences are cropped to the region of interaction +3 nucleotides.',
145
+ descriptionShort: 'Position-specific SHAPE probing data annotation and cropping of long sequences to RRI region.',
146
+ vaRRIParams: {
147
+ sequence: 'AAUUCUAUCUGAAAGAUGUGUGGGGCAUCGUUAUUUUAGGUGGAUAUGAGCAAUUUAUUAAAAGUCAUUUACGGAAAAUAUAUAUAGACGGGGUGAGUAAUAUGCAAGAACAUUUGGUGGUUACACUUGAUAGCAAAGGAGAAGAACUU&UUGAAAAUGAUUAUCAAUACCACAUAGAACAUCCCCCCCACAACGUUUCGUUCUUGUUGGAUUGGUCAUUUUCAAAUAUUCCCCUUUUAUAUGCCCGUAAAAGACAAUAUACGUUAUAACAACGUUUUAUAAAAGCAGUAAACCCUUACGACACUUUAGGUUUACUGCUUUUGU',
148
+ structure: '...............................................................(((.(((((((......((((((((.((((.((((((.(((.............................................&..................................................................))))......))))))))))))))))).))))))).))).....................................................................',
149
+ colorSeq1: 'c9c1c9',
150
+ colorSeq2: 'c9c1c9',
151
+ startIndex1: 1,
152
+ startIndex2: 1,
153
+ cropping: 3,
154
+ forceLayout: 'off',
155
+ backgroundhighlighting: 'nothing',
156
+ highlighting: 'basepairs',
157
+ subseqHighlights: '1:88-93:0f50b8:1,1:102-104:0e7a06:1,2:81-84:e012dd:1,2:94-96:e012dd:1',
158
+ profileData1: coronelTellezProfile1,
159
+ profileColorRepresentsOne1: 1,
160
+ profileColor1: 'ea373c',
161
+ profileData2: coronelTellezProfile2,
162
+ profileColorRepresentsOne2: 1,
163
+ profileColor2: 'ea373c',
164
+ },
165
+ },
166
+ 'wu-2024': {
167
+ name: 'RNA interactome of hypervirulent Klebsiella pneumoniae reveals a small RNA inhibitor of capsular mucoviscosity and virulence',
168
+ nameShort: 'Mutations & highlighting',
169
+ authors: 'Wu et al., 2024',
170
+ doi: 'https://doi.org/10.1101/2024.06.23.600155',
171
+ description: 'Reproduction of Figure 4C [(Wu et al., 2024)](https://doi.org/10.1101/2024.06.23.600155) showing an interaction with 4 mutations and a subsequence highlighting within a sequence context upstream of the start codon.',
172
+ descriptionShort: 'Subsequence highlighting and mutations within a sequence context.',
173
+ vaRRIParams: {
174
+ sequence: 'AACUCGCGAAAGCCAUAAAAACCAGGGAGACA&UUCCCUGGUGUUGGCGCAGUAUUCGCGCA',
175
+ structure: '....((((((.((((.....((((((((....&.))))))))..))))......))))))..',
176
+ startIndex1: -35,
177
+ startIndex2: 2,
178
+ subseqHighlights: '1:-12--6:0dec3f:0.9',
179
+ mutations: '1:-14G:fb0bcb,1:-13G:fb0bcb,2:8C:fb0bcb,2:9C:fb0bcb',
180
+ forceLayout: 'off',
181
+ },
182
+ },
183
+ 'IntaRNA-seeds': {
184
+ name: 'Showcasing potential seed regions considered by IntaRNA',
185
+ nameShort: 'IntaRNA seed regions',
186
+ description: 'Highlighting of the two potential seed interactions considered by IntaRNA to predict the shown interaction between the two sequences. The highlighting is done using a semi-transparent purple color, which allows to show overlapping regions.',
187
+ descriptionShort: 'Opaque highlighting of multiple potential IntaRNA seed regions.',
188
+ vaRRIParams: {
189
+ sequence:'CUUAGCCGUAAUUGGAUUAGCUGAUGAACAAACUUCUCGUGAGUCUGCUGUUGACCCUGGGUCUGAC&GAGAGACCCACGCAGUCGGACUCUUCAGAUUAUCUCCUCAUCAGGCUAAUCACGGUUUUU',
190
+ colorSeq1:'#add8e6',
191
+ startIndex1:-23,
192
+ colorSeq2:'#f4bb44',
193
+ startIndex2:64,
194
+ structure:'...((((((.....(((((((((((((.......(((...((((((((((.......(((((((...&...)))))))..))).)))))))...)))........)))))).)))))))))))))...',
195
+ colorBasepair:'#ff0000',
196
+ coloring:'strand',
197
+ highlighting:'region',
198
+ colorRriNodes:'#ff0000',
199
+ forceLayoutLinearRRI: 1,
200
+ distinctBpTypes:1,
201
+ regionHighlights:'35-41&67-73:0D00FF:0.4,-9--3&108-114:0D00FF:0.4',
202
+ forceLayout: 'off',
203
+ },
204
+ },
205
+ 'crossing-rri': {
206
+ name: 'Crossing RRI showcase',
207
+ nameShort: 'Crossing RRI via force field',
208
+ descriptionShort: 'Crossing RNA–RNA interaction resolved via relaxed force-field layout.',
209
+ description: 'Crossing RNA–RNA interactions (w.r.t. the underlying joint-structure layout algorithm of fornac) are typically problematic since their base pairing forms a crossing pseudoknot structure. Some can be layouted when relaxing the force field (see Visualization Settings).',
210
+ vaRRIParams: {
211
+ sequence: 'NNNNNNNNNNNNNNNNN&NNNNNNNNNNNNN',
212
+ structure:'((..((...<<<..<<<&))))...>>>>>>',
213
+ distinctBpTypes: 0,
214
+ forceLayout: 1,
215
+ forceLayoutFreeTails: 1,
216
+ forceLayoutPullCrossing: 1,
217
+ },
218
+ },
219
+ };
220
+
221
+ root.VARRI_EXAMPLES = examples;
222
+
223
+ if (typeof module !== 'undefined' && module.exports) {
224
+ module.exports = examples;
225
+ }
226
+ })(typeof window !== 'undefined' ? window : globalThis);