comparison msi_preprocessing.xml @ 10:df8d7f6f210b draft default tip

planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/msi_preprocessing commit e87eea03505ab1ba067e192bbbcdc6197dc4b42e
author galaxyp
date Tue, 04 Sep 2018 13:42:22 -0400
parents 4d5578b57a77
children
comparison
equal deleted inserted replaced
9:4d5578b57a77 10:df8d7f6f210b
1 <tool id="mass_spectrometry_imaging_preprocessing" name="MSI preprocessing" version="1.10.0.6"> 1 <tool id="mass_spectrometry_imaging_preprocessing" name="MSI preprocessing" version="1.10.0.7">
2 <description> 2 <description>
3 mass spectrometry imaging preprocessing 3 mass spectrometry imaging preprocessing
4 </description> 4 </description>
5 <requirements> 5 <requirements>
6 <requirement type="package" version="1.10.0">bioconductor-cardinal</requirement> 6 <requirement type="package" version="1.10.0">bioconductor-cardinal</requirement>
101 101
102 #elif str( $method.methods_conditional.preprocessing_method ) == 'Baseline_reduction': 102 #elif str( $method.methods_conditional.preprocessing_method ) == 'Baseline_reduction':
103 print('Baseline_reduction') 103 print('Baseline_reduction')
104 ##baseline reduction 104 ##baseline reduction
105 105
106 msidata = reduceBaseline(msidata, method="median", blocks=$method.methods_conditional.blocks_baseline) 106 msidata = reduceBaseline(msidata, method="median", blocks=$method.methods_conditional.blocks_baseline, spar=$method.methods_conditional.spar_baseline)
107 107
108 ############################### QC ########################### 108 ############################### QC ###########################
109 109
110 maxfeatures = length(features(msidata)) 110 maxfeatures = length(features(msidata))
111 medianpeaks = median(colSums(spectra(msidata)[]>0, na.rm=TRUE)) 111 medianpeaks = median(colSums(spectra(msidata)[]>0, na.rm=TRUE))
130 #elif str( $method.methods_conditional.methods_for_smoothing.smoothing_method) == 'sgolay': 130 #elif str( $method.methods_conditional.methods_for_smoothing.smoothing_method) == 'sgolay':
131 print('sgolay smoothing') 131 print('sgolay smoothing')
132 132
133 msidata = smoothSignal(msidata, method="$method.methods_conditional.methods_for_smoothing.smoothing_method", window=$method.methods_conditional.window_smoothing, order = $method.methods_conditional.methods_for_smoothing.order_of_filters) 133 msidata = smoothSignal(msidata, method="$method.methods_conditional.methods_for_smoothing.smoothing_method", window=$method.methods_conditional.window_smoothing, order = $method.methods_conditional.methods_for_smoothing.order_of_filters)
134 #elif str($method.methods_conditional.methods_for_smoothing.smoothing_method) == 'ma': 134 #elif str($method.methods_conditional.methods_for_smoothing.smoothing_method) == 'ma':
135 print('sgolay smoothing') 135 print('moving average smoothing')
136 136
137 msidata = smoothSignal(msidata, method="$method.methods_conditional.methods_for_smoothing.smoothing_method", window=$method.methods_conditional.window_smoothing, coef = $method.methods_conditional.methods_for_smoothing.coefficients_ma_filter) 137 msidata = smoothSignal(msidata, method="$method.methods_conditional.methods_for_smoothing.smoothing_method", window=$method.methods_conditional.window_smoothing, coef = $method.methods_conditional.methods_for_smoothing.coefficients_ma_filter)
138 138
139 #end if 139 #end if
140 140
154 #elif str( $method.methods_conditional.preprocessing_method) == 'Peak_picking': 154 #elif str( $method.methods_conditional.preprocessing_method) == 'Peak_picking':
155 print('Peak_picking') 155 print('Peak_picking')
156 ## Peakpicking 156 ## Peakpicking
157 157
158 ## remove duplicated coordinates, otherwise peak picking will fail 158 ## remove duplicated coordinates, otherwise peak picking will fail
159 print(paste0(sum(duplicated(coord(msidata))), " coordinates were removed")) 159 print(paste0(sum(duplicated(coord(msidata))), " duplicated coordinates were removed"))
160 msidata <- msidata[,!duplicated(coord(msidata))] 160 msidata <- msidata[,!duplicated(coord(msidata))]
161 161
162 #if str( $method.methods_conditional.methods_for_picking.picking_method) == 'adaptive': 162 #if str( $method.methods_conditional.methods_for_picking.picking_method) == 'adaptive':
163 print('adaptive peakpicking') 163 print('adaptive peakpicking')
164 164
362 subsample_pixels = msidata[,msidata\$annotation == subsample] 362 subsample_pixels = msidata[,msidata\$annotation == subsample]
363 subsample_calc = apply(spectra(subsample_pixels)[],1,mean, na.rm=TRUE) 363 subsample_calc = apply(spectra(subsample_pixels)[],1,mean, na.rm=TRUE)
364 sample_matrix = cbind(sample_matrix, subsample_calc) 364 sample_matrix = cbind(sample_matrix, subsample_calc)
365 count = count+1 365 count = count+1
366 } 366 }
367 rownames(sample_matrix) = mz(msidata) 367
368 colnames(sample_matrix) = levels(msidata\$annotation) 368 sample_matrix_mean = cbind(mz(msidata),sample_matrix)
369 write.table(sample_matrix, file="$summarized_output_mean", quote = FALSE, row.names = TRUE, col.names=NA, sep = "\t") 369 sample_matrix_mean = rbind(c("mz", levels(msidata\$annotation)), sample_matrix_mean)
370 write.table(sample_matrix_mean, file="$summarized_mean", quote = FALSE, row.names = FALSE, col.names=FALSE, sep = "\t")
370 }else{ 371 }else{
371 full_sample_calc = as.data.frame(apply(spectra(msidata)[],1,mean, na.rm=TRUE)) 372 full_sample_calc_mean = as.data.frame(apply(spectra(msidata)[],1,mean, na.rm=TRUE))
372 rownames(full_sample_calc) = mz(msidata) 373 full_sample_calc_mean = cbind(mz(msidata),full_sample_calc_mean)
373 colnames(full_sample_calc) = "$infile.display_name" 374 full_sample_calc_mean = rbind(c("mz", "$infile.display_name"), full_sample_calc_mean)
374 write.table(full_sample_calc, file="$summarized_output_mean", quote = FALSE, row.names = TRUE, col.names=NA, sep = "\t") 375 write.table(full_sample_calc_mean, file="$summarized_mean", quote = FALSE, row.names = FALSE, col.names=FALSE, sep = "\t")
375 } 376 }
376 377
377 #end if 378 #end if
378 379
379 #if "median" in str($summary_type).split(","): 380 #if "median" in str($summary_type).split(","):
389 390
390 sample_matrix = cbind(sample_matrix, subsample_calc) 391 sample_matrix = cbind(sample_matrix, subsample_calc)
391 count = count+1 392 count = count+1
392 } 393 }
393 394
394 rownames(sample_matrix) = mz(msidata) 395 sample_matrix_median = cbind(mz(msidata),sample_matrix)
395 colnames(sample_matrix) = levels(msidata\$annotation) 396 sample_matrix_median = rbind(c("mz", levels(msidata\$annotation)), sample_matrix_median)
396 write.table(sample_matrix, file="$summarized_output_median", quote = FALSE, row.names = TRUE, col.names=NA, sep = "\t") 397 write.table(sample_matrix_median, file="$summarized_median", quote = FALSE, row.names = FALSE, col.names=FALSE, sep = "\t")
397 }else{ 398 }else{
398 full_sample_calc = as.data.frame(apply(spectra(msidata)[],1,median, na.rm=TRUE)) 399
399 rownames(full_sample_calc) = mz(msidata) 400 full_sample_calc_median = as.data.frame(apply(spectra(msidata)[],1,median, na.rm=TRUE))
400 colnames(full_sample_calc) = "$infile.display_name" 401 full_sample_calc_median = cbind(mz(msidata),full_sample_calc_median)
401 write.table(full_sample_calc, file="$summarized_output_median", quote = FALSE, row.names = TRUE, col.names=NA, sep = "\t") 402 full_sample_calc_median = rbind(c("mz", "$infile.display_name"), full_sample_calc_median)
403 write.table(full_sample_calc_median, file="$summarized_median", quote = FALSE, row.names = FALSE, col.names=FALSE, sep = "\t")
402 } 404 }
403 #end if 405 #end if
404 406
405 #if "sd" in str($summary_type).split(","): 407 #if "sd" in str($summary_type).split(","):
406 print("sd matrix") 408 print("sd matrix")
412 subsample_calc = apply(spectra(subsample_pixels)[],1,sd, na.rm=TRUE) 414 subsample_calc = apply(spectra(subsample_pixels)[],1,sd, na.rm=TRUE)
413 sample_matrix = cbind(sample_matrix, subsample_calc) 415 sample_matrix = cbind(sample_matrix, subsample_calc)
414 count = count+1 416 count = count+1
415 } 417 }
416 418
417 rownames(sample_matrix) = mz(msidata) 419 sample_matrix_sd = cbind(mz(msidata),sample_matrix)
418 colnames(sample_matrix) = levels(msidata\$annotation) 420 sample_matrix_sd = rbind(c("mz", levels(msidata\$annotation)), sample_matrix_sd)
419 write.table(sample_matrix, file="$summarized_output_sd", quote = FALSE, row.names = TRUE, col.names=NA, sep = "\t") 421 write.table(sample_matrix_sd, file="$summarized_sd", quote = FALSE, row.names = FALSE, col.names=FALSE, sep = "\t")
420 }else{ 422 }else{
421 423
422 full_sample_calc = as.data.frame(apply(spectra(msidata)[],1,sd, na.rm=TRUE)) 424 full_sample_calc_sd = as.data.frame(apply(spectra(msidata)[],1,sd, na.rm=TRUE))
423 rownames(full_sample_calc) = mz(msidata) 425 full_sample_calc_sd = cbind(mz(msidata),full_sample_calc_sd)
424 colnames(full_sample_calc) = "$infile.display_name" 426 full_sample_calc_sd = rbind(c("mz", "$infile.display_name"), full_sample_calc_sd)
425 write.table(full_sample_calc, file="$summarized_output_sd", quote = FALSE, row.names = TRUE, col.names=NA, sep = "\t") 427 write.table(full_sample_calc_sd, file="$summarized_sd", quote = FALSE, row.names = FALSE, col.names=FALSE, sep = "\t")
426 } 428 }
427 #end if 429 #end if
428 print(paste0("Number of NA in output file: ",sum(is.na(spectra(msidata)[])))) 430 print(paste0("Number of NA in output file: ",sum(is.na(spectra(msidata)[]))))
429 431
430 ## save as (.RData) 432 ## save as (.RData)
434 #if $output_matrix: 436 #if $output_matrix:
435 437
436 if (length(features(msidata))> 0 & length(pixels(msidata)) > 0){ 438 if (length(features(msidata))> 0 & length(pixels(msidata)) > 0){
437 spectramatrix = spectra(msidata)[] 439 spectramatrix = spectra(msidata)[]
438 spectramatrix = cbind(mz(msidata),spectramatrix) 440 spectramatrix = cbind(mz(msidata),spectramatrix)
439 newmatrix = rbind(c("mz | spectra", names(pixels(msidata))), spectramatrix) 441 newmatrix = rbind(c("mz", names(pixels(msidata))), spectramatrix)
440 write.table(newmatrix, file="$matrixasoutput", quote = FALSE, row.names = FALSE, col.names=FALSE, sep = "\t") 442 write.table(newmatrix, file="$intensity_matrix", quote = FALSE, row.names = FALSE, col.names=FALSE, sep = "\t")
441 }else{ 443 }else{
442 print("file has no features or pixels left") 444 print("file has no features or pixels left")
443 } 445 }
444 #end if 446 #end if
445 447
515 </param> 517 </param>
516 </when> 518 </when>
517 </conditional> 519 </conditional>
518 <repeat name="methods" title="Preprocessing" min="1" max="50"> 520 <repeat name="methods" title="Preprocessing" min="1" max="50">
519 <conditional name="methods_conditional"> 521 <conditional name="methods_conditional">
520 <param name="preprocessing_method" type="select" label="Select the preprocessing methods you want to apply"> 522 <param name="preprocessing_method" type="select" label="Preprocessing methods">
521 <option value="Normalization" selected="True">Normalization to TIC</option> 523 <option value="Normalization" selected="True">Normalization to TIC</option>
522 <option value="Baseline_reduction">Baseline Reduction</option> 524 <option value="Baseline_reduction">Baseline Reduction</option>
523 <option value="Smoothing">Peak smoothing</option> 525 <option value="Smoothing">Peak smoothing</option>
524 <option value="Peak_picking">Peak picking</option> 526 <option value="Peak_picking">Peak picking</option>
525 <option value="Peak_alignment">Peak alignment</option> 527 <option value="Peak_alignment">Peak alignment</option>
527 <option value="Data_reduction">Data reduction</option> 529 <option value="Data_reduction">Data reduction</option>
528 <option value="Transformation">Transformation</option> 530 <option value="Transformation">Transformation</option>
529 </param> 531 </param>
530 <when value="Normalization"/> 532 <when value="Normalization"/>
531 <when value="Baseline_reduction"> 533 <when value="Baseline_reduction">
532 <param name="blocks_baseline" type="integer" value="50" 534 <param name="blocks_baseline" type="integer" value="500"
533 label="Blocks"/> 535 label="Blocks"/>
536 <param name="spar_baseline" type="float" value="1.0" label="Spar value"
537 help = "Smoothing parameter for the spline smoothing
538 applied to the spectrum in order to decide the cutoffs
539 for throwing away false noise spikes that might occur inside peaks"/>
534 </when> 540 </when>
535 <when value="Smoothing"> 541 <when value="Smoothing">
536 <conditional name="methods_for_smoothing"> 542 <conditional name="methods_for_smoothing">
537 <param name="smoothing_method" type="select" label="Smoothing method"> 543 <param name="smoothing_method" type="select" label="Smoothing method">
538 <option value="gaussian" selected="True">gaussian</option> 544 <option value="gaussian" selected="True">gaussian</option>
539 <option value="sgolay">Savitsky-Golay</option> 545 <option value="sgolay">Savitsky-Golay</option>
540 <option value="ma">moving average</option> 546 <option value="ma">moving average</option>
541 </param> 547 </param>
542 <when value="gaussian"> 548 <when value="gaussian">
543 <param name="sd_gaussian" type="float" value="4" 549 <param name="sd_gaussian" type="float" value="2"
544 label="The standard deviation for the Gaussian kernel (window/sd)"/> 550 label="The standard deviation for the Gaussian kernel (window/sd)"/>
545 </when> 551 </when>
546 <when value="sgolay"> 552 <when value="sgolay">
547 <param name="order_of_filters" type="integer" value="3" 553 <param name="order_of_filters" type="integer" value="3"
548 label="The order of the smoothing filter"/> 554 label="The order of the smoothing filter, must be smaller than window size"/>
549 </when> 555 </when>
550 <when value="ma"> 556 <when value="ma">
551 <param name="coefficients_ma_filter" type="integer" value="1" 557 <param name="coefficients_ma_filter" type="float" value="1"
552 label="The coefficients for the moving average filter"/> 558 label="The coefficients for the moving average filter"/>
553 </when> 559 </when>
554 </conditional> 560 </conditional>
555 <param name="window_smoothing" type="integer" value="9" 561 <param name="window_smoothing" type="float" value="8"
556 label="Window size"/> 562 label="Window size"/>
557 </when> 563 </when>
558 <when value="Peak_picking"> 564 <when value="Peak_picking">
559 <param name="SNR_picking_method" type="integer" value="3" 565 <param name="SNR_picking_method" type="integer" value="6"
560 label="Signal to noise ratio" 566 label="Signal to noise ratio"
561 help="The minimal signal to noise ratio for peaks to be considered as a valid peak."/> 567 help="The minimal signal to noise ratio for peaks to be considered as a valid peak."/>
562 <param name="blocks_picking" type="integer" value="100" label = "Number of blocks" 568 <param name="blocks_picking" type="integer" value="100" label = "Number of blocks"
563 help="Number of blocks in which to divide mass spectrum to calculate noise"/> 569 help="Number of blocks in which to divide mass spectrum to calculate noise"/>
564 <param name="window_picking" type="integer" value="5" label= "Window size" help="Window width for seeking local maxima"/> 570 <param name="window_picking" type="float" value="5" label= "Window size" help="Window width for seeking local maxima"/>
565 <conditional name="methods_for_picking"> 571 <conditional name="methods_for_picking">
566 <param name="picking_method" type="select" label="Peak picking method" help="only simple works for processed imzML files"> 572 <param name="picking_method" type="select" label="Peak picking method" help="only simple works for processed imzML files">
567 <option value="adaptive" selected="True">adaptive</option> 573 <option value="adaptive" selected="True">adaptive</option>
568 <option value="limpic">limpic</option> 574 <option value="limpic">limpic</option>
569 <option value="simple">simple</option> 575 <option value="simple">simple</option>
587 <param name="alignment_method" type="select" label="Alignment method"> 593 <param name="alignment_method" type="select" label="Alignment method">
588 <option value="diff" selected="True">diff</option> 594 <option value="diff" selected="True">diff</option>
589 <option value="DP">DP</option> 595 <option value="DP">DP</option>
590 </param> 596 </param>
591 <when value="diff"> 597 <when value="diff">
592 <param name="value_diffalignment" type="integer" value="200" 598 <param name="value_diffalignment" type="float" value="200"
593 label="diff.max" help="Peaks that differ less than this value will be aligned together"/> 599 label="diff.max" help="Peaks that differ less than this value will be aligned together"/>
594 <param name="units_diffalignment" type="select" display = "radio" optional = "False" 600 <param name="units_diffalignment" type="select" display = "radio" optional = "False"
595 label="units"> 601 label="units">
596 <option value="ppm" selected="True">ppm</option> 602 <option value="ppm" selected="True">ppm</option>
597 <option value="Da">m/z</option> 603 <option value="Da">m/z</option>
598 </param> 604 </param>
599 </when> 605 </when>
600 <when value="DP"> 606 <when value="DP">
601 <param name="gap_DPalignment" type="integer" value="0" 607 <param name="gap_DPalignment" type="float" value="0"
602 label="Gap" help="The gap penalty for the dynamic programming sequence alignment"/> 608 label="Gap" help="The gap penalty for the dynamic programming sequence alignment"/>
603 </when> 609 </when>
604 </conditional> 610 </conditional>
605 <conditional name="align_ref_type"> 611 <conditional name="align_ref_type">
606 <param name="align_reference_datatype" type="select" label="Choose reference"> 612 <param name="align_reference_datatype" type="select" label="Choose reference">
671 </when> 677 </when>
672 </conditional> 678 </conditional>
673 </when> 679 </when>
674 <when value="Transformation"> 680 <when value="Transformation">
675 <conditional name="transf_conditional"> 681 <conditional name="transf_conditional">
676 <param name="trans_type" type="select" label="Choose which intensity transformation you want to apply" help="logarithm base 2 (log2) or squareroot (sqrt)"> 682 <param name="trans_type" type="select" label="Intensity transformations" help="logarithm base 2 (log2) or squareroot (sqrt)">
677 <option value="log2" selected="True">log2</option> 683 <option value="log2" selected="True">log2</option>
678 <option value="sqrt">sqrt</option> 684 <option value="sqrt">sqrt</option>
679 </param> 685 </param>
680 <when value="log2"/> 686 <when value="log2"/>
681 <when value="sqrt"/> 687 <when value="sqrt"/>
706 <param name="output_matrix" type="boolean" label="Intensity matrix output"/> 712 <param name="output_matrix" type="boolean" label="Intensity matrix output"/>
707 </inputs> 713 </inputs>
708 <outputs> 714 <outputs>
709 <data format="rdata" name="msidata_preprocessed" label="$infile.display_name preprocessed"/> 715 <data format="rdata" name="msidata_preprocessed" label="$infile.display_name preprocessed"/>
710 <data format="pdf" name="QC_overview" from_work_dir="Preprocessing.pdf" label = "$infile.display_name preprocessed_QC"/> 716 <data format="pdf" name="QC_overview" from_work_dir="Preprocessing.pdf" label = "$infile.display_name preprocessed_QC"/>
711 <data format="tabular" name="summarized_output_mean" label="$infile.display_name mean_matrix"> 717 <data format="tabular" name="summarized_mean" label="$infile.display_name preprocessed_mean">
712 <filter>summary_type and "mean" in summary_type</filter> 718 <filter>summary_type and "mean" in summary_type</filter>
713 </data> 719 </data>
714 <data format="tabular" name="summarized_output_median" label="$infile.display_name median_matrix"> 720 <data format="tabular" name="summarized_median" label="$infile.display_name preprocessed_median">
715 <filter>summary_type and "median" in summary_type</filter> 721 <filter>summary_type and "median" in summary_type</filter>
716 </data> 722 </data>
717 <data format="tabular" name="summarized_output_sd" label="$infile.display_name sd_matrix"> 723 <data format="tabular" name="summarized_sd" label="$infile.display_name preprocessed_sd">
718 <filter>summary_type and "sd" in summary_type</filter> 724 <filter>summary_type and "sd" in summary_type</filter>
719 </data> 725 </data>
720 <data format="tabular" name="matrixasoutput" label="$infile.display_name preprocessed_matrix"> 726 <data format="tabular" name="intensity_matrix" label="$infile.display_name preprocessed_matrix">
721 <filter>output_matrix</filter> 727 <filter>output_matrix</filter>
722 </data> 728 </data>
723 </outputs> 729 </outputs>
724 <tests> 730 <tests>
725 <test expect_num_outputs="3"> 731 <test expect_num_outputs="3">
735 <repeat name="methods"> 741 <repeat name="methods">
736 <conditional name="methods_conditional"> 742 <conditional name="methods_conditional">
737 <param name="preprocessing_method" value="Smoothing"/> 743 <param name="preprocessing_method" value="Smoothing"/>
738 <conditional name="methods_for_smoothing"> 744 <conditional name="methods_for_smoothing">
739 <param name="smoothing_method" value="gaussian"/> 745 <param name="smoothing_method" value="gaussian"/>
740 </conditional> 746 <param name="sd_gaussian" value="4"/>
747 </conditional>
748 <param name="window_smoothing" value="9"/>
741 </conditional> 749 </conditional>
742 </repeat> 750 </repeat>
743 <repeat name="methods"> 751 <repeat name="methods">
744 <conditional name="methods_conditional"> 752 <conditional name="methods_conditional">
745 <param name="preprocessing_method" value="Peak_picking"/> 753 <param name="preprocessing_method" value="Peak_picking"/>
746 <conditional name="methods_for_picking"> 754 <conditional name="methods_for_picking">
747 <param name="picking_method" value="adaptive"/> 755 <param name="picking_method" value="adaptive"/>
748 </conditional> 756 </conditional>
749 <param name="blocks_picking" value="3"/> 757 <param name="blocks_picking" value="3"/>
750 <param name="window_picking" value="3"/> 758 <param name="window_picking" value="3"/>
759 <param name="SNR_picking_method" value="3"/>
751 </conditional> 760 </conditional>
752 </repeat> 761 </repeat>
753 <repeat name="methods"> 762 <repeat name="methods">
754 <conditional name="methods_conditional"> 763 <conditional name="methods_conditional">
755 <param name="preprocessing_method" value="Peak_alignment"/> 764 <param name="preprocessing_method" value="Peak_alignment"/>
775 <conditional name="tabular_annotation"> 784 <conditional name="tabular_annotation">
776 <param name="load_annotation" value="no_annotation"/> 785 <param name="load_annotation" value="no_annotation"/>
777 </conditional> 786 </conditional>
778 <param name="output_matrix" value="True"/> 787 <param name="output_matrix" value="True"/>
779 <output name="msidata_preprocessed" file="preprocessing_results1.RData" compare="sim_size"/> 788 <output name="msidata_preprocessed" file="preprocessing_results1.RData" compare="sim_size"/>
780 <output name="matrixasoutput" file="preprocessing_results1.txt"/> 789 <output name="intensity_matrix" file="preprocessing_results1.txt"/>
781 <output name="QC_overview" file="preprocessing_results1.pdf" compare="sim_size"/> 790 <output name="QC_overview" file="preprocessing_results1.pdf" compare="sim_size"/>
782 </test> 791 </test>
783 <test expect_num_outputs="4"> 792 <test expect_num_outputs="4">
784 <param name="infile" value="123_combined.RData" ftype="rdata"/> 793 <param name="infile" value="123_combined.RData" ftype="rdata"/>
785 <repeat name="methods"> 794 <repeat name="methods">
809 <param name="column_names" value="3"/> 818 <param name="column_names" value="3"/>
810 <param name="tabular_header" value="FALSE"/> 819 <param name="tabular_header" value="FALSE"/>
811 </conditional> 820 </conditional>
812 <param name="summary_type" value="median,sd"/> 821 <param name="summary_type" value="median,sd"/>
813 <output name="msidata_preprocessed" file="preprocessing_results2.RData" compare="sim_size"/> 822 <output name="msidata_preprocessed" file="preprocessing_results2.RData" compare="sim_size"/>
814 <output name="summarized_output_median" file="preprocessing_median2.txt" lines_diff="2"/> 823 <output name="summarized_median" file="preprocessing_median2.txt" lines_diff="2"/>
815 <output name="summarized_output_sd" file="preprocessing_sd2.txt" lines_diff="2"/> 824 <output name="summarized_sd" file="preprocessing_sd2.txt" lines_diff="2"/>
816 <output name="QC_overview" file="preprocessing_results2.pdf" compare="sim_size"/> 825 <output name="QC_overview" file="preprocessing_results2.pdf" compare="sim_size"/>
817 </test> 826 </test>
818 <test expect_num_outputs="3"> 827 <test expect_num_outputs="3">
819 <param name="infile" value="" ftype="analyze75"> 828 <param name="infile" value="" ftype="analyze75">
820 <composite_data value="Analyze75.hdr"/> 829 <composite_data value="Analyze75.hdr"/>
829 <repeat name="methods"> 838 <repeat name="methods">
830 <conditional name="methods_conditional"> 839 <conditional name="methods_conditional">
831 <param name="preprocessing_method" value="Peak_picking"/> 840 <param name="preprocessing_method" value="Peak_picking"/>
832 <param name="blocks_picking" value="100"/> 841 <param name="blocks_picking" value="100"/>
833 <param name="window_picking" value="5"/> 842 <param name="window_picking" value="5"/>
843 <param name="SNR_picking_method" value="3"/>
834 <param name="picking_method" value="limpic"/> 844 <param name="picking_method" value="limpic"/>
835 </conditional> 845 </conditional>
836 </repeat> 846 </repeat>
837 <repeat name="methods"> 847 <repeat name="methods">
838 <conditional name="methods_conditional"> 848 <conditional name="methods_conditional">
846 <conditional name="tabular_annotation"> 856 <conditional name="tabular_annotation">
847 <param name="load_annotation" value="no_annotation"/> 857 <param name="load_annotation" value="no_annotation"/>
848 </conditional> 858 </conditional>
849 <output name="msidata_preprocessed" file="preprocessing_results3.RData" compare="sim_size"/> 859 <output name="msidata_preprocessed" file="preprocessing_results3.RData" compare="sim_size"/>
850 <output name="QC_overview" file="preprocessing_results3.pdf" compare="sim_size"/> 860 <output name="QC_overview" file="preprocessing_results3.pdf" compare="sim_size"/>
851 <output name="summarized_output_mean" file="preprocessing_mean3.txt" lines_diff="2"/> 861 <output name="summarized_mean" file="preprocessing_mean3.txt" lines_diff="2"/>
852 </test> 862 </test>
853 <test expect_num_outputs="3"> 863 <test expect_num_outputs="3">
854 <param name="infile" value="" ftype="analyze75"> 864 <param name="infile" value="" ftype="analyze75">
855 <composite_data value="Analyze75.hdr"/> 865 <composite_data value="Analyze75.hdr"/>
856 <composite_data value="Analyze75.img"/> 866 <composite_data value="Analyze75.img"/>
870 <conditional name="tabular_annotation"> 880 <conditional name="tabular_annotation">
871 <param name="load_annotation" value="no_annotation"/> 881 <param name="load_annotation" value="no_annotation"/>
872 </conditional> 882 </conditional>
873 <param name="output_matrix" value="True"/> 883 <param name="output_matrix" value="True"/>
874 <output name="msidata_preprocessed" file="preprocessing_results4.RData" compare="sim_size"/> 884 <output name="msidata_preprocessed" file="preprocessing_results4.RData" compare="sim_size"/>
875 <output name="matrixasoutput" file="preprocessing_results4.txt"/> 885 <output name="intensity_matrix" file="preprocessing_results4.txt"/>
876 <output name="QC_overview" file="preprocessing_results4.pdf" compare="sim_size"/> 886 <output name="QC_overview" file="preprocessing_results4.pdf" compare="sim_size"/>
877 </test> 887 </test>
878 <test expect_num_outputs="2"> 888 <test expect_num_outputs="2">
879 <param name="infile" value="" ftype="imzml"> 889 <param name="infile" value="" ftype="imzml">
880 <composite_data value="Example_Continuous.imzML"/> 890 <composite_data value="Example_Continuous.imzML"/>