Mercurial > repos > galaxyp > pyprophet_export
comparison pyprophet_export.xml @ 4:3cf580bf28e2 draft default tip
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/pyprophet commit 8b9f6963836c6ccb227343ce952e7b9a015d0483"
| author | galaxyp |
|---|---|
| date | Fri, 05 Jun 2020 12:38:25 -0400 |
| parents | 102d940d365c |
| children |
comparison
equal
deleted
inserted
replaced
| 3:ece83e6b5328 | 4:3cf580bf28e2 |
|---|---|
| 1 <tool id="pyprophet_export" name="PyProphet export" version="@VERSION@.0"> | 1 <tool id="pyprophet_export" name="PyProphet export" version="@VERSION@.1"> |
| 2 <description> | 2 <description> |
| 3 Export tabular files, optional swath2stats export | 3 Export tabular files, optional swath2stats export |
| 4 </description> | 4 </description> |
| 5 <macros> | 5 <macros> |
| 6 <import>macros.xml</import> | 6 <import>macros.xml</import> |
| 86 ########################### QC plots and tabular files ######################### | 86 ########################### QC plots and tabular files ######################### |
| 87 | 87 |
| 88 ## remove decoys when generating plots | 88 ## remove decoys when generating plots |
| 89 data.annotated.nodecoy <- subset(data.annotated, decoy==FALSE) | 89 data.annotated.nodecoy <- subset(data.annotated, decoy==FALSE) |
| 90 | 90 |
| 91 pdf("summary.pdf", fonts = "Times", pointsize = 12) | 91 pdf("summary.pdf", fonts = "Times", pointsize = 8) |
| 92 plot(0,type='n',axes=FALSE,ann=FALSE) | 92 plot(0,type='n',axes=FALSE,ann=FALSE) |
| 93 title(main="Summarized plots and tables from pyprophet export file") | 93 title(main="Summarized plots and tables from pyprophet export file") |
| 94 | 94 |
| 95 ## Look at Numbers of peptides and proteins per run | 95 ## Look at Numbers of peptides and proteins per run |
| 96 grid.table(count_analytes(data.annotated.nodecoy), rows= NULL) | 96 ## for many runs table needs to be split over several pages |
| 97 number_samples = nrow(count_analytes(data.annotated.nodecoy)) | |
| 98 | |
| 99 ### for more than 20 annotation groups print only 20 samples per page: | |
| 100 if (number_samples <= 20){ | |
| 101 grid.table(count_analytes(data.annotated.nodecoy), rows= NULL) | |
| 102 }else{ | |
| 103 grid.table(count_analytes(data.annotated.nodecoy)[1:20,], rows= NULL) | |
| 104 mincount = 21 | |
| 105 maxcount = 40 | |
| 106 for (count15 in 1:(ceiling(number_samples/20)-1)){ | |
| 107 plot(0,type='n',axes=FALSE,ann=FALSE) | |
| 108 if (maxcount <= number_samples){ | |
| 109 grid.table(count_analytes(data.annotated.nodecoy)[mincount:maxcount,], rows= NULL) | |
| 110 mincount = mincount+20 | |
| 111 maxcount = maxcount+20 | |
| 112 }else{### stop last page with last sample otherwise NA in table | |
| 113 grid.table(count_analytes(data.annotated.nodecoy)[mincount:number_samples,], rows= NULL)} | |
| 114 } | |
| 115 } | |
| 116 | |
| 97 | 117 |
| 98 ## Correlation of the intensities | 118 ## Correlation of the intensities |
| 99 correlation_int <- plot_correlation_between_samples(data.annotated.nodecoy, column.values = 'Intensity') | 119 correlation_int <- plot_correlation_between_samples(data.annotated.nodecoy, column.values = 'Intensity') |
| 100 | 120 |
| 101 ## Plot the correlation of the delta_rt, which is the deviation of the retention time from the expected retention time | 121 ## Plot the correlation of the delta_rt, which is the deviation of the retention time from the expected retention time |
| 171 </configfiles> | 191 </configfiles> |
| 172 <inputs> | 192 <inputs> |
| 173 <param name="input" type="data" format="osw" label="Input file" help="This file needs to be in OSW format (--in)" /> | 193 <param name="input" type="data" format="osw" label="Input file" help="This file needs to be in OSW format (--in)" /> |
| 174 <conditional name="conditional_output"> | 194 <conditional name="conditional_output"> |
| 175 <param argument="format" type="select" label="Export format, either matrix, legacy_split, legacy_merged (mProphet/PyProphet) or score_plots format" > | 195 <param argument="format" type="select" label="Export format, either matrix, legacy_split, legacy_merged (mProphet/PyProphet) or score_plots format" > |
| 176 <option value="legacy_split" selected="True">legaxy_split</option> | 196 <option value="legacy_split" selected="True">legacy_split</option> |
| 177 <option value="legacy_merged">legacy_merged</option> | 197 <option value="legacy_merged">legacy_merged</option> |
| 178 <option value="matrix">matrix</option> | 198 <option value="matrix">matrix</option> |
| 179 <option value="score_plots">score_plots</option> | 199 <option value="score_plots">score_plots</option> |
| 180 </param> | 200 </param> |
| 181 <when value="legacy_split"> | 201 <when value="legacy_split"> |
| 328 <