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

library creation #341

Merged
merged 2 commits into from
Jan 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
11 changes: 7 additions & 4 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,13 @@ params {
species_genes = false
diann_normalize = true
diann_speclib = null

/// DIA-NN: Extras
skip_preliminary_analysis = false
empirical_assembly_log = null

// DIA-NN: Extras
skip_preliminary_analysis = false
empirical_assembly_log = null
random_preanalysis = false
empirical_assembly_ms_n = 200


// MSstats general options
msstats_remove_one_feat_prot = true
Expand Down
13 changes: 13 additions & 0 deletions nextflow_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -967,6 +967,19 @@
"description": "Enable cross-run normalization between runs by diann.",
"default": true,
"fa_icon": "far fa-check-square"
},
"random_preanalysis": {
"type": "boolean",
"description": "Enable random selection of spectrum files to generate empirical library.",
"default": false,
"fa_icon": "far fa-check-square"
},
"empirical_assembly_ms_n": {
"type": "integer",
"description": "The number of randomly selected spectrum files.",
"default": 200,
"fa_icon": "fas fa-filter",
"hidden": true
}
},
"fa_icon": "fas fa-braille"
Expand Down
6 changes: 5 additions & 1 deletion workflows/dia.nf
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ workflow DIA {
//
// MODULE: DIANN_PRELIMINARY_ANALYSIS
//
DIANN_PRELIMINARY_ANALYSIS(ch_file_preparation_results.combine(speclib))
if (params.random_preanalysis){
DIANN_PRELIMINARY_ANALYSIS(ch_file_preparation_results.randomSample(params.empirical_assembly_ms_n, 2024).combine(speclib))
} else{
DIANN_PRELIMINARY_ANALYSIS(ch_file_preparation_results.combine(speclib))
}
ch_software_versions = ch_software_versions
.mix(DIANN_PRELIMINARY_ANALYSIS.out.version.ifEmpty(null))

Expand Down
Loading