Irene Marin
03/16/2026, 10:41 AMThe specified spaceranger output directory for sample 'EX173983_R' does not contain all required files for either classic Visium: raw_feature_bc_matrix.h5, tissue_positions.csv, scalefactors_json.json, tissue_hires_image.png, tissue_lowres_image.png or Visium HD bin size 8: raw_feature_bc_matrix.h5, spatial/scalefactors_json.json, spatial/tissue_hires_image.png, spatial/tissue_lowres_image.png, spatial/tissue_positions.parquet.
ERROR ~ Pipeline failed. Please refer to troubleshooting docs: <https://nf-co.re/docs/usage/troubleshooting>
However if I include the necessary files, then the pipeline continues but soon stops with the error:
ERROR nextflow.processor.TaskProcessor - Error executing process > 'NFCORE_SPATIALVI:SPATIALVI:READ_DATA (1)'
Caused by:
Not a valid path value: '250724-LW/EX173983_bis/'
Container:
/beegfs/home/imaring/PROJECTS/PROMOTE_Spatial/work/singularity/community.wave.seqera.io-library-harmonypy_scanorama_gcc_gxx_pruned-95f731fde0b9ddef.img
I am not super expert in running nextflow pipelines and so I don't really know what to do to troubleshoot this.
Hope you can help! Thanks and have a good day!Erik Fasterius
03/16/2026, 10:43 AMIrene Marin
03/16/2026, 11:54 AM# Nextflow run script
module load Nextflow/25.04.6
nextflow run nf-core/spatialvi -r dev --input ./samplesheet.csv --outdir ./results -profile singularityErik Fasterius
03/16/2026, 1:09 PM250724-LW/EX173983_bis directory?Irene Marin
03/16/2026, 1:45 PMEX173983_bis/
└── binned_outputs
└── square_008um
├── filtered_feature_bc_matrix
│ ├── barcodes.tsv.gz
│ ├── features.tsv.gz
│ └── matrix.mtx.gz
├── filtered_feature_bc_matrix.h5
├── raw_feature_bc_matrix
│ ├── barcodes.tsv.gz
│ ├── features.tsv.gz
│ └── matrix.mtx.gz
├── raw_feature_bc_matrix.h5
└── spatial
├── aligned_fiducials.jpg
├── aligned_tissue_image.jpg
├── cytassist_image.tiff
├── detected_tissue_image.jpg
├── scalefactors_json.json
├── tissue_hires_image.png
├── tissue_lowres_image.png
└── tissue_positions.parquetErik Fasterius
03/16/2026, 1:54 PM--hd_bin_size 8 that's required for the pipeline to work with HD data - as you didn't specify that parameter, the pipeline thinks you're giving it non-HD data, and your directory structure doesn't follow that. Values of 2, 8 and 16 are allowed, but I see from your directory structure that you have 8mm bins.Erik Fasterius
03/16/2026, 1:54 PMIrene Marin
03/16/2026, 2:22 PM--hd_bin_size 8 and I have the same error...Erik Fasterius
03/16/2026, 2:28 PMINPUT_CHECK and it should auto-detect downstream input type as far as I can tell.Erik Fasterius
03/16/2026, 2:31 PMErik Fasterius
03/16/2026, 2:32 PM250724-LW/EX173983_bis directory in the project root? What's the project's overall directory structure like?Irene Marin
03/16/2026, 3:01 PMIrene Marin
03/16/2026, 3:03 PM├── 250724-LW
│ └── EX173983_bis
│ └── binned_outputs
├── Nextflow.sh
├── results
├── samplesheet.csv
├── scripts
└── workIrene Marin
03/16/2026, 3:03 PM#! bin/bash
# Nextflow run script
module load Nextflow/25.04.6
nextflow run nf-core/spatialvi -r dev --input ./samplesheet.csv --outdir ./results --hd_bin_size 8 -profile singularityErik Fasterius
03/16/2026, 3:07 PMIrene Marin
03/16/2026, 3:41 PMErik Fasterius
03/16/2026, 5:35 PMfeature_slice.h5 is being checked for, and since it's not present in your data directory you're getting this error. This file is, however, not listed as required for running the HD part of the pipeline, yet it tries to move it anyway (line 59-62 in read_data.py). Looks like a bug, what do you think @Christophe Avenel?Christophe Avenel
03/16/2026, 5:44 PMouts
├── barcode_mappings.parquet
├── binned_outputs
│ ├── square_002um
│ ├── square_008um
│ └── square_016um
├── cloupe_008um.cloupe
├── cloupe_cell.cloupe
├── feature_slice.h5
├── metrics_summary.csv
├── molecule_info.h5
├── probe_set.csv
├── segmented_outputs
├── spatial
│ ├── aligned_fiducials.jpg
│ ├── aligned_tissue_image.jpg
│ ├── cytassist_image.tiff
│ ├── detected_tissue_image.jpg
│ ├── tissue_hires_image.png
│ └── tissue_lowres_image.png
└── web_summary.html
As you can see, I have feature_slice.h5 , and spatial that are used by spatialdata_io.visium_hd(...) I believe.Erik Fasterius
03/16/2026, 5:45 PMfeature_slice.h5 is required to run the HD part of the pipeline, we should include it in the input checksChristophe Avenel
03/16/2026, 5:47 PMvisium_hd tomorrow!Erik Fasterius
03/16/2026, 5:50 PMIrene Marin
03/16/2026, 5:51 PMraw_feature_bc_matrix.h5, spatial/scalefactors_json.json, spatial/tissue_hires_image.png, spatial/tissue_lowres_image.png, spatial/tissue_positions.parquet.
I assumed the other files were not used.
I will copy all those files and try to run it againErik Fasterius
03/16/2026, 5:55 PMfeature_slice.h5 that'd be swellChristophe Avenel
03/16/2026, 5:56 PMIrene Marin
03/16/2026, 6:17 PM