Mercurial > repos > galaxyp > cardinal_filtering
comparison filtering.xml @ 9:c3d2ca5f9dd0 draft
"planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/cardinal commit e499c9124d3fd85a7fc47b95c206ce91a5e3678c-dirty"
author | galaxyp |
---|---|
date | Tue, 03 Nov 2020 22:26:34 +0000 |
parents | 5aaea231da6b |
children | 9fbb30142020 |
comparison
equal
deleted
inserted
replaced
8:f3a77d4c4991 | 9:c3d2ca5f9dd0 |
---|---|
3 <macros> | 3 <macros> |
4 <import>macros.xml</import> | 4 <import>macros.xml</import> |
5 </macros> | 5 </macros> |
6 <expand macro="requirements"> | 6 <expand macro="requirements"> |
7 <requirement type="package" version="2.3">r-gridextra</requirement> | 7 <requirement type="package" version="2.3">r-gridextra</requirement> |
8 <requirement type="package" version="3.2.1">r-ggplot2</requirement> | 8 <requirement type="package" version="3.3.2">r-ggplot2</requirement> |
9 </expand> | 9 </expand> |
10 <expand macro="print_version"/> | 10 <expand macro="print_version"/> |
11 <command detect_errors="exit_code"> | 11 <command detect_errors="exit_code"> |
12 <![CDATA[ | 12 <![CDATA[ |
13 | 13 |
363 ggtitle("Spatial orientation of filtered pixels")+ | 363 ggtitle("Spatial orientation of filtered pixels")+ |
364 theme_bw()+ | 364 theme_bw()+ |
365 theme(plot.title = element_text(hjust = 0.5))+ | 365 theme(plot.title = element_text(hjust = 0.5))+ |
366 theme(legend.position="bottom",legend.direction="vertical")+ | 366 theme(legend.position="bottom",legend.direction="vertical")+ |
367 guides(fill=guide_legend(ncol=5,byrow=TRUE)) | 367 guides(fill=guide_legend(ncol=5,byrow=TRUE)) |
368 print(pixel_image) | 368 print(pixel_image + scale_fill_manual(values=c("#00BFC4", "#F8766D"))) |
369 | 369 |
370 | 370 |
371 ### visual mz feature control | 371 ### visual mz feature control |
372 | 372 |
373 kept_df = data.frame(mz(msidata), rep("remaining m/z", nrow(msidata))) | 373 kept_df = data.frame(mz(msidata), rep("remaining m/z", nrow(msidata))) |
382 geom_histogram()+ theme_bw()+ | 382 geom_histogram()+ theme_bw()+ |
383 theme(plot.title = element_text(hjust = 0.5))+ | 383 theme(plot.title = element_text(hjust = 0.5))+ |
384 theme(legend.position="bottom",legend.direction="vertical")+ | 384 theme(legend.position="bottom",legend.direction="vertical")+ |
385 labs(title="Overview of filtered m/z", x="m/z", y = "count") + | 385 labs(title="Overview of filtered m/z", x="m/z", y = "count") + |
386 guides(fill=guide_legend(ncol=5,byrow=TRUE)) | 386 guides(fill=guide_legend(ncol=5,byrow=TRUE)) |
387 print(histogram_mz) | 387 print(histogram_mz + scale_fill_manual(values=c("#00BFC4", "#F8766D"))) |
388 | 388 |
389 | 389 dev.off() |
390 dev.off() | |
391 | 390 |
392 ## save msidata as imzML file, will only work if there is at least 1 m/z left | 391 ## save msidata as imzML file, will only work if there is at least 1 m/z left |
393 | 392 |
394 if (maxfeatures2 > 0){ | 393 if (maxfeatures2 > 0){ |
395 ## make sure that coordinates are integers | 394 ## make sure that coordinates are integers |
396 coord(msidata)\$y = as.integer(coord(msidata)\$y) | 395 coord(msidata)\$y = as.integer(coord(msidata)\$y) |
397 coord(msidata)\$x = as.integer(coord(msidata)\$x) | 396 coord(msidata)\$x = as.integer(coord(msidata)\$x) |
397 msidata = as(msidata, "MSContinuousImagingExperiment") | |
398 writeImzML(msidata, "out")} | 398 writeImzML(msidata, "out")} |
399 | 399 |
400 | 400 |
401 }else{ | 401 }else{ |
402 print("Inputfile or filtered file has no intensities > 0") | 402 print("Inputfile or filtered file has no intensities > 0") |
523 </test> | 523 </test> |
524 <test> | 524 <test> |
525 <expand macro="processed_infile_imzml"/> | 525 <expand macro="processed_infile_imzml"/> |
526 <conditional name="processed_cond"> | 526 <conditional name="processed_cond"> |
527 <param name="processed_file" value="processed"/> | 527 <param name="processed_file" value="processed"/> |
528 <param name="accuracy" value="100"/> | 528 <param name="accuracy" value="200"/> |
529 <param name="units" value="ppm"/> | 529 <param name="units" value="ppm"/> |
530 </conditional> | 530 </conditional> |
531 <param name="pixel_filtering" value="two_columns"/> | 531 <param name="pixel_filtering" value="two_columns"/> |
532 <param name="annotation_file" ftype="tabular" value="inputpixels_2column.tabular"/> | 532 <param name="annotation_file" ftype="tabular" value="inputpixels_2column.tabular"/> |
533 <param name="column_x" value="1"/> | 533 <param name="column_x" value="1"/> |