# HG changeset patch # User bgruening # Date 1399059265 14400 # Node ID 7939608a991cb27cfbd8d4872047f5927472fb69 # Parent e873824c4198b3456e16c635ce1faba46d376514 Uploaded diff -r e873824c4198 -r 7939608a991c peptide_shaker.xml --- a/peptide_shaker.xml Fri May 02 02:35:17 2014 -0400 +++ b/peptide_shaker.xml Fri May 02 15:34:25 2014 -0400 @@ -1,26 +1,28 @@ - + + Peform protein identification combining X! Tandem and OMSSA (using SearchGUI) and PeptideShaker pipeline. + peptide_shaker searchgui - + blast+ - - Peform protein identification combining X! Tandem and OMSSA (using SearchGUI) and PeptideShaker pipeline. - + + + #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") - mkdir spectra; mkdir output; mkdir output_reports; cwd=`pwd`; #for $mgf in $peak_lists: #set $input_name = $mgf.display_name.replace(".mgf", "") + ".mgf" - ln -s '${mgf}' 'spectra/${input_name}'; + ln -s '${mgf}' '${input_name}'; #end for - ln -s ${input_database} input_database.fasta; + #ln -s "${input_database}" input_database.fasta; + cp "${input_database}" input_database.fasta; ########################################### #### Creating decoy database #### @@ -28,7 +30,9 @@ #if $create_decoy: echo "Creating decoy database."; java -cp \$SEARCHGUI_JAR_PATH eu.isas.searchgui.cmd.FastaCLI -in input_database.fasta -decoy; - ln -sf input_database_concatenated_target_decoy.fasta input_database.fasta; + rm input_database.fasta; + cp input_database_concatenated_target_decoy.fasta input_database.fasta; + #ln -sf input_database_concatenated_target_decoy.fasta input_database.fasta; #end if ##################################################### @@ -41,8 +45,8 @@ -prec_tol "${precursor_ion_tol}" -frag_tol "${fragment_tol}" -enzyme "${enzyme}" - #set $fixed_mods_str = ${fixed_modifications} or '' - #set $variable_mods_str = ${variable_modifications} or '' + #set $fixed_mods_str = $fixed_modifications or '' + #set $variable_mods_str = $variable_modifications or '' #if $fixed_mods_str -fixed_mods "${fixed_mods_str}" #end if @@ -82,12 +86,12 @@ ################ java -cp \$SEARCHGUI_JAR_PATH eu.isas.searchgui.cmd.SearchCLI -temp_folder `pwd` - -spectrum_files \$cwd/spectra + -spectrum_files \$cwd -output_folder \$cwd/output -id_params SEARCHGUI_IdentificationParameters.parameters -threads "\${GALAXY_SLOTS:-12}" - -correct_titles $correct_titles + -correct_titles "${correct_titles}" -mgf_splitting "${mgf_splitting}" -mgf_spectrum_count "${mgf_spectrum_count}" @@ -101,6 +105,7 @@ #if $advanced.omssa.omssa_selector == "yes" -omssa 1 + -makeblastdb_folder \$BLAST_ROOT_DIR #else -omssa 0 #end if @@ -125,10 +130,10 @@ ######################################################### 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 - -frag_tol $fragment_tol - -enzyme '$enzyme' + -prec_ppm "${precursor_ion_tol_units}" + -prec_tol "${precursor_ion_tol}" + -frag_tol "${fragment_tol}" + -enzyme "${enzyme}" #set $fixed_mods_str = $fixed_modifications or '' #set $variable_mods_str = $variable_modifications or '' #if $fixed_mods_str @@ -153,15 +158,15 @@ -experiment '${exp_str}' -sample '${samp_str}' -replicate 1 - -spectrum_files \$cwd/spectra + -spectrum_files \$cwd -identification_files \$cwd/output -out \$cwd/peptide_shaker_output.cps -id_params PEPTIDESHAKER_IdentificationParameters.parameters ##Optional gene annotation parameter - #if "${species_type.species_type_selector}" != 'no_species_type': + #if $species_type.species_type_selector != 'no_species_type': -species_type "${species_type.species_type_selector}" - -species "{$species_type.species}" + -species "${species_type.species}" #end if ##Optional processing parameters: @@ -179,7 +184,6 @@ -protein_fraction_mw_confidence "${processing_options.protein_fraction_mw_confidence}" #end if - ##Optional filtering parameters: #if $filtering_options.filtering_options_selector == "yes": -min_peptide_length "${filtering_options.min_peptide_length}" @@ -191,7 +195,6 @@ -max_mascot_e "${filtering_options.max_mascot_e}" -exclude_unknown_ptms "${filtering_options.exclude_unknown_ptms}" #end if - ; ################################## @@ -201,16 +204,25 @@ -temp_folder `pwd` -in \$cwd/peptide_shaker_output.cps -out_reports \$cwd/output_reports - + -reports str($outputs).split(',').remove('cps') ; - ##mv output_reports/*peptides.txt peptides.txt ; - ##mv output_reports/*psms.txt psms.txt ; - ##mv output_reports/*proteins.txt proteins.txt + #if '0' in str($outputs).split(','): + find . -name '\$cwd/output_reports/*Certificate*' -exec bash -c 'mv "$0" "certificate.txt"' {} \; + #end if + #if '1' in str($outputs).split(','): + find . -name '\$cwd/output_reports/*PSM*' -exec bash -c 'mv "$0" "psm.txt"' {} \; + #end if + #if '2' in str($outputs).split(','): + find . -name '\$cwd/output_reports/*Peptide*' -exec bash -c 'mv "$0" "peptides.txt"' {} \; + #end if + #if '3' in str($outputs).split(','): + find . -name '\$cwd/output_reports/*Protein*' -exec bash -c 'mv "$0" "proteins.txt"' {} \; + #end if + #if '4' in str($outputs).split(','): + find . -name '\$cwd/output_reports/*Top*' -exec bash -c 'mv "$0" ".txt"' {} \; + #end if - - - @@ -622,12 +634,36 @@ + + + + + + + + + + - - - - + + 'cps' in outputs + + + '0' in outputs + + + '1' in outputs + + + '2' in outputs + + + '3' in outputs + + + '4' in outputs + **What it does** diff -r e873824c4198 -r 7939608a991c tool_dependencies.xml --- a/tool_dependencies.xml Fri May 02 02:35:17 2014 -0400 +++ b/tool_dependencies.xml Fri May 02 15:34:25 2014 -0400 @@ -1,12 +1,12 @@ - + - + - + + +