Description
Converts the output from 10X Genomics Space Ranger for Visium HD into a
SpatialData object.
By default it reads the segmented cells (per-cell count matrix and cell
boundary polygons) that Space Ranger 4.x writes to segmented_outputs/. Set--mode bins to instead read a binned output (binned_outputs/square_<N>um/)
at the bin size given by --bin_size. In both cases the loaded table is
renamed to "table" so that downstream components stay technology-agnostic.
Type
python_script
Keywords
Contributors
Run the following command to execute this component with Nextflow:
cat > params.yaml <<'EOM'
output: "$id.$key.output.zarr"
mode: [ "segmented_cells" ]
bin_size: [ 8 ]
output_type: [ "filtered" ]
id: "run"
publish_dir: "output/"
EOM
nextflow run https://packages.viash-hub.com/vsh/openpipeline_spatial.git \
-revision v0.6.0 \
-main-script target/nextflow/convert/from_spaceranger_hd_to_spatialdata/main.nf \
-params-file params.yaml Name | Type & Properties |
|---|---|
--input -i | file required |
--output -o | file required output |
--mode | string |
--bin_size | integer |
--output_type | string |
--output_layer | string |
--dataset_id | string |