spatialvpt

Segmentation and QC workflow for MERSCOPE using vizgen-postprocessing tool

https://github.com/wehi-soda-hub/spatialvpt

Science Score: 65.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 10 DOI reference(s) in README
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
    Organization wehi-soda-hub has institutional domain (www.wehi.edu.au)
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (8.1%) to scientific vocabulary

Keywords

cell-segmentation merscope qc
Last synced: 6 months ago · JSON representation ·

Repository

Segmentation and QC workflow for MERSCOPE using vizgen-postprocessing tool

Basic Info
  • Host: GitHub
  • Owner: WEHI-SODA-Hub
  • License: mit
  • Language: Nextflow
  • Default Branch: main
  • Homepage:
  • Size: 1.01 MB
Statistics
  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 1
Topics
cell-segmentation merscope qc
Created over 1 year ago · Last pushed 6 months ago
Metadata Files
Readme Changelog Contributing License Citation

README.md

GitHub Actions CI Status GitHub Actions Linting StatusCite with Zenodo nf-test

Nextflow nf-core template version run with conda run with docker run with singularity Launch on Seqera Platform

Introduction

WEHI-SODA-Hub/spatialvpt is a bioinformatics pipeline that performs cell segmentation and creates a QC report for MERSCOPE data using the vizgen-postprocessing tool.

WEHI-SODA-Hub/spatialvpt workflow

The pipeline runs the following steps:

Usage

[!NOTE] If you are new to Nextflow and nf-core, please refer to this page on how to set-up Nextflow. Make sure to test your setup with -profile test before running the workflow on actual data.

First, prepare a parameters file with your input data that looks as follows:

params.yml:

yaml sample: "sample_name" outdir: "/path/to/results" algorithm_json: "/path/to/algorithm.json" images_dir: "/path/to/images" images_regex: "mosaic_(?P<stain>[\\w|-]+)_z(?P<z>[0-9]+).tif" um_to_mosaic_file: "/path/to/micron_to_mosaic_pixel_transform.csv" detected_transcripts: "/path/to/detected_transcripts.csv" update_vzg: true input_vzg: "/path/to/sample.vzg" tile_size: 4096 tile_overlap: 400

Note that the algorithm_json file is temperamental. Check the Vizgen documentation on the requirements.

To run cell segmentation via VPT, you can run the pipeline using:

bash nextflow run WEHI-SODA-Hub/spatialvpt \ -profile <docker/singularity/.../institute> \ -params-file params.yml \ --outdir <OUTDIR>

If you are running with Apptainer or Singularity, you will have to set the following environmental variable before running the pipeline:

Apptainer:

bash export NXF_APPTAINER_HOME_MOUNT=true nextflow run WEHI-SODA-Hub/spatialvpt \ -profile apptainer \ -params-file params.yml \ --outdir <OUTDIR>

Singularity:

bash export NXF_SINGULARITY_HOME_MOUNT=true nextflow run WEHI-SODA-Hub/spatialvpt \ -profile singularity \ -params-file params.yml \ --outdir <OUTDIR>

Custom weights

You can use a custom weights file by specifying the full path in your parameters file:

yaml custom_weights: "/path/to/custom_weights_file"

Now you need to add the file name only to your algorithm JSON file, e.g:

json "segmentation_properties": { "model": "cyto2", "model_dimensions": "2D", "custom_weights": "custom_weights_file", "channel_map": { "red": "Cellbound1", "green": "Cellbound3", "blue": "DAPI" } },

Report options

You can also set extra options for naming channels and filtering by volume and transcript thresholds when generating reports. See the VPT documentation for more details.

For example:

yaml red_stain_name: "Cellbound1" green_stain_name: "Cellbound2" blue_stain_name: "DAPI" transcript_count_threshold: 100 volume_filter_threshold: 200 z_index: 2

Report-only mode

If you would like to only generate a QC report, and you already have your metadata, cellbygene and boundary files, you can specify those files in parameters in your params file:

yaml report_only: true metadata: "/path/to/entity_metadata.csv" entity_by_gene: "/path/to/entity_by_gene.csv" boundaries: "/path/to/segmentation.parquet"

bash nextflow run WEHI-SODA-Hub/spatialvpt \ -profile <docker/singularity/.../institute> \ -params-file params.yml \ --outdir <OUTDIR>

[!WARNING] Please provide pipeline parameters via the CLI or Nextflow -params-file option. Custom config files including those provided by the -c Nextflow option can be used to provide any configuration except for parameters; see docs.

Credits

WEHI-SODA-Hub/spatialvpt was originally written by Marek Cmero.

We thank the following people for their extensive assistance in the development of this pipeline:

  • Raymond Yip
  • Pradeep Rajasekhar (@pr4deepr)
  • All members of the WEHI SODA Hub

Contributions and Support

If you would like to contribute to this pipeline, please see the contributing guidelines.

Citations

If you use WEHI-SODA-Hub/spatialvpt for your analysis, please cite it using the following doi: 10.5281/zenodo.16973286

This pipeline uses test MERSCOPE data from nf-core/test-datasets.

An extensive list of references for the tools used by the pipeline can be found in the CITATIONS.md file.

This pipeline uses code and infrastructure developed and maintained by the nf-core community, reused here under the MIT license.

The nf-core framework for community-curated bioinformatics pipelines.

Philip Ewels, Alexander Peltzer, Sven Fillinger, Harshil Patel, Johannes Alneberg, Andreas Wilm, Maxime Ulysse Garcia, Paolo Di Tommaso & Sven Nahnsen.

Nat Biotechnol. 2020 Feb 13. doi: 10.1038/s41587-020-0439-x.

Owner

  • Name: WEHI SODA Hub
  • Login: WEHI-SODA-Hub
  • Kind: organization
  • Location: Australia

Spatial Omics Data Analytics Hub based at The Walter and Eliza Hall Institute of Medical Research

Citation (CITATIONS.md)

# WEHI-SODA-Hub/spatialvpt: Citations

## [nf-core](https://pubmed.ncbi.nlm.nih.gov/32055031/)

> Ewels PA, Peltzer A, Fillinger S, Patel H, Alneberg J, Wilm A, Garcia MU, Di Tommaso P, Nahnsen S. The nf-core framework for community-curated bioinformatics pipelines. Nat Biotechnol. 2020 Mar;38(3):276-278. doi: 10.1038/s41587-020-0439-x. PubMed PMID: 32055031.

## [Nextflow](https://pubmed.ncbi.nlm.nih.gov/28398311/)

> Di Tommaso P, Chatzou M, Floden EW, Barja PP, Palumbo E, Notredame C. Nextflow enables reproducible computational workflows. Nat Biotechnol. 2017 Apr 11;35(4):316-319. doi: 10.1038/nbt.3820. PubMed PMID: 28398311.

## Pipeline tools

- [vizgen post-processing](https://github.com/Vizgen/vizgen-postprocessing)

  > Vizgen Post-processing Tool. Computer software. Vers. 1.3.0. Vizgen, Sep. 2024. Web.

## Software packaging/containerisation tools

- [Anaconda](https://anaconda.com)

  > Anaconda Software Distribution. Computer software. Vers. 2-2.4.0. Anaconda, Nov. 2016. Web.

- [Bioconda](https://pubmed.ncbi.nlm.nih.gov/29967506/)

  > Grüning B, Dale R, Sjödin A, Chapman BA, Rowe J, Tomkins-Tinch CH, Valieris R, Köster J; Bioconda Team. Bioconda: sustainable and comprehensive software distribution for the life sciences. Nat Methods. 2018 Jul;15(7):475-476. doi: 10.1038/s41592-018-0046-7. PubMed PMID: 29967506.

- [BioContainers](https://pubmed.ncbi.nlm.nih.gov/28379341/)

  > da Veiga Leprevost F, Grüning B, Aflitos SA, Röst HL, Uszkoreit J, Barsnes H, Vaudel M, Moreno P, Gatto L, Weber J, Bai M, Jimenez RC, Sachsenberg T, Pfeuffer J, Alvarez RV, Griss J, Nesvizhskii AI, Perez-Riverol Y. BioContainers: an open-source and community-driven framework for software standardization. Bioinformatics. 2017 Aug 15;33(16):2580-2582. doi: 10.1093/bioinformatics/btx192. PubMed PMID: 28379341; PubMed Central PMCID: PMC5870671.

- [Docker](https://dl.acm.org/doi/10.5555/2600239.2600241)

  > Merkel, D. (2014). Docker: lightweight linux containers for consistent development and deployment. Linux Journal, 2014(239), 2. doi: 10.5555/2600239.2600241.

- [Singularity](https://pubmed.ncbi.nlm.nih.gov/28494014/)

  > Kurtzer GM, Sochat V, Bauer MW. Singularity: Scientific containers for mobility of compute. PLoS One. 2017 May 11;12(5):e0177459. doi: 10.1371/journal.pone.0177459. eCollection 2017. PubMed PMID: 28494014; PubMed Central PMCID: PMC5426675.

GitHub Events

Total
  • Release event: 1
  • Delete event: 1
  • Push event: 43
  • Public event: 1
  • Create event: 1
Last Year
  • Release event: 1
  • Delete event: 1
  • Push event: 43
  • Public event: 1
  • Create event: 1

Dependencies

.github/workflows/branch.yml actions
  • mshick/add-pr-comment b8f338c590a895d50bcbfa6c5859251edc8952fc composite
.github/workflows/ci.yml actions
  • actions/checkout 0ad4b8fadaa221de15dcec353f45205ec38ea70b composite
  • docker/login-action v2 composite
  • jlumbroso/free-disk-space 54081f138730dfa15788a46383842cd2f914a1be composite
  • nf-core/setup-nextflow v2 composite
.github/workflows/clean-up.yml actions
  • actions/stale 28ca1036281a5e5922ead5184a1bbf96e5fc984e composite
.github/workflows/download_pipeline.yml actions
  • actions/setup-python 82c7e631bb3cdc910f68e0081d67478d79c6982d composite
  • eWaterCycle/setup-singularity 931d4e31109e875b13309ae1d07c70ca8fbc8537 composite
  • jlumbroso/free-disk-space 54081f138730dfa15788a46383842cd2f914a1be composite
  • nf-core/setup-nextflow v2 composite
.github/workflows/fix-linting.yml actions
  • actions/checkout 0ad4b8fadaa221de15dcec353f45205ec38ea70b composite
  • actions/setup-python 82c7e631bb3cdc910f68e0081d67478d79c6982d composite
  • peter-evans/create-or-update-comment 71345be0265236311c031f5c7866368bd1eff043 composite
.github/workflows/linting.yml actions
  • actions/checkout 0ad4b8fadaa221de15dcec353f45205ec38ea70b composite
  • actions/setup-python 82c7e631bb3cdc910f68e0081d67478d79c6982d composite
  • actions/upload-artifact 65462800fd760344b1a7b4382951275a0abb4808 composite
  • nf-core/setup-nextflow v2 composite
  • pietrobolcato/action-read-yaml 1.1.0 composite
.github/workflows/linting_comment.yml actions
  • dawidd6/action-download-artifact bf251b5aa9c2f7eeb574a96ee720e24f801b7c11 composite
  • marocchino/sticky-pull-request-comment 331f8f5b4215f0445d3c07b4967662a32a2d3e31 composite
.github/workflows/release-announcements.yml actions
  • actions/setup-python 82c7e631bb3cdc910f68e0081d67478d79c6982d composite
  • rzr/fediverse-action master composite
  • zentered/bluesky-post-action 80dbe0a7697de18c15ad22f4619919ceb5ccf597 composite
modules/nf-core/multiqc/meta.yml cpan
subworkflows/nf-core/utils_nextflow_pipeline/meta.yml cpan
subworkflows/nf-core/utils_nfcore_pipeline/meta.yml cpan
subworkflows/nf-core/utils_nfvalidation_plugin/meta.yml cpan
modules/local/combinechannels/environment.yml pypi
modules/nf-core/multiqc/environment.yml pypi