Skip to content

Commit

Permalink
Merge pull request #193 from daichengxin/dev
Browse files Browse the repository at this point in the history
minor fixed
  • Loading branch information
ypriverol authored May 24, 2022
2 parents 5fd2dfd + 33dfebc commit 4728950
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 8 deletions.
1 change: 0 additions & 1 deletion bin/diann_convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ def convert(ctx, diann_report, exp_design, qvalue_threshold):
out_triqler = out_msstats[['ProteinName', 'PeptideSequence', 'PrecursorCharge', 'Intensity', 'Run', 'Condition']]
out_triqler.columns = ['proteins', 'peptide', 'charge', 'intensity', 'run', 'condition']

# https://github.com/statisticalbiotechnology/dia_sum/blob/main/scripts/result_scripts/diann_output_to_triqler_output.py
out_triqler.loc[:, "searchScore"] = report['Q.Value']
out_triqler.loc[:, "searchScore"] = 1 - out_triqler["searchScore"]

Expand Down
2 changes: 1 addition & 1 deletion conf/test_full_dia.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Nextflow config file for running real full dia tests (DIA)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Defines input files and everything required to run a fast and simple test.
Defines input files and everything required to run a real and full-size test.
Use as follows:
nextflow run nf-core/quantms -profile test_full_dia,<docker/singularity> [--outdir <OUTDIR>]
Expand Down
2 changes: 1 addition & 1 deletion conf/test_full_lfq.config
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Nextflow config file for running real full-size tests
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Defines input files and everything required to run a fast and simple test.
Defines input files and everything required to run a real and full-size test.
Use as follows:
nextflow run nf-core/quantms -profile test_full_lfq,<docker/singularity> [--outdir <OUTDIR>]
Expand Down
2 changes: 1 addition & 1 deletion modules/local/diannsummary/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ process DIANNSUMMARY {
--use-quant \\
--matrices \\
--out diann_report.tsv \\
--qvalue $params.psm_level_fdr_cutoff \\
--qvalue $params.protein_level_fdr_cutoff \\
$args \\
|& tee diannsummary.log
Expand Down
2 changes: 1 addition & 1 deletion nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ params {
// Workflow flags
input = null // the sdrf and spectra parameters are inferred from this one
root_folder = null
local_input_type = null
local_input_type = 'mzML'
database = null
acquisition_method = null

Expand Down
1 change: 1 addition & 0 deletions nextflow_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"type": "string",
"description": "Overwrite the file type/extension of the filename as specified in the SDRF/design",
"fa_icon": "fas fa-file-invoice",
"default": "mzML",
"help_text": "If the above [`--root_folder`](#root_folder) was given to load local input files, this overwrites the file type/extension of\nthe filename as specified in the SDRF/design. Usually used in case you have an mzML-converted version of the files already. Needs to be\none of 'mzML' or 'raw' (the letter cases should match your files exactly)."
}
}
Expand Down
7 changes: 4 additions & 3 deletions subworkflows/local/create_input_channel.nf
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,12 @@ def create_meta_channel(LinkedHashMap row, is_sdrf, enzymes, files, wrapper) {
// apply transformations given by specified root_folder and type
if (params.root_folder) {
filestr = params.root_folder + File.separator + filestr
}

filestr = (params.local_input_type ? filestr.take(filestr.lastIndexOf('.'))
filestr = (params.local_input_type ? filestr.take(filestr.lastIndexOf('.'))
+ '.' + params.local_input_type
: filestr)
}



// existance check
if (!file(filestr).exists()) {
Expand Down

0 comments on commit 4728950

Please sign in to comment.