Commit 318aa6d
Add Eric's get_samples_at_geo_cord_location_via_sample_event query to parquet_cesium tutorial
Implemented Eric Kansa's combined query function that unifies Path 1 and Path 2
with richer sample metadata. This complements the existing separate path queries
by providing a comprehensive view of all samples at a location.
New features:
- Added get_samples_at_geo_cord_location_via_sample_event() function
- Combines Path 1 (direct event location) and Path 2 (via site) using UNION
- Returns enriched metadata: sample_pid, sample_label, sample_description,
thumbnail_url, alternate_identifiers, event_label, site_label, site_pid
- Uses LEFT JOIN for sites in Path 1 (optional), INNER JOIN in Path 2 (required)
- Orders results by thumbnail availability for better visual browsing
- Added selectedSamplesCombined reactive cell with loading state management
- Added new display section "Combined Samples at Location" with documentation
- Added combinedLoading flag to track query state
Architecture:
- Preserves existing get_samples_1() and get_samples_2() functions unchanged
- Adds parallel implementation for comparison and exploration
- Maintains consistent pattern with existing loading indicators and error handling
This enables users to see both simple (Path 1/Path 2 separate) and comprehensive
(combined with rich metadata) views of samples at clicked locations.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent a9f4c43 commit 318aa6d
1 file changed
+94
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 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 | + | |
305 | 365 | | |
306 | 366 | | |
307 | 367 | | |
| |||
315 | 375 | | |
316 | 376 | | |
317 | 377 | | |
| 378 | + | |
318 | 379 | | |
319 | 380 | | |
320 | 381 | | |
| |||
344 | 405 | | |
345 | 406 | | |
346 | 407 | | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
347 | 417 | | |
348 | 418 | | |
349 | 419 | | |
| |||
553 | 623 | | |
554 | 624 | | |
555 | 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 | + | |
556 | 650 | | |
0 commit comments