workflows/ingestion/spaceranger_hd_mapping

Description

Take raw Visium HD FASTQ files and produce a SpatialData object with the
segmented cells. Runs Space Ranger 4.1.0 to align reads and perform
nucleus/cell segmentation, then converts the segmented output to SpatialData.

Segmentation runs by default when an H&E microscope image (--image) is
provided. Provide --probe_set for probe-based Visium HD assays.

Type

nextflow_script

Contributors

Run this component

Run the following command to execute this component with Nextflow:

cat > params.yaml <<'EOM'  
id: "run"  
output_raw: "$id.$key.output_raw.output_dir"  
output_spatialdata: "$id.$key.output_spatialdata.zarr"  
mode: [ "segmented_cells" ]  
bin_size: [ 8 ]  
output_type: [ "filtered" ]  
reorient_images: [ true ]  
create_bam: [ false ]  
filter_probes: [ true ]  
publish_dir: "output/"  
EOM

nextflow run https://packages.viash-hub.com/vsh/openpipeline_spatial.git \  
  -revision v0.6.0 \  
  -main-script target/nextflow/workflows/ingestion/spaceranger_hd_mapping/main.nf \  
  -params-file params.yaml  

Inputs

Name
Type & Properties
--id
string
required
--input
file
required
multiple
--gex_reference
file
required
--probe_set
file
--cytaimage
file
required
--image
file

Outputs

Name
Type & Properties
--output_raw
file
required
output
--output_spatialdata
file
required
output
--mode
string
--bin_size
integer
--output_type
string
--output_layer
string
--dataset_id
string

Slide Information

Name
Type & Properties
--slide
string
--area
string
--unknown_slide
string
--slidefile
file
--override_id
boolean_true

Image Options

Name
Type & Properties
--darkimage
file
--colorizedimage
file
--dapi_index
integer
--image_scale
double
--reorient_images
boolean
--loupe_alignment
file

SpaceRanger arguments

Name
Type & Properties
--create_bam
boolean
--nosecondary
boolean_true
--r1_length
integer
--r2_length
integer
--filter_probes
boolean
--custom_bin_size
integer
--include_introns
boolean
--nucleus_segmentation
boolean
--cell_annotation_model
string
--tenx_cloud_token_path
file
--disable_cell_annotation
boolean_true

Segmentation Options

Name
Type & Properties
--custom_segmentation_file
file
--nucleus_expansion_distance_micron
double
--max_nucleus_diameter_px
integer
--umi_registration
boolean
--umi_to_image_offset
string

Collaborate Accelerate Succeed

Empower your organization with secure, scalable workflow solutions that simplify development, ensure compliance, and drive innovation.

Viash Hub is a platform developed by Data Intuitive, a Belgian-based bioinformatics company specializing in data workflow development and deployment.