|
418 | 418 | "type": "string" |
419 | 419 | }, |
420 | 420 | "table_backend": { |
421 | | - "default": "anndata", |
422 | | - "description": "Backend to use for storing the masking ROI table. Options are \"anndata\", \"json\",\n\"csv\", and \"parquet\".", |
| 421 | + "default": "csv", |
| 422 | + "description": "Backend to use for storing the masking ROI table. Options are \"anndata\", \"json\",\n\"csv\", and \"parquet\". Defaults to \"csv\".", |
423 | 423 | "enum": [ |
424 | 424 | "anndata", |
425 | 425 | "json", |
|
961 | 961 | "type": "boolean" |
962 | 962 | }, |
963 | 963 | "table_backend": { |
964 | | - "default": "anndata", |
965 | | - "description": "Table backend to use for the output table. Defaults to \"anndata\".", |
| 964 | + "default": "parquet", |
| 965 | + "description": "Table backend to use for the output table. Defaults to \"parquet\".", |
966 | 966 | "enum": [ |
967 | 967 | "anndata", |
968 | 968 | "json", |
|
1122 | 1122 | "level_path": null, |
1123 | 1123 | "use_scaling": true, |
1124 | 1124 | "use_cache": true, |
1125 | | - "table_backend": "anndata" |
| 1125 | + "table_backend": "parquet" |
1126 | 1126 | }, |
1127 | 1127 | "title": "Advanced Options", |
1128 | 1128 | "description": "Advanced options for feature measurement." |
|
1458 | 1458 | "type": "converter_non_parallel", |
1459 | 1459 | "executable_non_parallel": "import_ome_zarr.py", |
1460 | 1460 | "args_schema_non_parallel": { |
| 1461 | + "$defs": { |
| 1462 | + "AdvancedOptions": { |
| 1463 | + "description": "Advanced options for importing an OME-Zarr.", |
| 1464 | + "properties": { |
| 1465 | + "update_omero_metadata": { |
| 1466 | + "default": false, |
| 1467 | + "description": "Whether to update Omero-channels metadata with channel labels and\nwavelength ids to make them compatible with some downstream Fractal tasks.", |
| 1468 | + "title": "Update Omero Metadata", |
| 1469 | + "type": "boolean" |
| 1470 | + }, |
| 1471 | + "add_image_roi_table": { |
| 1472 | + "default": false, |
| 1473 | + "description": "Whether to add an `image_ROI_table` table to each image, with a single ROI\ncovering the whole image.", |
| 1474 | + "title": "Add Image Roi Table", |
| 1475 | + "type": "boolean" |
| 1476 | + }, |
| 1477 | + "grid_roi_table": { |
| 1478 | + "anyOf": [ |
| 1479 | + { |
| 1480 | + "$ref": "#/$defs/GridRoiTable" |
| 1481 | + }, |
| 1482 | + { |
| 1483 | + "type": "null" |
| 1484 | + } |
| 1485 | + ], |
| 1486 | + "default": null, |
| 1487 | + "description": "If set, add a `grid_ROI_table` table to each image, with the image split\ninto a rectangular grid of ROIs of the given shape. If `None`, no\n`grid_ROI_table` is created.", |
| 1488 | + "title": "Grid_Roi_Table" |
| 1489 | + }, |
| 1490 | + "table_backend": { |
| 1491 | + "default": "csv", |
| 1492 | + "description": "Table backend to use for the new ROI tables. Defaults to \"csv\".", |
| 1493 | + "enum": [ |
| 1494 | + "anndata", |
| 1495 | + "json", |
| 1496 | + "csv", |
| 1497 | + "parquet" |
| 1498 | + ], |
| 1499 | + "title": "Table Backend", |
| 1500 | + "type": "string" |
| 1501 | + }, |
| 1502 | + "overwrite": { |
| 1503 | + "default": false, |
| 1504 | + "description": "Whether new ROI tables (added when `add_image_roi_table=True` and/or\n`grid_roi_table` is not `None`) can overwrite existing ones.", |
| 1505 | + "title": "Overwrite", |
| 1506 | + "type": "boolean" |
| 1507 | + } |
| 1508 | + }, |
| 1509 | + "title": "AdvancedOptions", |
| 1510 | + "type": "object" |
| 1511 | + }, |
| 1512 | + "GridRoiTable": { |
| 1513 | + "description": "Configuration for building a `grid_ROI_table`.", |
| 1514 | + "properties": { |
| 1515 | + "grid_y_shape": { |
| 1516 | + "default": 2, |
| 1517 | + "description": "Number of ROIs along the Y axis. The image is split into a `grid_y_shape` by\n`grid_x_shape` grid of ROIs (e.g. the default 2 by 2 produces 4 ROIs).", |
| 1518 | + "title": "Grid Y Shape", |
| 1519 | + "type": "integer" |
| 1520 | + }, |
| 1521 | + "grid_x_shape": { |
| 1522 | + "default": 2, |
| 1523 | + "description": "Number of ROIs along the X axis. The image is split into a `grid_y_shape` by\n`grid_x_shape` grid of ROIs (e.g. the default 2 by 2 produces 4 ROIs).", |
| 1524 | + "title": "Grid X Shape", |
| 1525 | + "type": "integer" |
| 1526 | + } |
| 1527 | + }, |
| 1528 | + "title": "GridRoiTable", |
| 1529 | + "type": "object" |
| 1530 | + } |
| 1531 | + }, |
1461 | 1532 | "additionalProperties": false, |
1462 | 1533 | "properties": { |
1463 | 1534 | "zarr_dir": { |
|
1470 | 1541 | "type": "string", |
1471 | 1542 | "description": "The OME-Zarr name, without its parent folder. The parent folder is provided by zarr_dir; e.g. `zarr_name=\"array.zarr\"`, if the OME-Zarr path is in `/zarr_dir/array.zarr`." |
1472 | 1543 | }, |
1473 | | - "update_omero_metadata": { |
1474 | | - "default": true, |
1475 | | - "title": "Update Omero Metadata", |
1476 | | - "type": "boolean", |
1477 | | - "description": "Whether to update Omero-channels metadata, to make them Fractal-compatible." |
1478 | | - }, |
1479 | | - "add_image_roi_table": { |
1480 | | - "default": true, |
1481 | | - "title": "Add Image Roi Table", |
1482 | | - "type": "boolean", |
1483 | | - "description": "Whether to add a `image_ROI_table` table to each image, with a single ROI covering the whole image." |
1484 | | - }, |
1485 | | - "add_grid_roi_table": { |
1486 | | - "default": true, |
1487 | | - "title": "Add Grid Roi Table", |
1488 | | - "type": "boolean", |
1489 | | - "description": "Whether to add a `grid_ROI_table` table to each image, with the image split into a rectangular grid of ROIs." |
1490 | | - }, |
1491 | | - "grid_y_shape": { |
1492 | | - "default": 2, |
1493 | | - "title": "Grid Y Shape", |
1494 | | - "type": "integer", |
1495 | | - "description": "Number of ROIs along the Y axis of `grid_ROI_table`. The image is split into a `grid_y_shape` by `grid_x_shape` grid of ROIs (e.g. the default 2 by 2 produces 4 ROIs)." |
1496 | | - }, |
1497 | | - "grid_x_shape": { |
1498 | | - "default": 2, |
1499 | | - "title": "Grid X Shape", |
1500 | | - "type": "integer", |
1501 | | - "description": "Number of ROIs along the X axis of `grid_ROI_table`. The image is split into a `grid_y_shape` by `grid_x_shape` grid of ROIs (e.g. the default 2 by 2 produces 4 ROIs)." |
1502 | | - }, |
1503 | | - "table_backend": { |
1504 | | - "default": "anndata", |
1505 | | - "enum": [ |
1506 | | - "anndata", |
1507 | | - "json", |
1508 | | - "csv", |
1509 | | - "parquet" |
1510 | | - ], |
1511 | | - "title": "Table Backend", |
1512 | | - "type": "string", |
1513 | | - "description": "Backend to use for the new ROI tables. Defaults to \"anndata\"." |
1514 | | - }, |
1515 | | - "overwrite": { |
1516 | | - "default": false, |
1517 | | - "title": "Overwrite", |
1518 | | - "type": "boolean", |
1519 | | - "description": "Whether new ROI tables (added when `add_image_roi_table` and/or `add_grid_roi_table` are `True`) can overwrite existing ones." |
| 1544 | + "advanced_options": { |
| 1545 | + "$ref": "#/$defs/AdvancedOptions", |
| 1546 | + "default": { |
| 1547 | + "update_omero_metadata": false, |
| 1548 | + "add_image_roi_table": false, |
| 1549 | + "grid_roi_table": null, |
| 1550 | + "table_backend": "csv", |
| 1551 | + "overwrite": false |
| 1552 | + }, |
| 1553 | + "title": "Advanced Options", |
| 1554 | + "description": "Advanced options for importing an OME-Zarr, including whether to add `image_ROI_table`/`grid_ROI_table` tables, whether to update Omero-channels metadata, the table backend to use, and whether new tables can overwrite existing ones." |
1520 | 1555 | } |
1521 | 1556 | }, |
1522 | 1557 | "required": [ |
|
0 commit comments