convert/from_xenium_to_spatialexperiment

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

Type

r_script

Contributors

Run this component

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.2.0 \  
  -main-script target/nextflow/convert/from_xenium_to_spatialexperiment/main.nf \  
  -params-file params.yaml  

Arguments

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

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.