Description
Creates a SpatialExperiment object from the downloaded unzipped Xenium Output Bundle directory
for 10x Genomics Xenium spatial gene expression data, and saves it as a SpatialExperiment object.
The constructor assumes the downloaded unzipped Xenium Output Bundle has the following structure:
Mandatory files
· | — cell_feature_matrix.h5
· | — cells.parquet
Optional files, by default added to the metadata() as a list of paths (will be converted to parquet):
· | — transcripts.parquet
· | — cell_boundaries.parquet
· | — nucleus_boundaries.parquet
· | — experiment.xenium
Run the following command to execute this component with Nextflow:
cat > params.yaml <<'EOM'
add_experiment_xenium: [ true ]
add_parquet_paths: [ true ]
alternative_experiment_features:
[
"NegControlProbe",
"UnassignedCodeword",
"NegControlCodeword",
"antisense",
"BLANK"
]
output: "$id.$key.output.rds"
id: "run"
publish_dir: "output/"
EOM
nextflow run https://packages.viash-hub.com/vsh/openpipeline_spatial.git \
-revision v0.3.0 \
-main-script target/nextflow/convert/from_xenium_to_spatialexperiment/main.nf \
-params-file params.yaml Name | Type & Properties |
|---|---|
--input -i | file required |
--add_experiment_xenium | boolean |
--add_parquet_paths | boolean |
--alternative_experiment_features | string multiple |
--output -o | file required output |