Workflow: pipeline.cwl

Fetched 2024-05-19 12:46:50 GMT
children parents
Workflow as SVG
  • Selected
  • Default Values
  • Nested Workflows
  • Tools
  • Inputs/Outputs

Inputs

ID Type Title Doc
tiffs Directory (Optional)

The directory containing all .tiff files

exp_loc Directory (Optional)

Location of directory containing starfish experiment.json file. Only used when both skip_formatting and skip_processing are true.

rescale Boolean (Optional)

Whether to rescale images before running decoding.

skip_qc Boolean (Optional)

If true, QC will not be run.

aux_name String (Optional)

The name of the aux view to look at in the experiment file for image segmentation.

clip_max Float (Optional)

Pixels above this percentile are set to 1.

clip_min Float (Optional)

Pixels below this percentile are set to 0.

codebook https://w3id.org/cwl/view/git/2e31b8ddd4d509c7bbcb983ad41e401687623ddb/pipeline.cwl#codebook/json (Optional)
diameter Float (Optional)

Expected diameter of cells. Should be 0 if a custom model is used.

save_pdf Boolean (Optional)

If true, will save graphical output to a pdf.

skip_seg Boolean (Optional)

If true, segmentation (and QC) will be skipped.

use_mrna Boolean (Optional)

If true, mrna data will be used in cellpose calculations.

aux_views String[] (Optional)

The views to use for cellpose segmentation.

cycle_yml File (Optional)

PyYML-formatted dictionary outlining how the truerounds in imaging relate to the pseudorounds in the decoding codebook. The keys are truerounds and the values are the corresponding pseudorounds.

file_vars String[] (Optional)

Variables to get substituted into the file_format string.

fov_count Integer (Optional)

The number of FOVs that are included in this experiment

input_dir Directory (Optional)

Root directory containing space_tx formatted experiment. Only used if skip_formatting is true.

is_volume Boolean (Optional)

Whether to treat the zplanes as a 3D image.

locs_json File (Optional)

Flattened json input, refer to record entry.

low_sigma Integer (Optional)

Sigma value for low pass gaussian filter. Will not be run if not provided.

add_blanks Boolean (Optional)

If true, will add blanks with a hamming distance 1 from existing codes.

fov_offset Integer (Optional)

The index of the first FOV (for file names).

high_sigma Integer (Optional)

Sigma value for high pass gaussian filter. Will not be run if not provided.

run_baysor Boolean (Optional)

If true, the baysor step will be run.

anchor_view String (Optional)

The name of the auxillary view to be processed in parallel with primary view, such as for anchor round in ISS processing. Will not be included if not provided.

binary_mask https://w3id.org/cwl/view/git/2e31b8ddd4d509c7bbcb983ad41e401687623ddb/pipeline.cwl#binary_mask/basic_watershed (Optional)
channel_yml File (Optional)

PyYML-formatted list containing a dictionary outlining how the truechannels in imaging relate to the pseudochannels in the decoding codebook. The index of each dict within the list is the trueround % (count of pseudorounds). The keys of the dict are the channels within the image and the values are the pseudochannels in the converted notebook.

file_format String (Optional)

String with layout for .tiff files

find_ripley Boolean (Optional)

If true, will run ripley K estimates to find spatial density measures. Can be slow.

n_processes Integer (Optional)

If provided, the number of processes that will be spawned for processing. Otherwise, the maximum number of available CPUs will be used.

round_count Integer (Optional)

The number of imaging rounds in the experiment

use_ref_img Boolean (Optional)

Whether to generate a reference image and use it alongside spot detection.

aux_tilesets https://w3id.org/cwl/view/git/2e31b8ddd4d509c7bbcb983ad41e401687623ddb/pipeline.cwl#aux_tilesets/aux_tilesets (Optional)
codebook_csv File (Optional)

Flattened csv input, refer to record entry.

level_method String (Optional)

Levelling method for clip and scale application. Defaults to SCALE_BY_CHUNK.

round_offset Integer (Optional)

The index of the first round (for file names).

run_cellpose Boolean (Optional)

If true, cellpose will be run.

zplane_count Integer (Optional)

The number of z-planes in each image

border_buffer Integer (Optional)

If not None, removes cytoplasms whose nuclei lie within the given distance from the border.

channel_count Integer (Optional)

The number of total channels per imaging round

codebook_json File (Optional)

Flattened json input, refer to record entry.

data_org_file File (Optional)

The data org file used to describe .dax formatted images.

decoding_blob https://w3id.org/cwl/view/git/2e31b8ddd4d509c7bbcb983ad41e401687623ddb/pipeline.cwl#decoding_blob/dummy (Optional)
selected_fovs Integer[] (Optional)

If provided, steps after conversion will only be run on FOVs with these indices.

tophat_radius Integer (Optional)

Radius for white top hat filter. Should be slightly larger than the expected spot radius. Will not be run if not provided.

channel_offset Integer (Optional)

The index of the first channel (for file names).

decoding_pixel https://w3id.org/cwl/view/git/2e31b8ddd4d509c7bbcb983ad41e401687623ddb/pipeline.cwl#decoding_pixel/dummy (Optional)
flow_threshold Float (Optional)

threshold for filtering cell segmentations (increasing this will filter out lower confidence segmentations), range is 0 to infinity

label_exp_size Integer (Optional)

Pixel size labels are dilated by in final step. Helpful for closing small holes that are common from thresholding but can also cause cell boundaries to exceed their true boundaries if set too high. Label dilation respects label borders and does not mix labels.

mask_roi_files Directory (Optional)

Flattened directory input, refer to record entry \"binary_mask\"

parameter_json File (Optional)

json file containing parameters for the whole experiment. If variable is present here, it will supercede any passed in the yml.

rolling_radius Integer (Optional)

Radius for rolling ball background subtraction. Larger values lead to increased intensity evening effect. The value of 3 will work for most datasets. Will not be run if not provided.

scatter_into_n Integer (Optional)

If provided, the step to run decoding will be split into n batches, where each batch is (FOV count/n) FOVs big.

background_view String (Optional)

The name of the auxillary view to be used for background subtraction. Background will be estimated if not provided.

deconvolve_iter Integer (Optional)

Number of iterations to perform for deconvolution. High values remove more noise while lower values remove less. The value 15 will work for most datasets unless image is very noisy. Will not be run if not provided.

fov_positioning https://w3id.org/cwl/view/git/2e31b8ddd4d509c7bbcb983ad41e401687623ddb/pipeline.cwl#fov_positioning/fov_positioning (Optional)
match_histogram Boolean (Optional)

If true, histograms will be equalized.

skip_formatting Boolean (Optional)

If true, will skip first two stages and start at processing.

skip_processing Boolean (Optional)

If true, image processing step will be skipped.

cache_read_order String[] (Optional)

Order of non x,y dimensions within each image.

deconvolve_sigma Integer (Optional)

Sigma value for deconvolution. Should be approximately the expected spot size.

mask_roi_formats String (Optional)

Flattened record input, refer to record entry \"binary_mask\"

max_allowed_size Integer (Optional)

maximum size for a cell (in pixels)

min_allowed_size Integer (Optional)

minimum size for a cell (in pixels)

stitch_threshold Float (Optional)

threshold for stitching together segmentations that occur at the same xy location but in adjacent z slices, range is 0 to 1. This should only be used when the image is 3D.

register_aux_view String (Optional)

The name of the auxillary view to be used for image registration.

cellprob_threshold Float (Optional)

determines the extent of the segmentations (0 is the default more negative values result in larger cells, more positive values result in smaller cells), range is -6 to 6.

mask_labeled_files Directory (Optional)

Flattened file input, refer to record entry \"binary_mask\"

register_background Boolean (Optional)

If true, `background_view` will be aligned to `aux_name`.

register_to_primary Boolean (Optional)

If true, registration will be performed between the first round of register_aux_view and the primary view.

mask_labeled_formats String (Optional)

Flattened record input, refer to record entry \"binary_mask\"

not_filtered_results Boolean (Optional)

Pipeline will not remove genes that do not match a target and do not meet criteria.

pretrained_model_dir File (Optional)

Manually trained cellpose model to use.

pretrained_model_str String (Optional)

Cellpose-provided model to use.

Steps

ID Runs Label Doc
qc
steps/qc.cwl (Workflow)
sizer
steps/fileSizer.cwl (Workflow)
stage
steps/inputParser.cwl (ExpressionTool)
sorter
steps/sorter.cwl (Workflow)
cellpose
steps/cellpose.cwl (Workflow)
processing
read_schema
a10cda26387f898c5348f4dca1d8ea5b (CommandLineTool)
baysorStaged
segmentation
stagedSorted
starfishRunner
spaceTxConversion

Outputs

ID Type Label Doc
7_QC Directory
6_Baysor Directory
4_Decoded Directory
3_Processed Directory
5_Segmented Directory
1_Pseudosort Directory
2_tx_converted Directory
5A_cellpose_input Directory
5B_cellpose_output Directory
5C_cellpose_filtered Directory
Permalink: https://w3id.org/cwl/view/git/2e31b8ddd4d509c7bbcb983ad41e401687623ddb/pipeline.cwl