# HG changeset patch # User bgruening # Date 1399622531 14400 # Node ID b9f2cedab007fe9fe46ea1054d124174285c1049 # Parent e5bdaa2ac9c709c1b742efa1894db642808eecb4 Uploaded diff -r e5bdaa2ac9c7 -r b9f2cedab007 peptide_shaker.xml --- a/peptide_shaker.xml Wed May 07 00:47:14 2014 -0400 +++ b/peptide_shaker.xml Fri May 09 04:02:11 2014 -0400 @@ -11,9 +11,12 @@ + #from datetime import datetime #set $exp_str = "Galaxy_Experiment_%s" % datetime.now().strftime("%Y%m%d%H%M%s") #set $samp_str = "Sample_%s" % datetime.now().strftime("%Y%m%d%H%M%s") + #set $temp_stderr = 'macs2_stderr' + mkdir output; mkdir output_reports; cwd=`pwd`; @@ -39,7 +42,7 @@ ## generate IdentificationParameters for SearchGUI ## ##################################################### - java -cp \$SEARCHGUI_JAR_PATH eu.isas.searchgui.cmd.IdentificationParametersCLI + (java -cp \$SEARCHGUI_JAR_PATH eu.isas.searchgui.cmd.IdentificationParametersCLI -out SEARCHGUI_IdentificationParameters.parameters -prec_ppm "${precursor_ion_tol_units}" -prec_tol "${precursor_ion_tol}" @@ -62,8 +65,23 @@ #if $advanced.advanced_type_selector == "advanced": - ##if $advanced.xtandem.xtandem_selector == "yes" - ##end if + #if $advanced.xtandem.xtandem_selector == "yes" + + -xtandem_npeaks ${advanced.xtandem.xtandem_npeaks} + -xtandem_min_peaks ${advanced.xtandem.xtandem_min_peaks} + -xtandem_min_frag_mz ${advanced.xtandem.xtandem_min_frag_mz} + -xtandem_min_prec_mass ${advanced.xtandem.xtandem_min_prec_mass} + -xtandem_noise_suppr ${advanced.xtandem.xtandem_noise_suppr} + + #if $advanced.xtandem.xtandem_refine.xtandem_refine_selector == "yes" + -xtandem_refine 1 + -xtandem_refine_unc ${advanced.xtandem.xtandem_refine.xtandem_refine_unc} + -xtandem_refine_semi ${advanced.xtandem.xtandem_refine.xtandem_refine_semi} + -xtandem_refine_p_mut ${advanced.xtandem.xtandem_refine.xtandem_refine_p_mut} + -xtandem_refine_snaps ${advanced.xtandem.xtandem_refine.xtandem_refine_snaps} + -xtandem_refine_spec_synt ${advanced.xtandem.xtandem_refine.xtandem_refine_spec_synt} + #end if + #end if #if $advanced.omssa.omssa_selector == "yes" -omssa_hitlist_length ${advanced.omssa.hitlist_length} @@ -72,19 +90,26 @@ -omssa_estimate_charge ${advanced.omssa.estimate_charge} #end if - ##if $advanced.msgf.msgf_selector == "yes" - ##end if + #if $advanced.msgf.msgf_selector == "yes" + -msgf_decoy ${advanced.msgf.msgf_decoy} + -msgf_min_pep_length ${advanced.msgf.msgf_min_pep_length} + -msgf_max_pep_length ${advanced.msgf.msgf_max_pep_length} + -msgf_termini ${advanced.msgf.msgf_termini} + -msgf_num_ptms ${advanced.msgf.msgf_num_ptms} + #end if ##if $advanced.ms_amanda.ms_amanda_selector == "yes" ##end if #end if - ; + + 2> $temp_stderr) + && ################ ## Search CLI ## ################ - java -cp \$SEARCHGUI_JAR_PATH eu.isas.searchgui.cmd.SearchCLI + (java -cp \$SEARCHGUI_JAR_PATH eu.isas.searchgui.cmd.SearchCLI -temp_folder `pwd` -spectrum_files \$cwd -output_folder \$cwd/output @@ -128,12 +153,13 @@ #end if #end if - ; + 2>> $temp_stderr) + && ######################################################### ## generate IdentificationParameters for PeptideShaker ## ######################################################### - java -cp \$PEPTIDESHAKER_JAR_PATH eu.isas.peptideshaker.cmd.IdentificationParametersCLI + (java -cp \$PEPTIDESHAKER_JAR_PATH eu.isas.peptideshaker.cmd.IdentificationParametersCLI -out PEPTIDESHAKER_IdentificationParameters.parameters -prec_ppm "${precursor_ion_tol_units}" -prec_tol "${precursor_ion_tol}" @@ -153,12 +179,14 @@ -fi $forward_ion -ri $reverse_ion -db input_database.fasta - ; + + 2>> $temp_stderr) + && ###################### ## PeptideShakerCLI ## ###################### - java -cp \$PEPTIDESHAKER_JAR_PATH eu.isas.peptideshaker.cmd.PeptideShakerCLI + (java -cp \$PEPTIDESHAKER_JAR_PATH eu.isas.peptideshaker.cmd.PeptideShakerCLI -temp_folder `pwd` -experiment '${exp_str}' -sample '${samp_str}' @@ -200,12 +228,14 @@ -max_mascot_e "${filtering_options.max_mascot_e}" -exclude_unknown_ptms "${filtering_options.exclude_unknown_ptms}" #end if - ; + + 2>> $temp_stderr) + && ################################## ## PeptideShaker Report options ## ################################## - java -cp \$PEPTIDESHAKER_JAR_PATH eu.isas.peptideshaker.cmd.ReportCLI + (java -cp \$PEPTIDESHAKER_JAR_PATH eu.isas.peptideshaker.cmd.ReportCLI -temp_folder `pwd` -in \$cwd/peptide_shaker_output.cps -out_reports \$cwd/output_reports @@ -216,7 +246,9 @@ #else: -reports #echo str($outputs)# #end if - ; + + 2>> $temp_stderr) + && #if '0' in str($outputs).split(','): find \$cwd/output_reports -name '*Certificate*' -exec bash -c 'mv "$0" "certificate.txt"' {} \; @@ -239,8 +271,10 @@ ; #end if - ## the following line is needed. Otherwise, Galaxy will strip away the ';' - echo 'Finished!'; + exit_code_for_galaxy=\$?; + cat $temp_stderr 2>&1; + (exit \$exit_code_for_galaxy) + - + + + + + + + + + + + + + + + + + + + + + + + + @@ -591,6 +648,15 @@ + + + + + + + + + @@ -694,6 +760,9 @@ + + +