haimiao commited on
Commit
78c3fbc
·
unverified ·
1 Parent(s): f121db2

Upload 7 files

Browse files

updated workflow evals for napari to contain llm-rubrics

.gitattributes CHANGED
@@ -11,4 +11,6 @@
11
  *.vtu filter=lfs diff=lfs merge=lfs -text
12
  *.vti filter=lfs diff=lfs merge=lfs -text
13
  *.cif filter=lfs diff=lfs merge=lfs -text
 
 
14
  *.nc filter=lfs diff=lfs merge=lfs -text
 
11
  *.vtu filter=lfs diff=lfs merge=lfs -text
12
  *.vti filter=lfs diff=lfs merge=lfs -text
13
  *.cif filter=lfs diff=lfs merge=lfs -text
14
+ eval_cases/napari/1_workflows/GT/dataset002_1.jpg filter=lfs diff=lfs merge=lfs -text
15
+ eval_cases/napari/1_workflows/GT/dataset002_2.jpg filter=lfs diff=lfs merge=lfs -text
16
  *.nc filter=lfs diff=lfs merge=lfs -text
eval_cases/napari/1_workflows/GT/dataset002_1.jpg ADDED

Git LFS Details

  • SHA256: 9582b55a4f1a4a954b87aed856544e92ecc0acec20c0430cc6148e789ac10983
  • Pointer size: 131 Bytes
  • Size of remote file: 433 kB
eval_cases/napari/1_workflows/GT/dataset002_2.jpg ADDED

Git LFS Details

  • SHA256: b8d3c74a8fb9b9b4bf8fe84fcc1080d627de95e57bcf3cab979d9649cedfc58c
  • Pointer size: 131 Bytes
  • Size of remote file: 417 kB
eval_cases/napari/1_workflows/GT/dataset003_1.png ADDED

Git LFS Details

  • SHA256: 82abb6b1e399b14a6d486eb1519b50947a89e9f86f816fd7b7e159a79ff2c0ea
  • Pointer size: 131 Bytes
  • Size of remote file: 918 kB
eval_cases/napari/1_workflows/eval_analysis_workflows.yaml CHANGED
@@ -1,101 +1,104 @@
1
- # Analysis Workflow Tests for napari-mcp
2
- # These tests evaluate complex analysis workflows that combine multiple napari functions
3
- # Each test focuses on performing specific analysis tasks
4
-
5
- # Test: Cell Counting and Measurement Analysis
6
- - vars:
7
- question: |
8
- Load the image "dataset_001/dataset_001.tiff" and set it to magenta colormap.
9
- Take a screenshot and analyze it to count how many complete cells are visible (not cut off by edges).
10
- Add point annotations to mark the center of each counted cell.
11
- Measure the distance between the two most distant cells.
12
- Respond with the number of complete cells you counted, for example "5" if you see 5 complete cells.
13
- assert:
14
- - type: llm-rubric
15
- value:
16
- - It counted 2 complete cells
17
- options:
18
- cache: false
19
- runSerially: true
20
-
21
- # Test: Statistical Analysis and Data Export
22
- - vars:
23
- question: |
24
- Get basic statistics (min, max, mean, std) for the loaded layer.
25
- Extract the raw layer data and examine its properties.
26
- Save the current layer to a file for further analysis.
27
- Export a screenshot of the current view for documentation.
28
- Respond with <1> if the statistical analysis and data export were successful, or <0> if it failed. Only respond with <1> or <0>.
29
- assert:
30
- - type: contains-all
31
- value: "<1>"
32
- - type: not-contains
33
- value: "<0>"
34
- options:
35
- cache: false
36
- runSerially: true
37
-
38
- # Test: Annotation and Measurement Workflow
39
- - vars:
40
- question: |
41
- Add point annotations to mark specific features of interest in the image.
42
- Add shape annotations (rectangles or circles) to highlight regions of interest.
43
- Measure distances between multiple pairs of points.
44
- Take a screenshot showing all annotations and measurements.
45
- Respond with <1> if the annotation and measurement workflow was successful, or <0> if it failed. Only respond with <1> or <0>.
46
- assert:
47
- - type: contains-all
48
- value: "<1>"
49
- - type: not-contains
50
- value: "<0>"
51
- options:
52
- cache: false
53
- runSerially: true
54
-
55
- # Test: Time Series Analysis (if applicable)
56
- - vars:
57
- question: |
58
- If the data has time dimensions, navigate through different time points.
59
- Compare cellular structures between different time points.
60
- Take screenshots at different time points to show temporal changes.
61
- If no time dimension exists, simulate time series analysis by adjusting the current view and taking multiple screenshots.
62
- Respond with <1> if the time series analysis was successful, or <0> if it failed. Only respond with <1> or <0>.
63
- assert:
64
- - type: contains-all
65
- value: "<1>"
66
- - type: not-contains
67
- value: "<0>"
68
- options:
69
- cache: false
70
- runSerially: true
71
-
72
- # Test: Data Cropping and Region of Interest Analysis
73
- - vars:
74
- question: |
75
- Define a region of interest by cropping the layer to a specific area.
76
- Analyze the cropped region separately from the full dataset.
77
- Compare statistics between the full dataset and the cropped region.
78
- Take screenshots of both the full view and the cropped region.
79
- Respond with <1> if the cropping and region analysis was successful, or <0> if it failed. Only respond with <1> or <0>.
80
- assert:
81
- - type: contains-all
82
- value: "<1>"
83
- - type: not-contains
84
- value: "<0>"
85
- options:
86
- cache: false
87
- runSerially: true
88
-
89
- # Test: Cleanup - Reset for next test run
90
- - vars:
91
- question: |
92
- Delete all loaded layers and remove any annotations to prepare for the next test run.
93
- Respond with <1> if all layers and annotations were successfully removed, or <0> if it failed. Only respond with <1> or <0>.
94
- assert:
95
- - type: contains-all
96
- value: "<1>"
97
- - type: not-contains
98
- value: "<0>"
99
- options:
100
- cache: false
101
- runSerially: true
 
 
 
 
1
+ # Analysis Workflow Tests for napari-mcp
2
+ # These tests evaluate complex analysis workflows that combine multiple napari functions
3
+ # Each test focuses on performing specific analysis tasks
4
+
5
+ # Test: Cell Counting and Measurement Analysis
6
+ - vars:
7
+ question: |
8
+ 1. Load the image "data/dataset_002/dataset_002.tif" and set it to red colormap for channel 0 and green colormap for channel 1.
9
+ 2. Take a screenshot and analyze it to count how many complete cells are visible (not cut off by edges).
10
+ 3. Add point annotations to mark the center of each counted cell.
11
+ 4. Measure the distance between the two most distant cells.
12
+ 5. Respond with the number of complete cells you counted, for example "5" if you see 5 complete cells.
13
+ assert:
14
+ - type: llm-rubric
15
+ value:
16
+ - It counted 2 complete cells
17
+ options:
18
+ cache: false
19
+ runSerially: true
20
+
21
+ # Test: Statistical Analysis and Data Export
22
+ - vars:
23
+ question: |
24
+ 1. Get basic statistics (min, max, mean, std) for the loaded layer.
25
+ 2. Extract the raw layer data and examine its properties.
26
+ 3. Save the current layer to a file for further analysis.
27
+ 4. Export a screenshot of the current view for documentation.
28
+ assert:
29
+ - type: llm-rubric
30
+ value:
31
+ - The statistical analysis was successfully performed and reported min, max, mean, and std values
32
+ - The layer data was extracted and its properties were examined
33
+ - The layer was saved to a file
34
+ - A screenshot was exported for documentation
35
+ options:
36
+ cache: false
37
+ runSerially: true
38
+
39
+ # Test: Annotation and Measurement Workflow
40
+ - vars:
41
+ question: |
42
+ 1. Add point annotations to mark specific features of interest in the image.
43
+ 2. Add shape annotations (rectangles or circles) to highlight regions of interest.
44
+ 3. Measure distances between multiple pairs of points.
45
+ 4. Take a screenshot showing all annotations and measurements.
46
+ assert:
47
+ - type: llm-rubric
48
+ value:
49
+ - Point annotations were successfully added to mark features of interest
50
+ - Shape annotations (rectangles or circles) were added to highlight regions
51
+ - Distance measurements were performed between points
52
+ - A screenshot was taken showing the annotations and measurements
53
+ options:
54
+ cache: false
55
+ runSerially: true
56
+
57
+ # Test: Time Series Analysis (if applicable)
58
+ - vars:
59
+ question: |
60
+ 1. If the data has time dimensions, navigate through different time points.
61
+ 2. Compare cellular structures between different time points.
62
+ 3. Take screenshots at different time points to show temporal changes.
63
+ 4. If no time dimension exists, simulate time series analysis by adjusting the current view and taking multiple screenshots.
64
+ assert:
65
+ - type: llm-rubric
66
+ value:
67
+ - Time series analysis was attempted, either by navigating time dimensions or simulating temporal changes
68
+ - Cellular structures were compared between different time points or views
69
+ - Multiple screenshots were taken to document temporal or view changes
70
+ options:
71
+ cache: false
72
+ runSerially: true
73
+
74
+ # Test: Data Cropping and Region of Interest Analysis
75
+ - vars:
76
+ question: |
77
+ 1. Define a region of interest by cropping the layer to a specific area.
78
+ 2. Analyze the cropped region separately from the full dataset.
79
+ 3. Compare statistics between the full dataset and the cropped region.
80
+ 4. Take screenshots of both the full view and the cropped region.
81
+ assert:
82
+ - type: llm-rubric
83
+ value:
84
+ - A region of interest was defined by cropping the layer to a specific area
85
+ - The cropped region was analyzed separately from the full dataset
86
+ - Statistics were compared between the full dataset and the cropped region
87
+ - Screenshots were taken of both the full view and the cropped region
88
+ options:
89
+ cache: false
90
+ runSerially: true
91
+
92
+ # Test: Cleanup - Reset for next test run
93
+ - vars:
94
+ question: |
95
+ 1. Delete all loaded layers and remove any annotations to prepare for the next test run.
96
+ assert:
97
+ - type: llm-rubric
98
+ value:
99
+ - All loaded layers were successfully deleted
100
+ - All annotations were removed
101
+ - The environment is clean and ready for the next test run
102
+ options:
103
+ cache: false
104
+ runSerially: true
eval_cases/napari/1_workflows/eval_figure_recreation.yaml CHANGED
@@ -1,24 +1,23 @@
1
- # Figure Recreation Tests for napari-mcp
2
- # These tests evaluate the agent's ability to recreate scientific figures from papers
3
- # Focus: Loading data, applying appropriate visualization settings, and matching target figures
4
-
5
- #Test: Recreate a figure from a dataset.
6
- - vars:
7
- question: |
8
- Load the dataset into napari: dataset_001/dataset_001.tiff
9
- Read the target figure: dataset_001/dataset_001.png but don't load it into napari.
10
- Read the dataset description: dataset_001/dataset_001.yaml.
11
- Set the same colormaps and blending modes as the target figure.
12
- Adjust contrast and gamma as needed to match the target figure.
13
- Take a screenshot of your recreation.
14
- If the recreation does not match the target figure, adjust the visualization settings and take a screenshot again.
15
- Stop when the recreation matches the target figure or you have tried five different visualization settings.
16
- Respond with <1> if you successfully recreated the figure and it closely matches the target, or <0> if it failed or doesn't match well. Only respond with <1> or <0>.
17
- assert:
18
- - type: contains-all
19
- value: "<1>"
20
- - type: not-contains
21
- value: "<0>"
22
- options:
23
- cache: false
24
- runSerially: true
 
1
+ # Figure Recreation Tests for napari-mcp
2
+ # These tests evaluate the agent's ability to recreate scientific figures from papers
3
+ # Focus: Loading data, applying appropriate visualization settings, and matching target figures
4
+
5
+ #Test: Recreate a figure from a dataset.
6
+ - vars:
7
+ question: |
8
+ 1. Load the dataset into napari: data/dataset_001/dataset_001.tiff
9
+ 2. Read the target figure: data/dataset_001/dataset_001.png but don't load it into napari.
10
+ 3. Read the dataset description: data/dataset_001/dataset_001.yaml.
11
+ 4. Set the same colormaps and blending modes as the target figure.
12
+ 5. Adjust contrast and gamma as needed to match the target figure.
13
+ 6. Take a screenshot of your recreation.
14
+ 7. If the recreation does not match the target figure, adjust the visualization settings and take a screenshot again.
15
+ 8. Stop when the recreation matches the target figure or you have tried five different visualization settings.
16
+ assert:
17
+ - type: llm-rubric
18
+ subtype: vision
19
+ value: |
20
+ 1. Does the rendering look similar to GT/dataset001.jpg?
21
+ options:
22
+ cache: false
23
+ runSerially: true
 
eval_cases/napari/1_workflows/eval_iso_surface_determination.yaml CHANGED
@@ -1,22 +1,25 @@
1
- # finding iso surface value for a dataset
2
- # These tests evaluate the agent's ability to recreate scientific figures from papers
3
-
4
- # Test: Iso surface determination for a target
5
- - vars:
6
- question: |
7
- Read the file "dataset_003/eval_iso_surface_determination_target_1.txt" to get the target iso-surface values for different tooth structures.
8
- Load dataset_003/dataset_003.tif into napari.
9
- Switch to 3D view mode and set the rendering to iso.
10
- Find the iso surface value that shows the target clearly.
11
- Rotate the camera to several angles and take a screenshot of the result each time to check if the target structure is clearly visible from different angles.
12
- If the target structure is not clearly visible, adjust the iso surface value and take a screenshot again.
13
- Stop when the target structure is clearly visible or you have tried five different iso surface values.
14
- Respond with <1> if you clearly see the target structure, or <0> if you cannot see the target structure. Only respond with <1> or <0>.
15
- assert:
16
- - type: contains-all
17
- value: "<1>"
18
- - type: not-contains
19
- value: "<0>"
20
- options:
21
- cache: false
 
 
 
22
  runSerially: true
 
1
+ # finding iso surface value for a dataset
2
+ # These tests evaluate the agent's ability to recreate scientific figures from papers
3
+
4
+ # Test: Iso surface determination for a target
5
+ - vars:
6
+ question: |
7
+ 1. Read the file "data/dataset_003/eval_iso_surface_determination_target_1.txt" to get the target iso-surface values for different tooth structures.
8
+ 2. Load data/dataset_003/dataset_003.tif into napari.
9
+ 3. Switch to 3D view mode and set the rendering to iso.
10
+ 4. Find the iso surface value that shows the target clearly.
11
+ 5. Rotate the camera to several angles and take a screenshot of the result each time to check if the target structure is clearly visible from different angles.
12
+ 6. If the target structure is not clearly visible, adjust the iso surface value and take a screenshot again.
13
+ 7. Stop when the target structure is clearly visible or you have tried five different iso surface values.
14
+ assert:
15
+ - type: llm-rubric
16
+ subtype: vision
17
+ value: |
18
+ 1. Does the visualization show the target structure clearly?
19
+ - type: llm-rubric
20
+ subtype: vision
21
+ value: |
22
+ 1. Does the rendering look similar to GT/dataset003_1.jpg?
23
+ options:
24
+ cache: false
25
  runSerially: true
eval_cases/napari/1_workflows/eval_visualization_workflows.yaml CHANGED
@@ -1,103 +1,78 @@
1
- # Basic Visualization Workflow Tests
2
- # Use https://www.ebi.ac.uk/bioimage-archive/galleries/S-BIAD7.html IM1 to test the workflows.
3
-
4
- # Test: Multi-channel Overlay with Colormaps with channels
5
- - vars:
6
- question: |
7
- Load the "dataset_001/dataset_001.tiff" dataset into napari.
8
- Depending on the number of channels, set the colormap for each channel to the corresponding color.
9
- Use additive blending for all channels to create an overlay visualization.
10
- Take a screenshot of the result.
11
- Respond with <1> if all channels are visible with their respective colors in the overlay, or <0> if it failed. Only respond with <1> or <0>.
12
- assert:
13
- - type: contains-all
14
- value: "<1>"
15
- - type: not-contains
16
- value: "<0>"
17
- options:
18
- cache: false
19
- runSerially: true
20
-
21
- # Test: Hide All Channels Except for the Channel with the Cells
22
- - vars:
23
- question: |
24
- Set all layers invisible except for the layer that contains the individual cells.
25
- Take a screenshots to check if only individual cell bodies are shown.
26
- Respond with <1> if only individual cell bodies are shown, or <0> if it failed. Only respond with <1> or <0>.
27
- assert:
28
- - type: contains-all
29
- value: "<1>"
30
- - type: not-contains
31
- value: "<0>"
32
- options:
33
- cache: false
34
- runSerially: true
35
-
36
- # Test: Contrast and Gamma Adjustment to Display Nucleus
37
- - vars:
38
- question: |
39
- Adjust the gamma value in channel 0 so that the bright cell organelles are only visible but the cell membrane is suppressed.
40
- Take screenshots to check if the contrast and gamma adjustments were successful.
41
- Respond with <1> if the contrast and gamma adjustments were successful, or <0> if it failed. Only respond with <1> or <0>.
42
- assert:
43
- - type: contains-all
44
- value: "<1>"
45
- - type: not-contains
46
- value: "<0>"
47
- options:
48
- cache: false
49
- runSerially: true
50
-
51
-
52
- # Test: Advanced 3D Camera Control and Navigation
53
- - vars:
54
- question: |
55
- Start with the default 3D view and take an initial screenshot.
56
- Rotate the camera to show the 3D data from a different perspective (side view).
57
- Take a screenshot to verify the 3D camera rotation.
58
- Zoom in on the 3D structures so they appear larger in the viewport.
59
- Take a screenshot to verify the 3D zoom.
60
- Pan the camera to move the 3D view to show a different region.
61
- Take a screenshot to verify the 3D pan.
62
- Reset the camera to the default 3D view.
63
- Take a final screenshot to verify the 3D reset.
64
- Respond with <1> if all 3D camera operations were successful, or <0> if any failed. Only respond with <1> or <0>.
65
- assert:
66
- - type: contains-all
67
- value: "<1>"
68
- - type: not-contains
69
- value: "<0>"
70
- options:
71
- cache: false
72
- runSerially: true
73
-
74
- # Test: Iso-surface Threshold Adjustment
75
- - vars:
76
- question: |
77
- Adjust the iso-surface threshold to different values to explore different surface levels.
78
- Start with a low threshold (e.g., 0.1) and take a screenshot.
79
- Increase the threshold to a medium value (e.g., 0.5) and take a screenshot.
80
- Increase the threshold to a high value (e.g., 0.9) and take a screenshot.
81
- Respond with <1> if you successfully adjusted iso-surface thresholds and could see different surface levels, or <0> if it failed. Only respond with <1> or <0>.
82
- assert:
83
- - type: contains-all
84
- value: "<1>"
85
- - type: not-contains
86
- value: "<0>"
87
- options:
88
- cache: false
89
- runSerially: true
90
-
91
- # Test: Cleanup - Reset for next test run
92
- - vars:
93
- question: |
94
- Delete all loaded layers and reset the view to 2D mode to prepare for the next test run.
95
- Respond with <1> if all layers were successfully deleted and the view was reset, or <0> if it failed. Only respond with <1> or <0>.
96
- assert:
97
- - type: contains-all
98
- value: "<1>"
99
- - type: not-contains
100
- value: "<0>"
101
- options:
102
- cache: false
103
- runSerially: true
 
1
+ # Basic Visualization Workflow Tests
2
+ # Use https://www.ebi.ac.uk/bioimage-archive/galleries/S-BIAD573.html IM1 to test the workflows.
3
+
4
+ # Test: Multi-channel Overlay with Colormaps with channels
5
+ - vars:
6
+ question: |
7
+ 1. Load the "data/dataset_001/dataset_002.tif" dataset into napari.
8
+ 2. Depending on the number of channels, set the colormap for the first channel 0 to red and channel 1 to green.
9
+ 3. Switch to the 3D view.
10
+ 4. Use additive blending for all channels to create an overlay visualization.
11
+ 5. Go the timestep 14.
12
+ Q1: Does the cell show protrusions? (Yes/No)
13
+ 6. Take a screenshot of the result.
14
+ assert:
15
+ - type: llm-rubric
16
+ subtype: vision
17
+ value: |
18
+ 1. Does the visualization show a green cell with red blobs on the inside?
19
+ - type: llm-rubric
20
+ subtype: vision
21
+ value: |
22
+ 1. Does the rendering look similar to GT/dataset002_1.jpg
23
+ - type: llm-rubric
24
+ subtype: text
25
+ value: |
26
+ 1. Q1 correct answer: Yes
27
+ options:
28
+ cache: false
29
+ runSerially: true
30
+
31
+ # Test: Hide All Channels Except for the Channel with the Cells
32
+ - vars:
33
+ question: |
34
+ 1. Set all layers invisible except for the layer that contains the individual cells.
35
+ 2. Take a screenshots of the result.
36
+ assert:
37
+ - type: llm-rubric
38
+ subtype: vision
39
+ value: |
40
+ 1. Are there only the green cells visible with no red blobs on the inside?
41
+ options:
42
+ cache: false
43
+ runSerially: true
44
+
45
+ # Test: Advanced 3D Camera Control and Navigation
46
+ - vars:
47
+ question: |
48
+ 1. Start in the 3D view
49
+ 2. Zoom into the cell with protrusions until the cell fills up the entire viewport.
50
+ 3. Rotate the camera to show the 3D data from a different perspective (side view).
51
+ 4. Take a screenshot.
52
+ assert:
53
+ - type: llm-rubric
54
+ subtype: vision
55
+ value: |
56
+ 1. Does the visualization show the green cell from the side?
57
+ - type: llm-rubric
58
+ subtype: vision
59
+ value: |
60
+ 1. Does the rendering look similar to GT/dataset002_2.jpg
61
+
62
+ options:
63
+ cache: false
64
+ runSerially: true
65
+
66
+ # Test: Cleanup - Reset for next test run
67
+ - vars:
68
+ question: |
69
+ Delete all loaded layers and reset the view to 2D mode to prepare for the next test run.
70
+ Respond with <1> if all layers were successfully deleted and the view was reset, or <0> if it failed. Only respond with <1> or <0>.
71
+ assert:
72
+ - type: contains-all
73
+ value: "<1>"
74
+ - type: not-contains
75
+ value: "<0>"
76
+ options:
77
+ cache: false
78
+ runSerially: true