Skip to content

Commit

Permalink
Merge pull request #210 from marissaDubbelaar/dev
Browse files Browse the repository at this point in the history
Update nextflow_schema.json and fix mzTab output
  • Loading branch information
marissaDubbelaar committed May 6, 2022
2 parents 61907f4 + b62d6a1 commit e8da011
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 7 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# nf-core/mhcquant: Changelog

## v2.3.1 nfcore/mhcquant "White Gold Swallow" - 2022/MM/DD

### `Added`

- [#210](https://github.com/nf-core/mhcquant/pull/210) - Icons to the different parameters in the `nextflow_schema.json`

### `Fixed`

Resolved the problem that there was no output from `OPENMS_MZTABEXPORTER_QUANT`

### `Dependencies`

### `Deprecated`

## v2.3.0 nfcore/mhcquant "White Gold Swallow" - 2022/04/05

### `Added`
Expand Down
10 changes: 9 additions & 1 deletion conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,18 @@ process {
]
}

withName: 'OPENMS_DECOYDATABASE|OPENMS_THERMORAWFILEPARSER|OPENMS_PEAKPICKERHIRES|OPENMS_PEPTIDEINDEXER|OPENMS_FALSEDISCOVERYRATE|OPENMS_IDMERGER|OPENMS_MAPRTTRANSFORMER.*ML|OPENMS_FEATURE.*|OPENMS_IDCONFLICTRESOLVER|OPENMS_MZTABEXPORTER' {
withName: 'OPENMS_DECOYDATABASE|OPENMS_THERMORAWFILEPARSER|OPENMS_PEAKPICKERHIRES|OPENMS_PEPTIDEINDEXER|OPENMS_FALSEDISCOVERYRATE|OPENMS_IDMERGER|OPENMS_MAPRTTRANSFORMER.*ML|OPENMS_FEATURE.*|OPENMS_IDCONFLICTRESOLVER' {
publishDir = [ enabled: false ]
}

withName: 'OPENMS_MZTABEXPORTER_QUANT' {
publishDir = [
path: { "${params.outdir}/Intermediate_Results" },
mode: params.publish_dir_mode,
pattern: '*.mzTab'
]
}

withName: 'OPENMS_TEXTEXPORTER_UNQUANTIFIED|OPENMS_TEXTEXPORTER_QUANTIFIED' {
ext.args = [
"-id:add_metavalues 0"
Expand Down
2 changes: 1 addition & 1 deletion nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ manifest {
description = 'Identify and quantify peptides from mass spectrometry raw data'
mainScript = 'main.nf'
nextflowVersion = '!>=21.10.3'
version = '2.3.0'
version = '2.3.1dev'
}

// Function to ensure that resource requirements don't go beyond
Expand Down
54 changes: 53 additions & 1 deletion nextflow_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,22 +45,25 @@
"database_options": {
"title": "Database Options",
"type": "object",
"fa_icon": "fas fa-database",
"description": "",
"default": "",
"properties": {
"fasta": {
"type": "string",
"fa_icon": "fas fa-dna",
"fa_icon": "fas fa-file-code",
"pattern": ".fasta$",
"description": "Input FASTA protein database",
"help_text": "If you have no genome reference available, the pipeline can build one using a FASTA file. This requires additional time and resources, so it's better to use a pre-build index if possible."
},
"include_proteins_from_vcf": {
"type": "boolean",
"fa_icon": "fas fa-file-code",
"description": "Set depending on whether variants should be translated to proteins and included into your fasta for database search."
},
"skip_decoy_generation": {
"type": "boolean",
"fa_icon": "fas fa-fast-forward",
"description": "Add this parameter when you want to skip the generation of the decoy database, the consequence is that it prevents the generation of variants and FDR refinement",
"help_text": "If you want to use your own decoys, you can specify a dataset that includes decoy sequences. However, each database entry should keep the prefix 'DECOY_'.\nOne should consider though that this option will then prevent appending variants to the database and if not using reversed decoys the subset refinement FDR option will not work."
}
Expand All @@ -69,16 +72,19 @@
"preprocessing": {
"title": "Preprocessing",
"type": "object",
"fa_icon": "fas fa-microchip",
"description": "",
"default": "",
"properties": {
"pick_ms_levels": {
"type": "integer",
"fa_icon": "fas fa-layer-group",
"default": 2,
"description": "Specify the MS levels for which the peak picking is applied (unless you use `--run_centroidisation`)."
},
"run_centroidisation": {
"type": "boolean",
"fa_icon": "fas fa-border-center-v",
"default": false,
"description": "Choose whether the specified ms_level in pick_ms_levels is centroided or not."
}
Expand All @@ -87,118 +93,141 @@
"mass_spectrometry_data_processing": {
"title": "Mass Spectrometry Data Processing",
"type": "object",
"fa_icon": "fas fa-waveform-lines",
"description": "",
"default": "",
"properties": {
"peptide_min_length": {
"type": "integer",
"fa_icon": "fas fa-dash",
"default": 8,
"description": "Specify the minimum length of peptides to be considered after processing"
},
"peptide_max_length": {
"type": "integer",
"fa_icon": "fas fa-plus",
"default": 12,
"description": "Specify the maximum length of peptides to be considered after processing"
},
"fragment_mass_tolerance": {
"type": "number",
"default": 0.02,
"fa_icon": "fas fa-indent",
"description": "Specify the fragment mass tolerance to be used for the comet database search.",
"help_text": "For High-Resolution instruments a fragment mass tolerance value of 0.02 is recommended. (See the Comet parameter documentation: eg. 0.02)"
},
"precursor_mass_tolerance": {
"type": "integer",
"fa_icon": "fas fa-indent",
"default": 5,
"description": "Specify the precursor mass tolerance to be used for the comet database search.",
"help_text": " For High-Resolution instruments a precursor mass tolerance value of 5ppm is recommended. (eg. 5)"
},
"fragment_bin_offset": {
"type": "integer",
"fa_icon": "fas fa-indent",
"default": 0,
"description": "Specify the fragment bin offset to be used for the comet database search.",
"help_text": "For High-Resolution instruments a fragment bin offset of 0 is recommended. (See the Comet parameter documentation: eg. 0)"
},
"number_mods": {
"type": "integer",
"fa_icon": "fas fa-hashtag",
"default": 3,
"description": "Specify the maximum number of modifications that should be contained in a peptide sequence match."
},
"num_hits": {
"type": "integer",
"fa_icon": "fas fa-hashtag",
"default": 1,
"description": "Specify the number of hits that should be reported for each spectrum."
},
"digest_mass_range": {
"type": "string",
"fa_icon": "fas fa-chard-line",
"default": "800:2500",
"description": "Specify the mass range that peptides should fulfill to be considered for peptide spectrum matching."
},
"prec_charge": {
"type": "string",
"fa_icon": "fas fa-input-numeric",
"default": "2:3",
"description": "Specify the precursor charge range that peptides should fulfill to be considered for peptide spectrum matching."
},
"activation_method": {
"type": "string",
"fa_icon": "fas fa-file-code",
"default": "ALL",
"description": "Specify which fragmentation method was used in the MS acquisition",
"enum": ["ALL", "CID", "ECD", "ETD", "PQD", "HCD", "IRMPD"]
},
"enzyme": {
"type": "string",
"fa_icon": "fas fa-dna",
"default": "unspecific cleavage",
"description": "Specify which enzymatic restriction should be applied",
"hidden": true,
"help_text": " for HLA peptides rarely other enzymes are used, however most enzymes such as for example 'Trypsin' are available (see OpenMS enzymes)"
},
"max_rt_alignment_shift": {
"type": "integer",
"fa_icon": "fas fa-slider",
"default": 300,
"description": "Set a maximum retention time shift for the linear rt alignment"
},
"fixed_mods": {
"type": "string",
"fa_icon": "fas fa-cubes-stacked",
"description": "Specify which fixed modifications should be applied to the database search",
"help_text": "e.g. 'Carbamidomethyl (C)' (see OpenMS modifications; for a list of options, see parameter description on https://abibuilder.informatik.uni-tuebingen.de/archive/openms/Documentation/nightly/html/TOPP_CometAdapter.html)"
},
"variable_mods": {
"type": "string",
"fa_icon": "fas fa-cubes-stacked",
"default": "Oxidation (M)",
"description": "Specify which variable modifications should be applied to the database search",
"help_text": "e.g. 'Oxidation (M)' (see OpenMS modifications; for a list of options, see parameter description on https://abibuilder.informatik.uni-tuebingen.de/archive/openms/Documentation/nightly/html/TOPP_CometAdapter.html)"
},
"use_x_ions": {
"type": "boolean",
"fa_icon": "fas fa-file-code",
"description": "Include x ions into the peptide spectrum matching"
},
"use_z_ions": {
"type": "boolean",
"fa_icon": "fas fa-file-code",
"description": "Include z ions into the peptide spectrum matching"
},
"use_a_ions": {
"type": "boolean",
"fa_icon": "fas fa-file-code",
"description": "Include a ions into the peptide spectrum matching"
},
"use_c_ions": {
"type": "boolean",
"fa_icon": "fas fa-file-code",
"description": "Include c ions into the peptide spectrum matching"
},
"use_NL_ions": {
"type": "boolean",
"fa_icon": "fas fa-file-code",
"description": "Include NL ions into the peptide spectrum matching"
},
"remove_precursor_peak": {
"type": "boolean",
"fa_icon": "fas fa-file-code",
"description": "Include if you want to remove all peaks around precursor m/z",
"default": false
},
"spectrum_batch_size": {
"type": "integer",
"fa_icon": "fas fa-wave-sine",
"default": 500,
"description": "Size of Spectrum batch for Comet processing (Decrease/Increase depending on Memory Availability)"
},
"vcf_sheet": {
"type": "string",
"fa_icon": "fas fa-file-code",
"pattern": "^\\S+\\.tsv$",
"description": "Specify a .tsv file containing the information about genomic variants (vcf files < v.4.2) for each sample.",
"help_text": "| Sample | VCF_FileName |\n| -------------| :---------------------:|\n| MM15_Melanom | data/MM15_variants.vcf |\n| MM17_Melanom | data/MM17_variants.vcf |"
Expand All @@ -208,58 +237,69 @@
"fdr_scoring": {
"title": "FDR Scoring",
"type": "object",
"fa_icon": "fas fa-star-half-stroke",
"description": "",
"default": "",
"properties": {
"fdr_level": {
"type": "string",
"fa_icon": "fas fa-rectangle-code",
"default": "peptide_level_fdrs",
"description": "Specify the level at which the false discovery rate should be computed.",
"enum": ["peptide_level_fdrs", "psm-level-fdrs", "protein_level_fdrs"]
},
"fdr_threshold": {
"type": "number",
"fa_icon": "fas fa-less-than",
"default": 0.01,
"description": "Specify the false discovery rate threshold at which peptide hits should be selected."
},
"refine_fdr_on_predicted_subset": {
"type": "boolean",
"fa_icon": "fas fa-arrows-repeat",
"help_text": "SubsetFDR makes use of binding predictions applying the tool mhcflurry to subset all PSMs not passing the q-value threshold. If specified the FDR will be refined using Percolator on the subset of predicted binders among all PSMs resulting in an increased identification rate. (Please be aware that this option is only available for MHC class I data of alleles that are supported by mhcflurry)",
"description": "Set if MHCquant should be run in SubsetFDR mode"
},
"subset_affinity_threshold": {
"type": "integer",
"fa_icon": "fas fa-pen",
"default": 500,
"description": "Affinity threshold (nM) used to define binders for PSM subset selection in the FDR refinement procedure"
},
"description_correct_features": {
"type": "integer",
"fa_icon": "fas fa-pen",
"description": "Specify percolator descriptor feature set",
"help_text": "See percolator description (https://github.com/percolator/percolator/wiki/Retention-time-and-calibration)"
},
"klammer": {
"type": "boolean",
"fa_icon": "fas fa-microchip",
"description": "Use klammer retention time features for Percolator rescoring",
"help_text": "https://pubs.acs.org/doi/10.1021/ac070262k"
},
"subset_max_train": {
"type": "integer",
"fa_icon": "fas fa-train-track",
"description": "Maximum subset for percolator training iterations"
}
}
},
"quantification_options": {
"title": "Quantification Options",
"type": "object",
"fa_icon": "fas fa-tally",
"description": "",
"default": "",
"properties": {
"skip_quantification": {
"type": "boolean",
"fa_icon": "fas fa-fast-forward",
"description": "Skip quantification and only yield peptide identifications"
},
"quantification_fdr": {
"type": "string",
"fa_icon": "fas fa-less-than",
"description": "Compute FDR for the targeted approach",
"help_text": "(Weisser H. and Choudhary J.S. J Proteome Res. 2017 Aug 4)"
},
Expand All @@ -272,67 +312,79 @@
"mhc_affinity_prediction": {
"title": "MHC affinity prediction",
"type": "object",
"fa_icon": "fas fa-magnifying-glass",
"description": "",
"default": "",
"properties": {
"allele_sheet": {
"type": "string",
"fa_icon": "fas fa-file-code",
"pattern": "^\\S+\\.tsv$",
"description": "Specify a .tsv file containing the MHC alleles of your probes as well as their metadata such as SampleID.",
"help_text": "| Sample | HLA_Alleles_Class_1 | HLA_Alleles_Class_2 |\n| -------------| :----------------------------------------------:| ------------------------------------------:|\n| MM15_Melanom | A* 03:01;A* 68:01;B* 27:05;B* 35:03;C* 02:02;C* 04:01 |HLA-DRB1* 01:01;HLA-DQB1* 03:19;HLA-DQA1* 05:01|\n| MM17_Melanom | A* 02:01;B* 07:01;B* 26:01;C* 11:01;C* 01:01 |HLA-DRB1* 01:02;HLA-DRB3* 02:02;HLA-DRB4* 01:03|\n"
},
"predict_class_1": {
"type": "boolean",
"fa_icon": "fas fa-circle-1",
"description": "Set flag depending on whether MHC class 1 binding predictions using the tool mhcflurry should be run."
},
"predict_class_2": {
"type": "boolean",
"fa_icon": "fas fa-circle-2",
"description": "Set flag depending on whether MHC class 2 binding predictions using the tool mhcnuggets should be run."
}
}
},
"variant_options": {
"title": "Variant Options",
"type": "object",
"fa_icon": "fas fa-dna",
"description": "",
"default": "",
"properties": {
"variant_reference": {
"type": "string",
"fa_icon": "fas fa-file",
"description": "Specify genomic reference used for variant annotation",
"enum": ["GRCH37", "GRCH38"],
"default": "GRCH38"
},
"variant_annotation_style": {
"type": "string",
"fa_icon": "fas fa-file",
"description": "Specify style of tool used for variant annotation - currently supported",
"enum": ["SNPEFF", "VEP", "ANNOVAR"],
"default": "SNPEFF"
},
"variant_indel_filter": {
"type": "boolean",
"fa_icon": "fas fa-filter",
"description": "Set this option to not consider insertions and deletions for variant translation",
"default": false
},
"variant_frameshift_filter": {
"type": "boolean",
"fa_icon": "fas fa-filter",
"description": "Set this option to not consider frameshifts for variant translation",
"default": false
},
"variant_snp_filter": {
"type": "boolean",
"fa_icon": "fas fa-filter",
"description": "Set this option to not consider snps for variant translation"
}
}
},
"rt_prediction": {
"title": "RT Prediction",
"type": "object",
"fa_icon": "fas fa-timeline",
"description": "",
"default": "",
"properties": {
"predict_RT": {
"type": "boolean",
"fa_icon": "fas fa-wrench",
"description": "Set this option to predict retention times of all identified peptides and possible neoepitopes based on high scoring ids"
}
}
Expand Down

0 comments on commit e8da011

Please sign in to comment.