# HG changeset patch # User galaxyp # Date 1529446037 14400 # Node ID bf61fc662615de67070797887a3bbf3b77b18a7a # Parent d51c3c814d57d5b994e821d714c5ad0ea1b1a0d6 planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_filtering commit 37da74ed68228b16efbdbde776e7c38cc06eb5d5 diff -r d51c3c814d57 -r bf61fc662615 msi_filtering.xml --- a/msi_filtering.xml Mon Jun 11 17:33:40 2018 -0400 +++ b/msi_filtering.xml Tue Jun 19 18:07:17 2018 -0400 @@ -1,4 +1,4 @@ - + tool for filtering mass spectrometry imaging data bioconductor-cardinal @@ -34,7 +34,7 @@ library(gridExtra) #if $infile.ext == 'imzml' - msidata = readImzML('infile') + msidata <- readImzML('infile', mass.accuracy=$accuracy, units.accuracy = "$units") #elif $infile.ext == 'analyze75' msidata = readAnalyze('infile') #else @@ -284,7 +284,7 @@ medint2 = round(median(TICs2), digits=2) properties = c("Number of m/z features", - "Range of m/z values [Da]", + "Range of m/z values", "Number of pixels", "Range of x coordinates", "Range of y coordinates", @@ -330,10 +330,13 @@ image(msidata, mz=$outputs.inputmz, plusminus = $outputs.plusminus_dalton, contrast.enhance = "none", main= paste0($outputs.inputmz," ± ", $outputs.plusminus_dalton, " Da"), ylim = c(maximumy2+0.2*maximumy2,minimumy2-0.2*minimumy2)) - ### control features which are left - plot(featuresinfile, rep(1,length(featuresinfile)), yaxt="n", ylab=NA, xlab="m/z values", col="red", ylim=c(0.8, 1.1), main="Distribution of m/z values") - lines(mz(msidata),rep(0.9, length(mz(msidata))), col="green", type="p") - legend("top", horiz=TRUE, legend = c("before", "filtered"), fill = c("red", "green")) + ### control features which are removed + hist(mz(msidata), xlab="m/z", main="Kept m/z values") + #if str($features_cond.features_filtering) == "none": + print("no difference histogram as no m/z filtering took place") + #else: + hist(setdiff(featuresinfile, mz(msidata)), xlab="m/z", main="Removed m/z values") + #end if }else{ print("file has no features or pixels left")} @@ -362,6 +365,11 @@ + + + + + @@ -603,7 +611,7 @@ Output: - imzML file filtered for pixels and/or m/z -- optional: pdf with heatmap showing the pixels that are left after filtering and plot of m/z before and after filtering +- optional: pdf with heatmap showing the pixels that are left after filtering and histograms of kept and removed m/z - optional: intensity matrix as tabular file (intensities for m/z in rows and pixel in columns) diff -r d51c3c814d57 -r bf61fc662615 test-data/analyze75_filtered2.pdf Binary file test-data/analyze75_filtered2.pdf has changed diff -r d51c3c814d57 -r bf61fc662615 test-data/analyze_filtered.RData Binary file test-data/analyze_filtered.RData has changed diff -r d51c3c814d57 -r bf61fc662615 test-data/analyze_filtered.pdf Binary file test-data/analyze_filtered.pdf has changed diff -r d51c3c814d57 -r bf61fc662615 test-data/analyze_filteredoutside.RData Binary file test-data/analyze_filteredoutside.RData has changed diff -r d51c3c814d57 -r bf61fc662615 test-data/imzml_filtered.RData Binary file test-data/imzml_filtered.RData has changed diff -r d51c3c814d57 -r bf61fc662615 test-data/imzml_filtered.pdf Binary file test-data/imzml_filtered.pdf has changed diff -r d51c3c814d57 -r bf61fc662615 test-data/imzml_filtered2.RData Binary file test-data/imzml_filtered2.RData has changed diff -r d51c3c814d57 -r bf61fc662615 test-data/imzml_filtered2.pdf Binary file test-data/imzml_filtered2.pdf has changed diff -r d51c3c814d57 -r bf61fc662615 test-data/imzml_filtered3.RData Binary file test-data/imzml_filtered3.RData has changed diff -r d51c3c814d57 -r bf61fc662615 test-data/imzml_filtered3.pdf Binary file test-data/imzml_filtered3.pdf has changed diff -r d51c3c814d57 -r bf61fc662615 test-data/imzml_filtered4.RData Binary file test-data/imzml_filtered4.RData has changed diff -r d51c3c814d57 -r bf61fc662615 test-data/imzml_filtered4.pdf Binary file test-data/imzml_filtered4.pdf has changed diff -r d51c3c814d57 -r bf61fc662615 test-data/imzml_filtered5.RData Binary file test-data/imzml_filtered5.RData has changed diff -r d51c3c814d57 -r bf61fc662615 test-data/imzml_filtered5.pdf Binary file test-data/imzml_filtered5.pdf has changed