nf-core/spatialxe
Introduction
This document describes the output produced by the pipeline.
The directories listed below will be created in the results directory after the pipeline has finished. All paths are relative to the top-level results directory.
Pipeline overview
The pipeline is built using Nextflow and processes data using the following steps:
- Mode specific output:
- image mode
- cooridnate mode
- segfree mode
- qc mode (or using
--run_qc) - preview mode
- Additional functionality of spatialxe:
- SpatialData
- Xenium Ranger import segmentation
- MultiQC - Aggregate report describing results and QC from the whole pipeline
- Pipeline information - Report metrics generated during the workflow execution
Image mode
Output files
image/xeniumranger/resegment/${meta.id}/Directory containing the output xenium bundle of Xenium
baysor/preprocess/*.csvfiltered transcripts CSV (for Baysor 0.7.1 Parquet.jl compatibility)
run/*segmentation.csvresults of segmentation*.jsonfile with outlines of segmentationsegmentation_params.dump.tomlfile with full list of parameters used for the modelsegmentation_log.logoutput file with metadata of running the workflowsegmentation_counts.loomloom file with metadatasegmentation_cell_stats.csvstatistics of segmented cells
cellpose_cells/*masks.tiflabelled mask output from cellpose in tif format*flows.tifcell flow output from cellpose*seg.npynumpy array with cell segmentation data
stardist_nuclei/*.{tiff,tif}labelled mask output from stardist in tif format
resolift/*.tiffpath to save the upscaled TIFF file
Coordinate mode
Output files
coordinate/xenium_patch/patches/patch_grid.jsonpatch_grid.json metadata filepatches/patch_*/transcripts.parquetper-patch transcripts.parquet files (one per patch)output/xr-cell-polygons.geojsonstitched cell polygonsoutput/xr-transcript-metadata.csvtranscript metadata
proseg/preset/cell-polygons.geojson.gz2D polygons for each cell in GeoJSON format. These are flattened from 3Dexpected-counts.csv.gzcell-by-gene count matrixcell-metadata.csv.gzcell centroids, volume, and other informationtranscript-metadata.csv.gztranscript ids, genes, revised positions, assignment probabilitygene-metadata.csv.gzper-gene summary statisticsrates.csv.gzcell-by-gene Poisson rate parameterscell-polygons-layers.geojson.gza separate, non-overlapping cell polygon for each z-layer, preserving 3D segmentationcell-hulls.geojson.gzconvex hulls around assigned transcripts
proseg2baysor/xr-cell-polygons.geojson2D polygons for each cell in GeoJSON format. These are flattened from 3Dxr-transcript-metadata.csvtranscript ids, genes, revised positions, assignment probability
segger/create_dataset/${meta.id}/directory to save the processed Segger dataset (in PyTorch Geometric format)
train/${meta.id}/directory to save the trained model and checkpoints
predict/${meta.id}/directory to save the segmentation results, including cell boundaries and associations
baysor/run/*segmentation.csvresults of segmentation*.jsonfile with outlines of segmentationsegmentation_params.dump.tomlfile with full list of parameters used for the modelsegmentation_log.logoutput file with metadata of running the workflowsegmentation_counts.loomloom file with metadatasegmentation_cell_stats.csvstatistics of segmented cells
Segfree mode
Output files
segfree/baysor/preprocess/*.csvfiltered transcripts CSV (for Baysor 0.7.1 Parquet.jl compatibility)
segfree/ncvs.loomloom file with neighborhood resultsncvs_segfree_log.logLog file with summary statistics
ficture/preprocess/processed_transcripts.tsv.gztranscirpt file used for FICTUREcoordinate_minmax.tsvlisting the min and max of the coordinates used for FICTUREfeature.clean.tsv.gzanother file contains the (unique) names of genes that should be used for FICUTRE
${meta.id}/results/files containing the results of FICTURE
QC mode
Output files
opt/flip/*.fathe forward oriented fasta file
track/*.tsvTSV file containing the gene and transcript information to which each probe aligns
stat/*.tsvTSV file containing the summary stats
multiqc/multiqc_report.html: a standalone HTML file that can be viewed in your web browser.multiqc_data/: directory containing parsed statistics from the different tools used in the pipeline.multiqc_plots/: directory containing static images from the report in various formats.
Preview mode
Output files
preview/baysor/preview/preview.htmlsegmentation preview
Additional Functionality
SpatialData
The pipeline create spatialdata objects (data bundles) on various stages (see metromap in the README)
Output files
spatialdata/write/${meta.id}/spatialdata/spatialdata bundle of the raw datameta/${meta.id}/spatialdata_spatialxe_final/spatialdata bundle of the final data with metadatasdata['raw_table'].uns['spatialdata_attrs']provenance metadatasdata['raw_table'].uns['experiment_xenium']experimental metadatasdata['raw_table'].uns['gene_panel']gene panel metadata
Xenium Ranger Import Segmentation)
This step is needed to import segemntations from different methods into the xenium bundle and is called at different stages of the pipeline.
Output files
xeniumranger/import_segementation/${meta.id}/directory containing the output xenium bundle of Xenium
MultiQC
Output files
multiqc/multiqc_report.html: a standalone HTML file that can be viewed in your web browser.multiqc_data/: directory containing parsed statistics from the different tools used in the pipeline.multiqc_plots/: directory containing static images from the report in various formats.
MultiQC is a visualization tool that generates a single HTML report summarising all samples in your project. Most of the pipeline QC results are visualised in the report and further statistics are available in the report data directory.
The pipeline has special steps which also allow the software versions to be reported in the MultiQC output for future traceability. For more information about how to use MultiQC reports, see http://multiqc.info.
Pipeline information
Output files
pipeline_info/- Reports generated by Nextflow:
execution_report.html,execution_timeline.html,execution_trace.txtandpipeline_dag.dot/pipeline_dag.svg. - Reports generated by the pipeline:
pipeline_report.html,pipeline_report.txtandsoftware_versions.yml. Thepipeline_report*files will only be present if the--email/--email_on_failparameter’s are used when running the pipeline. - Reformatted samplesheet files used as input to the pipeline:
samplesheet.valid.csv. - Parameters used by the pipeline run:
params.json.
- Reports generated by Nextflow:
Nextflow provides excellent functionality for generating various reports relevant to the running and execution of the pipeline. This will allow you to troubleshoot errors with the running of the pipeline, and also provide you with other information such as launch commands, run times and resource usage.