Skip to content

Commit

Permalink
OpenMS increase version to 2.5 for TMTpro
Browse files Browse the repository at this point in the history
  • Loading branch information
glormph committed Mar 16, 2020
1 parent f0ff91a commit 4b05940
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 5 additions & 4 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,10 @@ process get_software_versions {
echo $workflow.nextflow.version > v_nextflow.txt
msgf_plus | head -n1 > v_msgf.txt
hardklor | head -n1 > v_hk.txt || true
kronik | head -n2 > v_kr.txt
kronik | head -n2 | tr -cd '[:alnum:]._-' > v_kr.txt
percolator -h |& head -n1 > v_perco.txt || true
msspsmtable --version > v_mss.txt
source activate openms-2.4.0
source activate openms-2.5.0
IsobaricAnalyzer |& grep Version > v_openms.txt || true
scrape_software_versions.py > software_versions.yaml
"""
Expand Down Expand Up @@ -366,13 +366,14 @@ process quantifySpectra {
script:
activationtype = [hcd:'High-energy collision-induced dissociation', cid:'Collision-induced dissociation', etd:'Electron transfer dissociation'][params.activation]
massshift = [tmt:0.0013, itraq:0.00125, false:0][plextype]
isobtype = params.isobaric == 'tmtpro' ? 'tmt16plex' : params.isobaric
"""
# Run hardklor on config file with added line for in/out files
# then run kronik on hardklor and quant isobaric labels if necessary
hardklor <(cat $hkconf <(echo "$infile" hardklor.out))
kronik -c 5 -d 3 -g 1 -m 8000 -n 600 -p 10 hardklor.out ${sample}.kr
source activate openms-2.4.0
${params.isobaric ? "IsobaricAnalyzer -type $params.isobaric -in $infile -out \"${infile}.consensusXML\" -extraction:select_activation \"$activationtype\" -extraction:reporter_mass_shift $massshift -extraction:min_precursor_intensity 1.0 -extraction:keep_unannotated_precursor true -quantification:isotope_correction true" : ''}
source activate openms-2.5.0
${params.isobaric ? "IsobaricAnalyzer -type $isobtype -in $infile -out \"${infile}.consensusXML\" -extraction:select_activation \"$activationtype\" -extraction:reporter_mass_shift $massshift -extraction:min_precursor_intensity 1.0 -extraction:keep_unannotated_precursor true -quantification:isotope_correction true" : ''}
"""
}

Expand Down
4 changes: 2 additions & 2 deletions tools/openms/environment.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: openms-2.4.0
name: openms-2.5.0
channels:
- bioconda
- conda-forge
- defaults
dependencies:
- bioconda::openms=2.4.0
- bioconda::openms=2.5.0

0 comments on commit 4b05940

Please sign in to comment.