# Job: Exposure Sets Tool

## Description

Split an exposure group into subsets or compare two groups.

## Inputs

* `exposures_A`: Exposures
  * With only this group $$A$$ specified, choose the `split` action to split the data into multiple batches
* `exposures_B`: Exposures (optional)
  * With both groups $$A$$ and $$B$$ , choose the `intersect` action to compute set operations on the two groups, including (i) intersection $$A ∩ B$$ and differences (ii) $$A - B$$ and (iii) $$B - A$$.

## **Common Parameters**

* `Action`
  * With *only one exposure input group*, choose **`split`** to split the data into multiple batches
  * With *both exposure input groups*, choose **`intersect`** to compute the set intersection and difference between the two groups
  * if `intersect` is selected, a new parameter is available: `Field to Intersect`
    * `uid`: use the `uid` field to intersect the two inputs
    * `path` : use a common path field to intersect the two inputs.&#x20;
      * Either `micrograph_blob` or `movie_blob` must be connected.
      * If the `micrograph_blob` slot is connected, intersection will be done using the micrograph path and index in the file.
      * If the `movie_blob` slot is connected, intersection will be done using the movie path.
* `Split num. batches`: With the `split` action, how many batches to split the exposures into
* `Split batch size`: With the `split` action, the number of items to place into each split batch that is output. Additional items will be output as a separate remainder output. If the value is `None`, the items will be split into equal sized batches.
* `Split randomize`: With the `split` action, randomize the exposures to add to each batch

## Outputs

* Split mode:
  * `split_X` (multiple outputs): With the `split` action, batches of the resulting exposures
  * `remainder`: With the `split` action, exposures left out of `split_X` batches due to the specified batch size and number of batches
* Intersect mode:
  * `intersect` and `intersect_B` outputs: With the `intersect` action, these contain the result of $$A ∩ B$$
    * For the `intersect` output, all of the result groups in common from set A and B (e.g. `movie_blob`) and passthrough groups will be copied *from set A*
    * For the `intersect_B` output, all of the result and passthrough groups will be copied *from set B*
  * `A_minus_B`: With the `intersect` action, set difference $$A - B$$
  * `B_minus_A`: With the `intersect` action, set difference$$B - A$$

![Example outputs when only one input exposure set is provided compared to two sets.](https://1916621962-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M7DGv3GkRvGGpbVPCgg%2Fuploads%2FawhtSripmlzkgeZgjxr4%2Fv4-5-0-exposure-sets-tool-output-examples-0.png?alt=media\&token=cf92bb95-b6dd-422c-b60c-eccc6cb390b4)

## Common Next Steps

* CTF Estimation
* Blob Picker
* Template Picker


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://guide.cryosparc.com/processing-data/all-job-types-in-cryosparc/utilities/job-exposure-sets-tool.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
