convert/from_cells2stats_to_h5mu

Description

Convert spatial data resulting from Aviti Teton sequencers that have been processed by the Element Biosciences cells2stats workflow to H5MU format.

This component processes cells2stats count matrices to create a standardized H5MU file for downstream analysis.

The component reads:

  • Parquet file containing the count matrix and metadata

  • Panel.json with target and batch information

And outputs an H5MU file with:

  • Count data as the main .X matrix

  • Spatial coordinates in obsm

  • Cell Paint intensities in obsm (optional)

  • Nuclear count data as a layer (optional)

  • CellProfiler morphology metrics in obsm (optional)

  • Unassigned targets in obsm (optional)

Type

python_script

Contributors

Run this component

Run the following command to execute this component with Nextflow:

cat > params.yaml <<'EOM'  
output: "$id.$key.output.h5mu"  
modality: [ "rna" ]  
obsm_coordinates: [ "spatial" ]  
id: "run"  
publish_dir: "output/"  
EOM

nextflow run https://packages.viash-hub.com/vsh/openpipeline_spatial.git \  
  -revision v0.1.0 \  
  -main-script target/nextflow/convert/from_cells2stats_to_h5mu/main.nf \  
  -params-file params.yaml  

Inputs

Name
Type & Properties
--input
file
required

Outputs

Name
Type & Properties
--output
file
required
output
--output_compression
string

Options

Name
Type & Properties
--modality
string
--obsm_coordinates
string
--layer_nuclear_counts
string
--obsm_cell_paint
string
--obsm_cell_paint_nuclear
string
--obsm_cell_profiler
string
--obsm_unassigned_targets
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.