garywelz commited on
Commit
8809025
·
verified ·
1 Parent(s): 729be58

Upload 3 files

Browse files
Yeast_Processes_as_Programs.html CHANGED
@@ -245,17 +245,17 @@
245
  <li style="background: #ff6b6b; color: white;">
246
  🔴 <strong>Triggers:</strong> Environmental inputs and system calls
247
  </li>
248
- <li style="background: #feca57; color: black;">
249
- 🟡 <strong>Proteins:</strong> Software objects and function libraries
250
  </li>
251
- <li style="background: #4ecdc4; color: black;">
252
- 🟢 <strong>Enzymes:</strong> Processing algorithms and state machines
253
- </li>
254
- <li style="background: #45b7d1; color: white;">
255
  🔵 <strong>Intermediates:</strong> Data structures and temporary variables
256
  </li>
257
- <li style="background: #96ceb4; color: black;">
258
- 🟢 <strong>Products:</strong> Program outputs and system responses
 
 
 
259
  </li>
260
  </ul>
261
  </div>
@@ -915,8 +915,9 @@ graph TD
915
  </div>
916
 
917
  <script>
 
918
  mermaid.initialize({
919
- startOnLoad: true,
920
  theme: 'default',
921
  flowchart: {
922
  useMaxWidth: false,
@@ -933,10 +934,39 @@ graph TD
933
  primaryTextColor: '#ffffff',
934
  primaryBorderColor: '#ff6b6b',
935
  lineColor: '#333333',
936
- secondaryColor: '#feca57',
937
- tertiaryColor: '#4ecdc4'
938
- }
 
 
939
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
940
  </script>
941
  </body>
942
  </html>
 
245
  <li style="background: #ff6b6b; color: white;">
246
  🔴 <strong>Triggers:</strong> Environmental inputs and system calls
247
  </li>
248
+ <li style="background: #ffd43b; color: black;">
249
+ 🟡 <strong>Enzymes:</strong> Processing algorithms and state machines
250
  </li>
251
+ <li style="background: #74c0fc; color: white;">
 
 
 
252
  🔵 <strong>Intermediates:</strong> Data structures and temporary variables
253
  </li>
254
+ <li style="background: #51cf66; color: white;">
255
+ 🟢 <strong>Processing:</strong> Active cellular processes and reactions
256
+ </li>
257
+ <li style="background: #b197fc; color: white;">
258
+ 🟣 <strong>Products:</strong> Program outputs and system responses
259
  </li>
260
  </ul>
261
  </div>
 
915
  </div>
916
 
917
  <script>
918
+ // Initialize Mermaid with enhanced compatibility for Hugging Face Spaces
919
  mermaid.initialize({
920
+ startOnLoad: false,
921
  theme: 'default',
922
  flowchart: {
923
  useMaxWidth: false,
 
934
  primaryTextColor: '#ffffff',
935
  primaryBorderColor: '#ff6b6b',
936
  lineColor: '#333333',
937
+ secondaryColor: '#ffd43b',
938
+ tertiaryColor: '#74c0fc'
939
+ },
940
+ securityLevel: 'loose',
941
+ logLevel: 1
942
  });
943
+
944
+ // Force re-render when DOM is loaded
945
+ document.addEventListener('DOMContentLoaded', function() {
946
+ console.log('DOM loaded, initializing Mermaid...');
947
+ if (typeof mermaid !== 'undefined') {
948
+ try {
949
+ mermaid.init(undefined, '.mermaid');
950
+ console.log('Mermaid initialized successfully');
951
+ } catch (error) {
952
+ console.error('Mermaid initialization error:', error);
953
+ }
954
+ } else {
955
+ console.error('Mermaid library not loaded');
956
+ }
957
+ });
958
+
959
+ // Also try to render after a short delay
960
+ setTimeout(function() {
961
+ if (typeof mermaid !== 'undefined') {
962
+ try {
963
+ mermaid.init(undefined, '.mermaid');
964
+ console.log('Mermaid re-initialized after delay');
965
+ } catch (error) {
966
+ console.error('Delayed Mermaid initialization error:', error);
967
+ }
968
+ }
969
+ }, 1000);
970
  </script>
971
  </body>
972
  </html>
beta_galactosidase_2025_showcase.html ADDED
@@ -0,0 +1,327 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>β-Galactosidase System: Programming Framework Analysis (2025)</title>
7
+ <script src="https://cdn.jsdelivr.net/npm/mermaid@10.6.1/dist/mermaid.min.js"></script>
8
+ <style>
9
+ body {
10
+ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
11
+ line-height: 1.6;
12
+ margin: 0;
13
+ padding: 0;
14
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
15
+ min-height: 100vh;
16
+ }
17
+
18
+ .container {
19
+ max-width: 1400px;
20
+ margin: 0 auto;
21
+ background: white;
22
+ box-shadow: 0 0 20px rgba(0,0,0,0.1);
23
+ border-radius: 10px;
24
+ overflow: hidden;
25
+ }
26
+
27
+ .header {
28
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
29
+ color: white;
30
+ padding: 2rem;
31
+ text-align: center;
32
+ }
33
+
34
+ .header h1 {
35
+ margin: 0;
36
+ font-size: 2.5rem;
37
+ font-weight: 300;
38
+ }
39
+
40
+ .content {
41
+ padding: 2rem;
42
+ }
43
+
44
+ .intro {
45
+ background: #f8f9fa;
46
+ padding: 2rem;
47
+ border-radius: 8px;
48
+ margin-bottom: 2rem;
49
+ }
50
+
51
+ .mermaid {
52
+ text-align: center;
53
+ margin: 2rem 0;
54
+ padding: 2rem;
55
+ background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
56
+ border-radius: 12px;
57
+ border: 2px solid #dee2e6;
58
+ box-shadow: 0 4px 12px rgba(0,0,0,0.1);
59
+ }
60
+
61
+ .figure-caption {
62
+ text-align: center;
63
+ font-style: italic;
64
+ color: #666;
65
+ margin-top: 1rem;
66
+ font-size: 1.1rem;
67
+ }
68
+
69
+ .color-legend {
70
+ background: #f8f9fa;
71
+ padding: 2rem;
72
+ border-radius: 8px;
73
+ margin: 2rem 0;
74
+ border-left: 4px solid #667eea;
75
+ }
76
+
77
+ .color-legend h4 {
78
+ margin: 0 0 1rem 0;
79
+ color: #495057;
80
+ }
81
+
82
+ .legend-grid {
83
+ display: grid;
84
+ grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
85
+ gap: 1rem;
86
+ }
87
+
88
+ .legend-item {
89
+ display: flex;
90
+ align-items: center;
91
+ padding: 0.5rem;
92
+ border-radius: 4px;
93
+ font-weight: 500;
94
+ }
95
+
96
+ .color-box {
97
+ width: 20px;
98
+ height: 20px;
99
+ border-radius: 3px;
100
+ margin-right: 10px;
101
+ }
102
+
103
+ .footer {
104
+ background: #495057;
105
+ color: white;
106
+ text-align: center;
107
+ padding: 2rem;
108
+ margin-top: 2rem;
109
+ }
110
+ </style>
111
+ </head>
112
+ <body>
113
+ <div class="container">
114
+ <div class="header">
115
+ <h1>🧬 β-Galactosidase System Analysis (2025)</h1>
116
+ <p>Programming Framework Methodology Demonstration</p>
117
+ </div>
118
+
119
+ <div class="content">
120
+ <div class="intro">
121
+ <h2>🎯 Case Study: β-Galactosidase Analysis (2025)</h2>
122
+ <p>The β-galactosidase system represents one of the most well-characterized examples of genetic regulation in molecular biology. Using modern tools and AI assistance, we can now create sophisticated and detailed visualizations that demonstrate the full computational complexity of the lac operon system.</p>
123
+ <p>This represents the current state of the Programming Framework methodology, showing how environmental inputs (lactose, glucose, energy status) are processed through regulatory logic gates to control gene expression and metabolic pathways.</p>
124
+ </div>
125
+
126
+ <div class="mermaid">
127
+ graph TD
128
+ %% Environmental Inputs (Red)
129
+ A[Lactose in Environment] --> B[Lactose Transport]
130
+ C[Glucose in Environment] --> D[Glucose Transport]
131
+ E[Low Energy Status] --> F[Energy Stress Signal]
132
+
133
+ %% Structures & Objects (Yellow)
134
+ G[Lactose Permease LacY] --> H[Lactose Inside Cell]
135
+ I[Glucose Transporters] --> J[Glucose Inside Cell]
136
+
137
+ %% Decision Logic
138
+ H --> K{Is Lactose Present?}
139
+ J --> L{Is Glucose Present?}
140
+ F --> M{Is Energy Low?}
141
+
142
+ %% Regulatory States (Blue)
143
+ K -->|No| N[Lac Repressor Active]
144
+ K -->|Yes| O[Lac Repressor Inactive]
145
+ L -->|Yes| P[High Glucose Status]
146
+ L -->|No| Q[Low cAMP Levels]
147
+ M -->|Yes| R[High cAMP Levels]
148
+ M -->|No| S[Low cAMP Levels]
149
+
150
+ %% Regulatory Actions
151
+ N --> T[Repressor Binds Operator]
152
+ O --> U[Repressor Released]
153
+ T --> V[Transcription Blocked]
154
+ U --> W[Operator Free]
155
+
156
+ %% CAP Regulation
157
+ Q --> X[cAMP-CAP Complex]
158
+ R --> X
159
+ X --> Y{CAP Bound?}
160
+ W --> Z{Operator Free?}
161
+
162
+ %% Transcription Control
163
+ Y -->|Yes| AA[CAP Binds Promoter]
164
+ Y -->|No| BB[No CAP Binding]
165
+ Z -->|Yes| CC[RNA Polymerase Binding]
166
+ Z -->|No| DD[Transcription Blocked]
167
+
168
+ %% Transcription Levels
169
+ AA --> EE[Strong Transcription]
170
+ BB --> FF[Weak Transcription]
171
+ CC --> EE
172
+ DD --> GG[Transcription Blocked]
173
+
174
+ %% mRNA Synthesis
175
+ EE --> HH[lacZ mRNA Synthesis]
176
+ EE --> II[lacY mRNA Synthesis]
177
+ EE --> JJ[lacA mRNA Synthesis]
178
+
179
+ %% Protein Translation
180
+ HH --> KK[LacZ Translation]
181
+ II --> LL[LacY Translation]
182
+ JJ --> MM[LacA Translation]
183
+
184
+ %% Enzymes (Yellow)
185
+ KK --> NN[Beta-Galactosidase Enzyme]
186
+ LL --> OO[Lactose Permease]
187
+ MM --> PP[Galactoside Acetyltransferase]
188
+
189
+ %% Chemical Processing (Green)
190
+ NN --> QQ[Lactose Hydrolysis]
191
+ OO --> RR[Lactose Transport]
192
+ PP --> SS[Galactoside Modification]
193
+
194
+ %% Products (Violet)
195
+ QQ --> TT[Glucose + Galactose]
196
+ RR --> UU[Lactose Uptake]
197
+ SS --> VV[Detoxification]
198
+
199
+ %% Metabolic Integration
200
+ TT --> WW[Glycolysis]
201
+ UU --> XX[Lactose Processing]
202
+ VV --> YY[Cell Protection]
203
+
204
+ %% System Outputs
205
+ WW --> ZZ[Energy Production]
206
+ XX --> AAA[Lactose Consumption]
207
+ YY --> BBB[Cell Survival]
208
+
209
+ %% Feedback Loops
210
+ ZZ --> CCC[Energy Status Improved]
211
+ AAA --> DDD[Lactose Depletion]
212
+ BBB --> EEE[Reduced Energy Stress]
213
+
214
+ %% System Equilibrium
215
+ CCC --> FFF[Reduced Lactose Signal]
216
+ DDD --> FFF
217
+ EEE --> GGG[Maintained Homeostasis]
218
+ FFF --> GGG
219
+ GGG --> HHH[System Equilibrium]
220
+
221
+ %% Color Coding Legend
222
+ LEGEND1[🔴 Triggers & Conditions]
223
+ LEGEND2[🟡 Catalysts & Enzymes]
224
+ LEGEND3[🟢 Chemical Processing]
225
+ LEGEND4[🔵 Intermediates & States]
226
+ LEGEND5[🟣 Products & Outputs]
227
+
228
+ %% Legend Connections
229
+ LEGEND1 -.-> LEGEND2
230
+ LEGEND2 -.-> LEGEND3
231
+ LEGEND3 -.-> LEGEND4
232
+ LEGEND4 -.-> LEGEND5
233
+
234
+ %% Styling - Proper Color Coding
235
+ style A fill:#ff6b6b,color:#fff
236
+ style C fill:#ff6b6b,color:#fff
237
+ style E fill:#ff6b6b,color:#fff
238
+ style G fill:#ffd43b,color:#000
239
+ style I fill:#ffd43b,color:#000
240
+ style NN fill:#ffd43b,color:#000
241
+ style OO fill:#ffd43b,color:#000
242
+ style PP fill:#ffd43b,color:#000
243
+ style QQ fill:#51cf66,color:#fff
244
+ style RR fill:#51cf66,color:#fff
245
+ style SS fill:#51cf66,color:#fff
246
+ style K fill:#74c0fc,color:#fff
247
+ style L fill:#74c0fc,color:#fff
248
+ style M fill:#74c0fc,color:#fff
249
+ style N fill:#74c0fc,color:#fff
250
+ style O fill:#74c0fc,color:#fff
251
+ style P fill:#74c0fc,color:#fff
252
+ style Q fill:#74c0fc,color:#fff
253
+ style R fill:#74c0fc,color:#fff
254
+ style S fill:#74c0fc,color:#fff
255
+ style TT fill:#b197fc,color:#fff
256
+ style UU fill:#b197fc,color:#fff
257
+ style VV fill:#b197fc,color:#fff
258
+ style LEGEND1 fill:#ff6b6b,color:#fff
259
+ style LEGEND2 fill:#ffd43b,color:#000
260
+ style LEGEND3 fill:#51cf66,color:#fff
261
+ style LEGEND4 fill:#74c0fc,color:#fff
262
+ style LEGEND5 fill:#b197fc,color:#fff
263
+ </div>
264
+
265
+ <div class="figure-caption">
266
+ <strong>Figure 1:</strong> β-Galactosidase enzyme system analyzed using the Programming Framework methodology, demonstrating how biological processes can be systematically represented as computational flowcharts with standardized color coding. This comprehensive visualization shows environmental inputs, regulatory complexes and enzymes, intermediate states and logic gates, functional outputs, and key regulatory proteins, revealing the sophisticated computational logic underlying lactose metabolism in E. coli including CAP-cAMP regulation, protein synthesis, and dynamic feedback control.
267
+ </div>
268
+
269
+ <div class="color-legend">
270
+ <h4>🎨 Programming Framework Color Coding System</h4>
271
+ <div class="legend-grid">
272
+ <div class="legend-item" style="background: #ff6b6b; color: white;">
273
+ <div class="color-box" style="background: #ff6b6b;"></div>
274
+ <span>🔴 <strong>Triggers & Conditions:</strong> Environmental inputs, cellular stress, developmental cues</span>
275
+ </div>
276
+ <div class="legend-item" style="background: #ffd43b; color: black;">
277
+ <div class="color-box" style="background: #ffd43b;"></div>
278
+ <span>🟡 <strong>Catalysts & Enzymes:</strong> Receptors, enzymes, structural proteins, signaling molecules</span>
279
+ </div>
280
+ <div class="legend-item" style="background: #51cf66; color: white;">
281
+ <div class="color-box" style="background: #51cf66;"></div>
282
+ <span>🟢 <strong>Chemical Processing:</strong> Catalytic activities, phosphorylation events, regulatory processes</span>
283
+ </div>
284
+ <div class="legend-item" style="background: #74c0fc; color: white;">
285
+ <div class="color-box" style="background: #74c0fc;"></div>
286
+ <span>🔵 <strong>Intermediates & States:</strong> Signaling complexes, metabolic intermediates, cellular structures</span>
287
+ </div>
288
+ <div class="legend-item" style="background: #b197fc; color: white;">
289
+ <div class="color-box" style="background: #b197fc;"></div>
290
+ <span>🟣 <strong>Products & Outputs:</strong> Completed processes, cellular responses, functional outcomes</span>
291
+ </div>
292
+ </div>
293
+ </div>
294
+ </div>
295
+
296
+ <div class="footer">
297
+ <p><strong>Generated using the Programming Framework methodology</strong></p>
298
+ <p>This visualization demonstrates the computational nature of biological systems</p>
299
+ </div>
300
+ </div>
301
+
302
+ <script>
303
+ mermaid.initialize({
304
+ startOnLoad: true,
305
+ theme: 'default',
306
+ flowchart: {
307
+ useMaxWidth: false,
308
+ htmlLabels: true,
309
+ curve: 'linear',
310
+ nodeSpacing: 30,
311
+ rankSpacing: 40,
312
+ padding: 10
313
+ },
314
+ themeVariables: {
315
+ fontFamily: 'Arial, sans-serif',
316
+ fontSize: '14px',
317
+ primaryColor: '#ff6b6b',
318
+ primaryTextColor: '#ffffff',
319
+ primaryBorderColor: '#ff6b6b',
320
+ lineColor: '#333333',
321
+ secondaryColor: '#ffd43b',
322
+ tertiaryColor: '#74c0fc'
323
+ }
324
+ });
325
+ </script>
326
+ </body>
327
+ </html>
yeast_top_10_processes.html CHANGED
@@ -233,19 +233,19 @@
233
  <span><strong>Triggers:</strong> Environmental signals, cellular stress, developmental cues</span>
234
  </div>
235
  <div class="color-item">
236
- <div class="color-box" style="background: #feca57;"></div>
237
- <span><strong>Proteins:</strong> Receptors, enzymes, structural proteins, signaling molecules</span>
238
- </div>
239
- <div class="color-item">
240
- <div class="color-box" style="background: #4ecdc4;"></div>
241
  <span><strong>Enzymes:</strong> Catalytic activities, phosphorylation events, regulatory processes</span>
242
  </div>
243
  <div class="color-item">
244
- <div class="color-box" style="background: #45b7d1;"></div>
245
  <span><strong>Intermediates:</strong> Signaling complexes, metabolic intermediates, cellular structures</span>
246
  </div>
247
  <div class="color-item">
248
- <div class="color-box" style="background: #96ceb4;"></div>
 
 
 
 
249
  <span><strong>Products:</strong> Completed processes, cellular responses, functional outcomes</span>
250
  </div>
251
  </div>
@@ -707,8 +707,9 @@ graph TD
707
  </div>
708
 
709
  <script>
 
710
  mermaid.initialize({
711
- startOnLoad: true,
712
  theme: 'default',
713
  flowchart: {
714
  useMaxWidth: false,
@@ -725,10 +726,39 @@ graph TD
725
  primaryTextColor: '#ffffff',
726
  primaryBorderColor: '#ff6b6b',
727
  lineColor: '#333333',
728
- secondaryColor: '#feca57',
729
- tertiaryColor: '#4ecdc4'
730
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
731
  });
 
 
 
 
 
 
 
 
 
 
 
 
732
  </script>
733
  </body>
734
  </html>
 
233
  <span><strong>Triggers:</strong> Environmental signals, cellular stress, developmental cues</span>
234
  </div>
235
  <div class="color-item">
236
+ <div class="color-box" style="background: #ffd43b;"></div>
 
 
 
 
237
  <span><strong>Enzymes:</strong> Catalytic activities, phosphorylation events, regulatory processes</span>
238
  </div>
239
  <div class="color-item">
240
+ <div class="color-box" style="background: #74c0fc;"></div>
241
  <span><strong>Intermediates:</strong> Signaling complexes, metabolic intermediates, cellular structures</span>
242
  </div>
243
  <div class="color-item">
244
+ <div class="color-box" style="background: #51cf66;"></div>
245
+ <span><strong>Processing:</strong> Active cellular processes, metabolic reactions, regulatory events</span>
246
+ </div>
247
+ <div class="color-item">
248
+ <div class="color-box" style="background: #b197fc;"></div>
249
  <span><strong>Products:</strong> Completed processes, cellular responses, functional outcomes</span>
250
  </div>
251
  </div>
 
707
  </div>
708
 
709
  <script>
710
+ // Initialize Mermaid with enhanced compatibility for Hugging Face Spaces
711
  mermaid.initialize({
712
+ startOnLoad: false,
713
  theme: 'default',
714
  flowchart: {
715
  useMaxWidth: false,
 
726
  primaryTextColor: '#ffffff',
727
  primaryBorderColor: '#ff6b6b',
728
  lineColor: '#333333',
729
+ secondaryColor: '#ffd43b',
730
+ tertiaryColor: '#74c0fc'
731
+ },
732
+ securityLevel: 'loose',
733
+ logLevel: 1
734
+ });
735
+
736
+ // Force re-render when DOM is loaded
737
+ document.addEventListener('DOMContentLoaded', function() {
738
+ console.log('DOM loaded, initializing Mermaid...');
739
+ if (typeof mermaid !== 'undefined') {
740
+ try {
741
+ mermaid.init(undefined, '.mermaid');
742
+ console.log('Mermaid initialized successfully');
743
+ } catch (error) {
744
+ console.error('Mermaid initialization error:', error);
745
+ }
746
+ } else {
747
+ console.error('Mermaid library not loaded');
748
+ }
749
  });
750
+
751
+ // Also try to render after a short delay
752
+ setTimeout(function() {
753
+ if (typeof mermaid !== 'undefined') {
754
+ try {
755
+ mermaid.init(undefined, '.mermaid');
756
+ console.log('Mermaid re-initialized after delay');
757
+ } catch (error) {
758
+ console.error('Delayed Mermaid initialization error:', error);
759
+ }
760
+ }
761
+ }, 1000);
762
  </script>
763
  </body>
764
  </html>