Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version fix #78

Merged
merged 57 commits into from
Mar 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
6f7d64a
Merge pull request #6 from bigbio/dev
daichengxin Feb 18, 2022
aef8d7e
fix lint
daichengxin Feb 18, 2022
3a9b5ee
rework inputs
Feb 18, 2022
986e88b
BIG restructure with lots of TODOs
Feb 18, 2022
f6c1704
more todos, more restructure
Feb 18, 2022
aba1849
add id subworkflow
Feb 18, 2022
843b42e
add module params
Feb 18, 2022
e22f6ba
revert include path
Feb 18, 2022
4a9c45e
Merge pull request #7 from jpfeuffer/rework_input
daichengxin Feb 19, 2022
3078bbe
remove functions.nf and restruct
daichengxin Feb 21, 2022
2e7c049
Update .nf-core.yml
daichengxin Feb 21, 2022
efa44e3
update code
daichengxin Feb 22, 2022
c9ac59c
Update modules.config
daichengxin Feb 22, 2022
ae32f64
remove selector
daichengxin Feb 22, 2022
37db5b2
update openms version
daichengxin Feb 28, 2022
d71180d
remove dependency on labelling type in config.
jpfeuffer Feb 28, 2022
f7cbcb7
remove unnecessary params from test
jpfeuffer Feb 28, 2022
b7223d2
[FIX] use labelling type parsed from file
jpfeuffer Mar 1, 2022
d80b137
forgot to uncomment
jpfeuffer Mar 1, 2022
48197c3
pass as param
jpfeuffer Mar 1, 2022
cd7f03a
too many workflow input params
jpfeuffer Mar 1, 2022
4a3bf7e
try to do the if
jpfeuffer Mar 1, 2022
3654a7e
try more
jpfeuffer Mar 1, 2022
9ab0d46
parentheses
jpfeuffer Mar 1, 2022
ffe9265
param name
jpfeuffer Mar 1, 2022
9a1d84b
try some stuff
jpfeuffer Mar 1, 2022
368b994
try more
jpfeuffer Mar 1, 2022
b55d228
wth
jpfeuffer Mar 1, 2022
3c59e54
wth2
jpfeuffer Mar 1, 2022
63da1f1
fffffff
jpfeuffer Mar 1, 2022
71a5d13
ogiu8olt78kot78k
jpfeuffer Mar 1, 2022
1d8dc4d
dfsafasfas
jpfeuffer Mar 1, 2022
f9f4d55
??????
jpfeuffer Mar 1, 2022
9884aa5
??????
jpfeuffer Mar 1, 2022
728dee4
WATAWTAW J
jpfeuffer Mar 1, 2022
7922b8e
.
jpfeuffer Mar 1, 2022
e8d1128
into
jpfeuffer Mar 1, 2022
cd59dab
no copy
jpfeuffer Mar 1, 2022
451e92e
ch name
jpfeuffer Mar 1, 2022
1cc41b3
debug?
jpfeuffer Mar 1, 2022
6995443
wrapper
jpfeuffer Mar 1, 2022
6721446
forgot
jpfeuffer Mar 1, 2022
65759ce
refactor
jpfeuffer Mar 1, 2022
8ee93e8
init
jpfeuffer Mar 1, 2022
8d89e48
emptyness
jpfeuffer Mar 1, 2022
a3ff400
Equals
jpfeuffer Mar 1, 2022
8dca5b9
Debug
jpfeuffer Mar 1, 2022
0bbcf96
Debug
jpfeuffer Mar 1, 2022
6791d4f
No def?
jpfeuffer Mar 1, 2022
ee87a56
Init
jpfeuffer Mar 1, 2022
16319b3
Branch?
jpfeuffer Mar 1, 2022
290a651
Result
jpfeuffer Mar 1, 2022
b67a1d7
Spelling
jpfeuffer Mar 1, 2022
410d78e
Add param to msstatsconv
jpfeuffer Mar 2, 2022
4edfa20
Msstatsconv
jpfeuffer Mar 2, 2022
71bf6bb
update pmultiqc
daichengxin Mar 4, 2022
3c0991d
fixed indentation
daichengxin Mar 4, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .nf-core.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
lint:
files_unchanged:
- bin/scrape_software_versions.py
- .github/workflows/linting.yml
- lib/NfcoreTemplate.groovy
files_exist:
- conf/igenomes.config
Binary file modified assets/nf-core-quantms_logo_light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
263 changes: 169 additions & 94 deletions conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -10,112 +10,188 @@
----------------------------------------------------------------------------------------
*/

params {
modules {
'sdrfparsing' {
args = 'convert-openms -t2 -l'
}
'decoydatabase' {
args = ''
publish_files = ['log': 'logs']
}
'multiqc' {
args = ''
}
'thermorawfileparser' {
args = ''
}
'mzmlindexing' {
args = ''
publish_files = ['log': '']
}
'openmspeakpicker' {
args = ''
publish_files = ['log': '']
}
'isobaricanalyzer' {
args = ''
publish_files = ['log': '']
}
'searchenginemsgf' {
args = ''
}
'searchenginecomet' {
args = ''
}
'indexpeptides' {
args = ''
publish_files = ['log': '']
}
'extractpsmfeature' {
args = ''
publish_files = ['log': '']
}
'percolator' {
args = ''
}
'falsediscoveryrate' {
args = ''
}
'idpep' {
args = ''
}
'idscoreswitcher' {
args = '-new_score_orientation lower_better'
}
'consensusid' {
args = ''
}
'idfilter' {
args = ''
suffix = '.idXML'
}
'luciphoradapter' {
args = ''
publish_files = ['log': '']
}
'idmapper' {
args = ''
publish_files = ['log': '','consensusXML':'']
}
'filemerge' {
args = ''
process {

publishDir = [
path: { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]

// Local Subworkflows
// INPUT_CHECK
withName: 'NFCORE_QUANTMS:QUANTMS:INPUT_CHECK:SAMPLESHEET_CHECK' {
publishDir = [
path: { "${params.outdir}/pipeline_info" },
mode: 'copy',
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}

}

// OPENMSPEAKPICKER
if (params.openms_peakpicking){
process {
withName: 'NFCORE_QUANTMS:QUANTMS:.*:OPENMSPEAKPICKER' {
publishDir = [
path: { "${params.outdir}/openmspeakpicker" },
mode: params.publish_dir_mode,
pattern: '*.log',
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}
'epifany' {
args = ''
publish_files = ['log': '']
}
}

// DECOYDATABASE
if (params.add_decoys) {
process {
withName: 'NFCORE_QUANTMS:QUANTMS:.*:DECOYDATABASE' {
publishDir = [
path: { "${params.outdir}/decoydatabase" },
mode: params.publish_dir_mode,
pattern: '*.log',
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}
'proteininference' {
args = ''
publish_files = ['log': '']
}
}

if (params.posterior_probabilities == "percolator") {
process {
// EXTRACTPSMFEATURE
withName: 'NFCORE_QUANTMS:QUANTMS:.*:EXTRACTPSMFEATURE' {
publishDir = [
path: { "${params.outdir}/extractpsmfeature" },
mode: params.publish_dir_mode,
pattern: '*.log',
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}
'idconflictresolver' {
args = ''
}
}

if (params.search_engines.split(",").size() == 1) {
process {

// IDSCORESWITCHER
withName: 'NFCORE_QUANTMS:QUANTMS:.*:ID:PSMFDRCONTROL:IDSCORESWITCHER' {
ext.args = [
"-new_score_orientation lower_better",
"-old_score \"Posterior Error Probability\"",
"-new_score_type q-value"
].join(' ').trim()
publishDir = [
path: { "${params.outdir}/idscoreswitcher" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}
'proteinquantifier' {
args = ''
}
}

if (params.enable_mod_localization) {
process {

// IDSCORESWITCHERFORLUCIPHOR
withName: 'NFCORE_QUANTMS:QUANTMS:.*:ID:PHOSPHOSCORING:IDSCORESWITCHERFORLUCIPHOR' {
ext.args = [
"-new_score_orientation lower_better",
"-old_score \"q-value\"",
"-new_score_type Posterior Error Probability"
].join(' ').trim()
publishDir = [
path: { "${params.outdir}/idscoreswitcherforluciphor" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}
'msstatsconverter' {
args = ''
}
}

process {
// ISOBARICANALYZER
withName: 'NFCORE_QUANTMS:QUANTMS:TMT:.*:ISOBARICANALYZER' {
publishDir = [
path: { "${params.outdir}/isobaricanalyzer" },
mode: params.publish_dir_mode,
pattern: '*.log',
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}

// IDMAPPER
withName: 'NFCORE_QUANTMS:QUANTMS:TMT:.*:IDMAPPER' {
publishDir = [
path: { "${params.outdir}/idmapper" },
mode: params.publish_dir_mode,
pattern: '*.{log,consensusXML}',
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}

// EPIFILTER
withName: 'NFCORE_QUANTMS:QUANTMS:TMT:.*:EPIFILTER' {
ext.args = [
"-score:prot \"$params.protein_level_fdr_cutoff\"",
"-delete_unreferenced_peptide_hits",
"-remove_decoys"
].join(' ').trim()
ext.suffix = '.consensusXML'
publishDir = [
path: { "${params.outdir}/epifilter" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}
}

if (params.protein_inference_bayesian) {
process {
// EPIFANY
withName: 'NFCORE_QUANTMS:QUANTMS:.*:EPIFANY' {
publishDir = [
path: { "${params.outdir}/epifany" },
mode: params.publish_dir_mode,
pattern: '*.log',
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}
'pmultiqc' {
args = ''
}
} else {
process {
// PROTEININFERENCER
withName: 'NFCORE_QUANTMS:QUANTMS:.*:PROTEININFERENCER' {
publishDir = [
path: { "${params.outdir}/proteininferencer" },
mode: params.publish_dir_mode,
pattern: '*.log',
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}
}
}

process {

publishDir = [
path: { "${params.outdir}/${task.process.tokenize(':')[-1].tokenize('_')[0].toLowerCase()}" },
mode: 'copy',
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
// INDEXPEPTIDES
withName: 'NFCORE_QUANTMS:QUANTMS:.*:INDEXPEPTIDES' {
publishDir = [
path: { "${params.outdir}/indexpeptides" },
mode: params.publish_dir_mode,
pattern: '*.log',
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}

withName: SAMPLESHEET_CHECK {
publishDir = [
path: { "${params.outdir}/pipeline_info" },
mode: 'copy',
// IDFILTER
withName: 'NFCORE_QUANTMS:QUANTMS:.*:ID:PSMFDRCONTROL:IDFILTER' {
ext.args = "-score:pep \"$params.psm_pep_fdr_cutoff\""
ext.suffix = '.idXML'
publishDir = [
path: { "${params.outdir}/idfilter" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}
Expand All @@ -127,5 +203,4 @@ process {
pattern: '*_versions.yml'
]
}

}
6 changes: 1 addition & 5 deletions conf/test.config
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,12 @@ params {
// Input data
input = 'https://raw.githubusercontent.com/daichengxin/quantms/dev/assets/PXD000001.sdrf.tsv'

quant_method = 'ISO'
database = 'https://raw.githubusercontent.com/daichengxin/proteomicstmt/dev/tmt_testdata/erwinia_carotovora.fasta'
posterior_probabilities = "percolator"
search_engines = "msgf"
protein_level_fdr_cutoff = 0.01
decoy_string = "rev"
label = 'tmt6plex'
fragment_method = 'HCD'
add_decoys = true
protocol = 'TMT'
variable_mods = 'Oxidation (M)'
fixed_mods = 'Methylthio (C),TMT6plex (K),TMT6plex (N-term)'
fixed_mods = 'Methylthio (C)'
}
2 changes: 1 addition & 1 deletion conf/test_lfq.config
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ params {
max_time = 48.h

// Input data
quant_method = "LFQ"
labelling_type = "label free sample"
input = 'https://raw.githubusercontent.com/nf-core/test-datasets/proteomicslfq/testdata/BSA_design_urls.tsv'
database = 'https://raw.githubusercontent.com/nf-core/test-datasets/proteomicslfq/testdata/18Protein_SoCe_Tr_detergents_trace_target_decoy.fasta'
posterior_probabilities = "fit_distributions"
Expand Down
4 changes: 2 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# nf-core/proteomicslfq: Documentation
# nf-core/quantms: Documentation

The nf-core/proteomicslfq documentation is split into the following pages:
The nf-core/quantms documentation is split into the following pages:

* [Usage](usage.md)
* An overview of how the pipeline works, how to run it and a description of all of the different command-line flags.
Expand Down
Binary file modified docs/images/nf-core-quantms_logo_dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/nf-core-quantms_logo_light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading