Skip to content

Commit

Permalink
Merge pull request #341 from daichengxin/dev
Browse files Browse the repository at this point in the history
library creation
  • Loading branch information
ypriverol authored Jan 13, 2024
2 parents eb6985f + 666467d commit e9ae266
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 5 deletions.
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

0 comments on commit e9ae266

Please sign in to comment.