Skip to content
Merged
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@ The second requirement is a protein sequence database. We suggest downloading a

Now, you can run the pipeline using:

<!-- TODO nf-core: update the following command to include all required parameters for a minimal example -->

```bash
nextflow run bigbio/quantms \
-profile <docker/singularity/.../institute> \
Expand Down
1 change: 0 additions & 1 deletion assets/methods_description_template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ description: "Suggested text and references to use when describing pipeline usag
section_name: "bigbio/quantms Methods Description"
section_href: "https://github.com/bigbio/quantms"
plot_type: "html"
## TODO nf-core: Update the HTML below to your preferred methods description, e.g. add publication citation for this pipeline
## You inject any metadata in the Nextflow '${workflow}' object
data: |
<h4>Methods</h4>
Expand Down
1 change: 0 additions & 1 deletion main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
*/

include { QUANTMS } from './workflows/quantms'
include { PIPELINE_INITIALISATION } from './subworkflows/local/utils_nfcore_quantms_pipeline'
include { PIPELINE_COMPLETION } from './subworkflows/local/utils_nfcore_quantms_pipeline'
include { UTILS_NEXTFLOW_PIPELINE } from './subworkflows/nf-core/utils_nextflow_pipeline'

Expand Down
4 changes: 1 addition & 3 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ profiles {
}
arm64 {
process.arch = 'arm64'
// TODO https://github.com/nf-core/modules/issues/6694
// see discussion: https://github.com/nf-core/modules/issues/6694
// For now if you're using arm64 you have to use wave for the sake of the maintainers
// wave profile
apptainer.ociAutoPull = true
Expand Down Expand Up @@ -398,7 +398,6 @@ includeConfig params.custom_config_base && (!System.getenv('NXF_OFFLINE') || !pa


// Load bigbio/quantms custom profiles from different institutions.
// TODO nf-core: Optionally, you can add a pipeline-specific nf-core config at https://github.com/nf-core/configs
// includeConfig params.custom_config_base && (!System.getenv('NXF_OFFLINE') || !params.custom_config_base.startsWith('http')) ? "${params.custom_config_base}/pipeline/quantms.config" : "/dev/null"

// Set default registry for Apptainer, Docker, Podman, Charliecloud and Singularity independent of -profile
Expand Down Expand Up @@ -455,7 +454,6 @@ manifest {
name = 'bigbio/quantms'
homePage = 'https://github.com/bigbio/quantms'
contributors = [
// TODO nf-core: Update the field with the details of the contributors to your pipeline. New with Nextflow version 24.10.0
[
name: 'Yasset Perez-Riverol',
affiliation: 'European Bioinformatics Institute (EMBL-EBI), Cambridge, UK',
Expand Down
2 changes: 1 addition & 1 deletion ro-crate-metadata.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion subworkflows/local/psm_fdr_control/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
//

include { FALSE_DISCOVERY_RATE as FDR_CONSENSUSID } from '../../../modules/local/openms/false_discovery_rate/main'
include { ID_FILTER as ID_FILTER } from '../../../modules/local/openms/id_filter/main'
include { ID_FILTER } from '../../../modules/local/openms/id_filter/main'

workflow PSM_FDR_CONTROL {

Expand Down
4 changes: 2 additions & 2 deletions subworkflows/local/psm_fdr_control/meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ keywords:
- rate
- proteomics
components:
- false_discovery_rate
- id_filter
- false/discovery/rate
Comment thread
ypriverol marked this conversation as resolved.
Resolved
- id/filter
input:
- ch_input:
type: file
Expand Down
107 changes: 0 additions & 107 deletions subworkflows/local/utils_nfcore_quantms_pipeline/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -8,124 +8,17 @@
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/

include { UTILS_NFSCHEMA_PLUGIN } from '../../nf-core/utils_nfschema_plugin'
include { paramsSummaryMap } from 'plugin/nf-schema'
include { samplesheetToList } from 'plugin/nf-schema'
include { paramsHelp } from 'plugin/nf-schema'
include { completionEmail } from '../../nf-core/utils_nfcore_pipeline'
include { completionSummary } from '../../nf-core/utils_nfcore_pipeline'
include { imNotification } from '../../nf-core/utils_nfcore_pipeline'
include { UTILS_NFCORE_PIPELINE } from '../../nf-core/utils_nfcore_pipeline'
include { UTILS_NEXTFLOW_PIPELINE } from '../../nf-core/utils_nextflow_pipeline'

/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SUBWORKFLOW TO INITIALISE PIPELINE
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*/

// ! This workflow is not used
workflow PIPELINE_INITIALISATION {

take:
version // boolean: Display version and exit
validate_params // boolean: Boolean whether to validate parameters against the schema at runtime
monochrome_logs // boolean: Do not use coloured log outputs
nextflow_cli_args // array: List of positional nextflow CLI args
outdir // string: The output directory where the results will be saved
input // string: Path to input samplesheet
help // boolean: Display help message and exit
help_full // boolean: Show the full help message
show_hidden // boolean: Show hidden parameters in the help message

main:

ch_versions = Channel.empty()

//
// Print version and exit if required and dump pipeline parameters to JSON file
//
UTILS_NEXTFLOW_PIPELINE (
version,
true,
outdir,
false // Conda is no longer supported
)

//
// Validate parameters and generate parameter summary to stdout
//
before_text = """
-\033[2m----------------------------------------------------\033[0m-
\033[0;32m,--.\033[0;30m/\033[0;32m,-.\033[0m
\033[0;34m ___ __ __ __ ___ \033[0;32m/,-._.--~\'\033[0m
\033[0;34m |\\ | |__ __ / ` / \\ |__) |__ \033[0;33m} {\033[0m
\033[0;34m | \\| | \\__, \\__/ | \\ |___ \033[0;32m\\`-._,-`-,\033[0m
\033[0;32m`._,._,\'\033[0m
\033[0;35m bigbio/quantms ${workflow.manifest.version}\033[0m
-\033[2m----------------------------------------------------\033[0m-
"""
after_text = """${workflow.manifest.doi ? "\n* The pipeline\n" : ""}${workflow.manifest.doi.tokenize(",").collect { " https://doi.org/${it.trim().replace('https://doi.org/','')}"}.join("\n")}${workflow.manifest.doi ? "\n" : ""}
* The nf-core framework
https://doi.org/10.1038/s41587-020-0439-x

* Software dependencies
https://github.com/bigbio/quantms/blob/master/CITATIONS.md
"""
command = "nextflow run ${workflow.manifest.name} -profile <docker/singularity/.../institute> --input samplesheet.csv --outdir <OUTDIR>"

UTILS_NFSCHEMA_PLUGIN (
workflow,
validate_params,
null,
help,
help_full,
show_hidden,
before_text,
after_text,
command
)

//
// Check config provided to the pipeline
//
UTILS_NFCORE_PIPELINE (
nextflow_cli_args
)

//
// Custom validation for pipeline parameters
//
validateInputParameters()

//
// Create channel from input file provided through params.input
//

Channel
.fromList(samplesheetToList(params.input, "${projectDir}/assets/schema_input.json"))
.map {
meta, fastq_1, fastq_2 ->
if (!fastq_2) {
return [ meta.id, meta + [ single_end:true ], [ fastq_1 ] ]
} else {
return [ meta.id, meta + [ single_end:false ], [ fastq_1, fastq_2 ] ]
}
}
.groupTuple()
.map { samplesheet ->
validateInputSamplesheet(samplesheet)
}
.map {
meta, fastqs ->
return [ meta, fastqs.flatten() ]
}
.set { ch_samplesheet }

emit:
samplesheet = ch_samplesheet
versions = ch_versions
}

/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down
32 changes: 32 additions & 0 deletions subworkflows/local/utils_nfcore_quantms_pipeline/meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/subworkflows/yaml-schema.json
name: "pipeline_completion"
description: Subworkflow for utils in the nf-core quantms pipeline
keywords:
- utils
- nf-core
- quantms
components:
- completionemail
- completionsummary
- imnotification
- utils_nextflow_pipeline
- utils_nfcore_pipeline
- utils_nfschema_plugin
input:
- ch_input:
type: file
description: |
Channel containing input files for FDR control
output:
- ch_fdr_results:
type: file
description: |
Channel containing FDR-controlled results
- versions:
type: file
description: |
Software versions used in this subworkflow
authors:
- "@bigbio"
maintainers:
- "@bigbio"