Skip to content

New pipeline: nf-core/labsherlock #191

Open

Description

@apeltzer

Pipeline title/name

labsherlock

Keywords

Sample swap & contamination assessment

What is it about?

A simple pipeline that allows for detction of sample swaps, mixtures/contamination and metagenomics contamination in human lab work, utilizing established methods to infer:

  • relatedness
  • contamination (both on a SNV level + metagenomics screening)
  • assess these
  • Sex check: Expected vs Found

Could be extende dby further tools, such as VerifyBAMiD2 etc pp --> not yet planned but fair enough

Please provide a schematic diagram of the proposed pipeline

contaminationqc_metro_map_light

What would a minimal first release of this pipeline include?

See metromap please :-)

I confirm my proposed pipeline will follow nf-core guidelines. Most importantly, my pipeline will:

  • be built with Nextflow.
  • pass nf-core lint tests and use standardized parameters.
  • be community-owned and developed within the nf-core organization.
  • open source under the MIT license with proper credits and acknowledgments.
  • have a descriptive, all lowercase, and without punctuation name.
  • use the nf-core pipeline template and predominantly use official nf-core modules.
  • focus on a specific data/analysis type with appropriate scope.
  • have properly maintained documentation.
  • be bundled using versioned Docker/Singularity containers.

This proposal may include software that has non-open source or restrictive licenses.

  • Yes

Why do we need a new pipeline?

I checked around but there is nothing comparable at stage available. We are open for suggestions to make t his a subworkflow that can also be imported in other pipelines, no problem at all.

draft for a usecase can be found at https://github.com/apeltzer/contaminator_estimation - no intent to keep this 1:1, but as a first rough draft this should work, can then bring this to latest standards with template etc.

Who would be interested?

Labs to perform QC of outputs

What has been done so far

https://github.com/apeltzer/contaminator_estimation

URL to existing work (if applicable)

https://github.com/apeltzer/contaminator_estimation

Are there any similar existing nf-core pipelines?

No response

Activity

  1. nvnieuwk commented on Nov 18, 2026

    @nvnieuwk

    This also seems closely related to this pipeline of ours: https://github.com/nf-cmgg/sampletracking

    I like the idea! And there's nothing similar AFAIK, could be part of another pipeline already though?

    /approve

  2. nvnieuwk commented on Nov 18, 2026

    @nvnieuwk

    The name is not that descriptive though IMO (especially since we've had a couple pipelines with sherlock in the name in the past couple of weeks)

  3. mahesh-panchal commented on Nov 18, 2026

    @mahesh-panchal
    Member

    Could this be part of seqinspector?

  4. apeltzer commented on Nov 18, 2026

    @apeltzer
    MemberAuthor

    Absolutely, although I would just insist on being able to turn on/off functionality to allow people to really just do the inspection part that needs care :-)

  5. mahesh-panchal commented on Nov 18, 2026

    @mahesh-panchal
    Member

    I think that was always the case. @FranBonath How does that part work at the moment?

  6. FranBonath commented on Nov 18, 2026

    @FranBonath
    Member

    Hi!
    I love it!
    Currently we have default tools that are fairly limited and everything else is chosen by the tools selection. Users can add or remove individual tools in the command line using --skip-tools or --tools, respectively, but we also have tool bundles that add a selection of tools with one command line parameter which is also compatible with the individual tools selection.
    These are our current tool bundles:

        illumina: checkqc, multiqcsav, rundirparser, fq_lint, fastqc, fastqscreen (requires Illumina runfolder with platform set to illumina)
        ont: fastqc, rundirparser, sequali, toulligqc (requires platform set to ont for samples with a runfolder)
        fastq: fq_lint, fastqc, fastqscreen, seqfu_stats
        bam: fastqc, sequali
        minimal: fastqc, fastqscreen
        default: fq_lint, fastqc, fastqscreen, rundirparser, seqfu_stats, sequali (requires platform in the samplesheet for samples with a runfolder)
        null: disables all bundles, use with --tools to select individual tools
    
    This parameter must be a combination of the following values: illumina, ont, fastq, bam, minimal, default, null
    

    I think this could very well be part of seqinspector, we could make it it's own tools bundle to have it readily available for anyone who wants to run it stand alone.

  7. SPPearce commented on Nov 18, 2026

    @SPPearce

    seqinspector was my initial thought here, but that works from fastq files, not from bam files

  8. FranBonath commented on Nov 18, 2026

    @FranBonath
    Member

    We recently introduced bam file support :)
    It might still be in dev though. @maxulysse ?

  9. apeltzer commented on Nov 18, 2026

    @apeltzer
    MemberAuthor

    I'd be ok adding this as a dedicated subworkflow for seqinspector. Also offers potential to use further tools in our daily work for inspection purposes, would be fine for me 👍🏻

    Didnt know its possible to run on BAMs in seqinspector similar to what @SPPearce said, so happy to see this is already possible on dev - lets make it possible on main then ;-)

  10. jfy133 commented on Nov 20, 2026

    @jfy133
    Member

    /approve as a concept - really needs to be more commonly executed - but merging with seqinspector would be ideal home!

  11. added
    acceptedApproved by core and maintainers team
    and removed
    proposedUnder active discussion
    on Nov 20, 2026
  12. SPPearce commented on Nov 20, 2026

    @SPPearce

    /approve as a concept - really needs to be more commonly executed - but merging with seqinspector would be ideal home!

    Yes, sample identity checking should be ran as a QC step in pretty much every human analysis. Samples should be checked that they match when expected and don't when not. And with multi-omics, you should check that your DNA/RNAseq/ChIPseq/ATACseq/whatever etc all match

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions