File size: 29,046 Bytes
40d081b
 
a28d422
 
 
 
 
 
 
 
40d081b
 
 
 
0741ce8
40d081b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a28d422
 
 
 
 
 
 
40d081b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a28d422
 
 
 
 
 
 
40d081b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a28d422
 
 
 
 
 
 
40d081b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a28d422
 
 
 
 
 
 
40d081b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a28d422
 
 
 
 
 
 
40d081b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a28d422
 
 
 
 
 
 
40d081b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a28d422
 
 
 
 
 
 
40d081b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a28d422
 
 
 
 
 
 
40d081b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a28d422
 
 
 
 
 
 
40d081b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a28d422
 
 
 
 
 
 
40d081b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a28d422
 
 
 
 
 
 
40d081b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a28d422
 
 
 
 
 
 
40d081b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a28d422
 
 
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
# Basic Actions for Molecular Visualization Benchmark
# These actions test core functionality of molecular visualization tools
# https://www.rcsb.org/structure/1CRN
#
# Taxonomy Level: Task (small-scale visualization task involving a few operations)
# Each task is marked with a comment indicating the end of the task and the task name

# ============================================================
# TASK 1: 1CRN - Load & Basic Representations
# ============================================================

# Loading a CIF file
- vars:
    question: |
        Remove all molecules from and load the data from "data/1CRN.cif".
        Take a screenshot to confirm if the dataset has been loaded.
        Respond with <1> if the cif file has been loaded and the molecule is visible in the viewport, or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# Basic visualization - Van der Waals representation
- vars:
    question: |
        Change the visualization type to Van-der-Waals.
        Take a screenshot to validate whether the representation has been changed.
        Respond with <1> if the molecule in the viewport is in the Van-der-Waals representation, or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# Licorice representation
- vars:
    question: |
        Change the visualization type to Licorice (stick representation).
        Take a screenshot to validate whether the representation has been changed.
        Respond with <1> if the molecule in the viewport is in the Licorice representation showing bonds as sticks, or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# END OF TASK 1: 1CRN - Load & Basic Representations
# Operations: Load CIF file, Van der Waals representation, Licorice representation

# ============================================================
# TASK 2: 1CRN - Color by Properties
# ============================================================

# Coloring by element
- vars:
    question: |
        Color the molecule by element (atoms colored according to their chemical element).
        Take a screenshot to validate whether the coloring has been applied.
        Respond with <1> if the molecule is colored by element with different colors for different atom types, or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# Coloring by chain
- vars:
    question: |
        Select chain A and color it red. Color all other chains blue.
        Take a screenshot to validate whether the selection and coloring has been applied.
        Respond with <1> if Chain A is colored red and other chains are colored blue, or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# Coloring by residue type
- vars:
    question: |
        Color the molecule by residue type (amino acids colored according to their type).
        Take a screenshot to validate whether the coloring has been applied.
        Respond with <1> if the molecule is colored by residue type with different amino acids having distinct colors, or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# END OF TASK 2: 1CRN - Color by Properties
# Operations: Color by element, color by chain, color by residue type

# ============================================================
# TASK 3: 1CRN - Region Selection
# ============================================================

# Selecting and coloring specific residues
- vars:
    question: |
        Select residues 1 to 10 and color them green. Keep the rest of the molecule in its current color.
        Take a screenshot to validate whether the selection and coloring has been applied.
        Respond with <1> if residues 1 to 10 are colored green while the rest of the molecule remains in a different color, or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# Selecting specific atoms
- vars:
    question: |
        Select all carbon atoms and color them cyan.
        Take a screenshot to validate whether the selection and coloring has been applied.
        Respond with <1> if all carbon atoms are colored cyan while other atoms have different colors, or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# END OF TASK 3: 1CRN - Region Selection
# Operations: Select and color specific residues, select and color specific atoms

# ============================================================
# TASK 4: 1CRN - Multi-Representation
# ============================================================

# Multiple representations
- vars:
    question: |
        Create two representations: show the backbone as Cartoon and all side chains as Licorice.
        Take a screenshot to validate whether both representations are visible.
        Respond with <1> if both representations are visible (Cartoon backbone + Licorice side chains), or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# Material properties - Opaque
- vars:
    question: |
        Change the material to Opaque (fully opaque, no transparency).
        Take a screenshot to validate whether the material has been changed.
        Respond with <1> if the molecule appears fully opaque with no transparency, or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# Changing representation radius
- vars:
    question: |
        Change the representation to Licorice and set the radius to 0.3.
        Take a screenshot to validate whether the radius has been changed.
        Respond with <1> if the Licorice representation shows bonds with a radius of 0.3, or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# END OF TASK 4: 1CRN - Multi-Representation
# Operations: Create multiple representations (cartoon + licorice), adjust material properties (opaque), adjust representation parameters (radius)

# ============================================================
# TASK 5: 1CRN - Advanced Coloring
# ============================================================

# Coloring by B-factor (temperature factor)
- vars:
    question: |
        Color the molecule by B-factor (temperature factor, showing flexibility/uncertainty).
        Take a screenshot to validate whether the coloring has been applied.
        Respond with <1> if the molecule is colored by B-factor showing a gradient of colors indicating different temperature factors, or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# Selecting water molecules
- vars:
    question: |
        Select all water molecules (residue name "HOH" or "WAT") and color them cyan.
        Take a screenshot to validate whether the water molecules have been selected and colored.
        Respond with <1> if all water molecules are colored cyan and visible in the viewport, or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# Coloring by charge
- vars:
    question: |
        Color the molecule by charge (positive charges one color, negative charges another, neutral a third color).
        Take a screenshot to validate whether the coloring has been applied.
        Respond with <1> if the molecule is colored by charge with distinct colors for positive, negative, and neutral regions, or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# Coloring by hydrophobicity
- vars:
    question: |
        Color the molecule by hydrophobicity (hydrophobic residues one color, hydrophilic another).
        Take a screenshot to validate whether the coloring has been applied.
        Respond with <1> if the molecule is colored by hydrophobicity with distinct colors for hydrophobic and hydrophilic regions, or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# END OF TASK 5: 1CRN - Advanced Coloring
# Operations: Color by B-factor, select and color water molecules, color by charge, color by hydrophobicity

# ============================================================
# TASK 6: 1CRN - Active Site Selection
# ============================================================

# Selecting and highlighting active site
- vars:
    question: |
        Select residues within 5 Angstroms of residue 25 and color them yellow. Color the rest of the molecule gray.
        Take a screenshot to validate whether the selection and coloring has been applied.
        Respond with <1> if residues within 5 Angstroms of residue 25 are colored yellow and the rest of the molecule is colored gray, or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# Selecting protein vs non-protein
- vars:
    question: |
        Color all protein atoms green and all non-protein atoms (water, ions, ligands) red.
        Take a screenshot to validate whether the coloring has been applied.
        Respond with <1> if protein atoms are colored green and non-protein atoms (water, ions, ligands) are colored red, or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# Changing background color
- vars:
    question: |
        Change the background color to white.
        Take a screenshot to validate whether the background color has been changed.
        Respond with <1> if the background of the viewport is white, or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# END OF TASK 6: 1CRN - Active Site Selection
# Operations: Distance-based selection (5Å around residue), distinguish protein vs non-protein components, adjust view settings (background color)

# ============================================================
# TASK 7: 1CRN - Spatial Queries
# ============================================================

# Selecting specific atom types in a range
- vars:
    question: |
        Select all oxygen atoms in residues 1 to 20 and color them red.
        Take a screenshot to validate whether the selection and coloring has been applied.
        Respond with <1> if all oxygen atoms in residues 1 to 20 are colored red, or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# Selecting atoms within distance
- vars:
    question: |
        Select all atoms within 3 Angstroms of any atom in residue 15 and color them magenta.
        Take a screenshot to validate whether the selection and coloring has been applied.
        Respond with <1> if all atoms within 3 Angstroms of residue 15 are colored magenta, or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# END OF TASK 7: 1CRN - Spatial Queries
# Operations: Select specific atom types in residue ranges, distance-based atom selection

# ============================================================
# TASK 8: 1CRN - Visibility Control
# ============================================================

# Selecting and hiding specific residues
- vars:
    question: |
        Select residues 20 to 30 and hide them (make them invisible).
        Take a screenshot to validate whether the residues have been hidden.
        Respond with <1> if residues 20 to 30 are not visible in the viewport while the rest of the molecule remains visible, or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# Selecting and showing only specific atoms
- vars:
    question: |
        Show only atoms with element type "N" (nitrogen) and hide all other atoms.
        Take a screenshot to validate whether only nitrogen atoms are visible.
        Respond with <1> if only nitrogen atoms are visible in the viewport and all other atoms are hidden, or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# Selecting and showing only backbone
- vars:
    question: |
        Show only the backbone atoms (N, CA, C, O) as Licorice representation.
        Take a screenshot to validate whether only backbone atoms are visible.
        Respond with <1> if only backbone atoms (N, CA, C, O) are visible in Licorice representation and side chains are hidden, or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# Selecting and showing only side chains
- vars:
    question: |
        Show only side chain atoms (excluding backbone atoms N, CA, C, O) as Van-der-Waals representation.
        Take a screenshot to validate whether only side chain atoms are visible.
        Respond with <1> if only side chain atoms are visible in Van-der-Waals representation and backbone atoms are hidden, or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# END OF TASK 8: 1CRN - Visibility Control
# Operations: Hide specific residues, show only specific element types, show only backbone, show only side chains

# ============================================================
# TASK 9: 1CRN - Residue Selection
# ============================================================

# Selecting aromatic residues
- vars:
    question: |
        Select all aromatic residues (PHE, TYR, TRP) and color them purple.
        Take a screenshot to validate whether the aromatic residues have been selected and colored.
        Respond with <1> if all aromatic residues (PHE, TYR, TRP) are colored purple, or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# Selecting charged residues
- vars:
    question: |
        Select all charged residues (ARG, LYS, ASP, GLU) and color them red for positive charges and blue for negative charges.
        Take a screenshot to validate whether the charged residues have been selected and colored correctly.
        Respond with <1> if charged residues are colored correctly (ARG/LYS red, ASP/GLU blue), or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# END OF TASK 9: 1CRN - Residue Selection
# Operations: Select aromatic residues, select charged residues with differential coloring

# ============================================================
# TASK 10: 1CRN - Combined Representations
# ============================================================

# Multiple selections with different representations
- vars:
    question: |
        Show the backbone as Cartoon colored by chain, and show all side chain atoms as Van-der-Waals colored by element.
        Take a screenshot to validate whether both representations are visible with their respective colorings.
        Respond with <1> if the backbone is shown as Cartoon colored by chain and side chain atoms are shown as Van-der-Waals colored by element, or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# Selecting and coloring by atom selection - backbone with sidechain by element
- vars:
    question: |
        Show backbone atoms (N, CA, C, O) as Licorice colored blue, and show side chain atoms as Van-der-Waals colored by element.
        Take a screenshot to validate whether both representations are visible with their respective colorings.
        Respond with <1> if backbone atoms are shown as Licorice colored blue and side chain atoms are shown as Van-der-Waals colored by element, or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# END OF TASK 10: 1CRN - Combined Representations
# Operations: Multiple representations with different color schemes (cartoon by chain + VdW by element), multiple representations with structural segmentation (backbone vs side chains)

# ============================================================
# TASK 11: 1CRN - Distance-based Selection
# ============================================================

# Selecting and coloring by distance from specific atom
- vars:
    question: |
        Select all atoms within 4 Angstroms of the CA atom of residue 10 and color them green. Color all other atoms gray.
        Take a screenshot to validate whether the selection and coloring has been applied.
        Respond with <1> if all atoms within 4 Angstroms of the CA atom of residue 10 are colored green and all other atoms are colored gray, or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# Coloring by atom selection with multiple criteria
- vars:
    question: |
        Select all atoms that are either oxygen or nitrogen atoms in residues 1 to 20, and color them red. Color all other atoms gray.
        Take a screenshot to validate whether the selection and coloring has been applied.
        Respond with <1> if all oxygen and nitrogen atoms in residues 1 to 20 are colored red and all other atoms are colored gray, or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# Selecting and coloring by atom property
- vars:
    question: |
        Select all atoms with element type "S" (sulfur) and color them yellow. Keep all other atoms in their default color.
        Take a screenshot to validate whether the selection and coloring has been applied.
        Respond with <1> if all sulfur atoms are colored yellow while other atoms remain in their default color, or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# END OF TASK 11: 1CRN - Distance-based Selection
# Operations: Distance from specific atom (CA of residue), combined criteria (element type AND residue range), element-specific coloring (sulfur atoms)

# ============================================================
# TASK 12: 1CRN - Gradient Coloring
# ============================================================

# Coloring by residue number
- vars:
    question: |
        Color the molecule by residue number (gradient from N-terminus to C-terminus).
        Take a screenshot to validate whether the coloring has been applied.
        Respond with <1> if the molecule is colored by residue number showing a gradient from the beginning to the end of the sequence, or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# Selecting and coloring by atom type in specific region
- vars:
    question: |
        Select all nitrogen atoms in residues 5 to 15 and color them blue. Color all other atoms gray.
        Take a screenshot to validate whether the selection and coloring has been applied.
        Respond with <1> if all nitrogen atoms in residues 5 to 15 are colored blue and all other atoms are colored gray, or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# Selecting and coloring by atom selection - element and residue combination
- vars:
    question: |
        Select all oxygen atoms in polar residues (SER, THR, ASN, GLN, TYR, CYS) and color them cyan. Color all other atoms gray.
        Take a screenshot to validate whether the selection and coloring has been applied.
        Respond with <1> if all oxygen atoms in polar residues are colored cyan and all other atoms are colored gray, or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# Selecting and coloring by atom selection - distance-based with element filter
- vars:
    question: |
        Select all oxygen atoms within 5 Angstroms of residue 15 and color them red. Color all other atoms gray.
        Take a screenshot to validate whether the selection and coloring has been applied.
        Respond with <1> if all oxygen atoms within 5 Angstroms of residue 15 are colored red and all other atoms are colored gray, or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# END OF TASK 12: 1CRN - Gradient Coloring
# Operations: Color by residue number (gradient), element selection in residue ranges, element + residue type combination (oxygen in polar residues), distance-based with element filter

# ============================================================
# TASK 13: 1CRN - Multi-Criteria Selection
# ============================================================

# Selecting and coloring by atom selection - backbone with sidechain by element
- vars:
    question: |
        Show the backbone as NewCartoon colored by chain. Show all side chain carbon atoms as Licorice colored gray, all side chain nitrogen atoms as Licorice colored blue, and all side chain oxygen atoms as Licorice colored red.
        Take a screenshot to validate whether the representations and colorings have been applied.
        Respond with <1> if the backbone is shown as NewCartoon colored by chain, side chain carbon atoms are Licorice gray, side chain nitrogen atoms are Licorice blue, and side chain oxygen atoms are Licorice red, or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# Selecting and coloring by atom selection - complex distance and element
- vars:
    question: |
        Select all carbon atoms within 4 Angstroms of any nitrogen atom in residues 1 to 15, and color them green. Color all other atoms gray.
        Take a screenshot to validate whether the selection and coloring has been applied.
        Respond with <1> if all carbon atoms within 4 Angstroms of any nitrogen atom in residues 1 to 15 are colored green and all other atoms are colored gray, or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# Selecting and coloring by atom selection - multiple criteria
- vars:
    question: |
        Select all atoms that are either (carbon atoms in residues 1 to 10) or (nitrogen atoms in residues 11 to 20), and color them yellow. Color all other atoms gray.
        Take a screenshot to validate whether the selection and coloring has been applied.
        Respond with <1> if all atoms matching the criteria are colored yellow and all other atoms are colored gray, or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# Selecting and coloring by atom selection - complex multi-criteria
- vars:
    question: |
        Select all atoms that are either (oxygen atoms in residues 1 to 10) or (nitrogen atoms within 3 Angstroms of residue 15), and color them magenta. Color all other atoms gray.
        Take a screenshot to validate whether the selection and coloring has been applied.
        Respond with <1> if all atoms matching the complex criteria are colored magenta and all other atoms are colored gray, or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# Selecting and showing only CA atoms
- vars:
    question: |
        Show only CA (alpha carbon) atoms as Van-der-Waals spheres colored by chain.
        Take a screenshot to validate whether only alpha carbons are visible.
        Respond with <1> if only alpha carbon atoms are visible as spheres colored by chain, or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# Selecting and showing only heteroatoms
- vars:
    question: |
        Show only heteroatoms (non-standard atoms like water, ions, ligands) as Van-der-Waals spheres colored by element.
        Take a screenshot to validate whether only heteroatoms are visible.
        Respond with <1> if only heteroatoms (non-standard atoms) are visible as spheres colored by element, or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# Selecting and coloring by atom selection - multiple element types
- vars:
    question: |
        Select all carbon, nitrogen, and oxygen atoms and color them by element (carbon gray, nitrogen blue, oxygen red). Hide all other atoms.
        Take a screenshot to validate whether the selection and coloring has been applied.
        Respond with <1> if only carbon (gray), nitrogen (blue), and oxygen (red) atoms are visible and all other atoms are hidden, or <0> if it failed. Only respond with <1> or <0>.
  assert:
    - type: contains-all
      value: "<1>"
    - type: not-contains
      value: "<0>"
  options:
    cache: false
    runSerially: true

# END OF TASK 13: 1CRN - Multi-Criteria Selection
# Operations: Multi-representation with element-specific coloring (backbone cartoon + side chain licorice by element), complex distance and element queries (carbon near nitrogen atoms), Boolean logic selection (OR criteria), complex multi-criteria with distance, CA-only visualization, heteroatom isolation, multiple element type filtering