Skip to content

adding option to define first and last fovs for conversion #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion starfish/core/experiment/builder/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ def write_experiment_json(
fov_path_generator: Optional[Callable[[Path, str], Path]] = None,
tile_opener: Optional[Callable[[Path, Tile, str], BinaryIO]] = None,
writer_contract: Optional[WriterContract] = None,
fov_start: Optional[int] = 0,
) -> None:
"""
Build and returns a top-level experiment description with the following characteristics:
Expand All @@ -325,6 +326,8 @@ def write_experiment_json(
Directory to write the files to.
fov_count : int
Number of fields of view in this experiment.
fov_start : int
Starting field of view for conversion in this experiment.
tile_format : ImageFormat
File format to write the tiles as.
primary_image_dimensions : Mapping[Union[str, Axes], int]
Expand Down Expand Up @@ -396,7 +399,7 @@ def write_experiment_json(
)
image_tile_identifiers[image_type] = [
TileIdentifier(fov_id, selector[Axes.ROUND], selector[Axes.CH], selector[Axes.ZPLANE])
for fov_id in range(fov_count)
for fov_id in range(fov_start,fov_count)
for selector in ordered_iterator(axes_sizes)
]

Expand Down