Mercurial > repos > eschen42 > w4mclassfilter
diff w4mclassfilter.xml @ 10:73656b244cfe draft
planemo upload for repository https://github.com/HegemanLab/w4mclassfilter_galaxy_wrapper/tree/master commit 87d951922e9b6ab518c55bf376d31fbb3ec2df8c
author | eschen42 |
---|---|
date | Mon, 15 Jan 2018 13:30:58 -0500 |
parents | de314813b7fe |
children | 518cc205f289 |
line wrap: on
line diff
--- a/w4mclassfilter.xml Mon Jan 15 10:45:25 2018 -0500 +++ b/w4mclassfilter.xml Mon Jan 15 13:30:58 2018 -0500 @@ -23,7 +23,7 @@ wildcards '$wildcards' classnameColumn '$classnameColumn' samplenameColumn '$samplenameColumn' - variable_range_filter '$variable_range_filter' + variable_range_filter '$variableRangeFilter' dataMatrix_out '$dataMatrix_out' sampleMetadata_out '$sampleMetadata_out' variableMetadata_out '$variableMetadata_out' @@ -69,27 +69,13 @@ <option value="FALSE" selected="true">filter-out</option> </param> - <param name="variable_range_filter" label="Variable range-filters" type="text" value = "" help="comma-separated filters specified as 'variableMetadataColumnName:min:max'; default is no filters. (See help below.)"> + <param name="variableRangeFilter" label="Variable range-filters" type="text" value = "" help="comma-separated filters, each specified as 'variableMetadataColumnName:min:max'; default is no filters. (See help below.)"> <sanitizer> <valid initial="string.letters"> <add preset="string.digits"/> - <add value="$" /> <!-- dollar, dollar-sign --> - <add value="(" /> <!-- left-paren --> - <add value=")" /> <!-- right-paren --> - <add value="*" /> <!-- splat, asterisk --> - <add value="+" /> <!-- plus --> <add value="," /> <!-- comma --> - <add value="." /> <!-- dot, period --> <add value=":" /> <!-- colon --> - <add value=";" /> <!-- semi, semicolon --> - <add value="?" /> <!-- what, question mark --> - <add value="[" /> <!-- l-squib, left-squre-bracket --> - <add value="\" /> <!-- whack, backslash --> - <add value="]" /> <!-- r-squib, right-squre-bracket --> - <add value="^" /> <!-- hat, caret --> - <add value="{" /> <!-- l-cube, left-curly-bracket --> - <add value="|" /> <!-- pipe --> - <add value="}" /> <!-- r-cube, right-curly-bracket --> + <add value="." /> <!-- dot, period --> </valid> </sanitizer> </param> @@ -106,6 +92,60 @@ <param name="dataMatrix_in" value="input_dataMatrix.tsv"/> <param name="sampleMetadata_in" value="input_sampleMetadata.tsv"/> <param name="variableMetadata_in" value="input_variableMetadata.tsv"/> + <param name="classnameColumn" value="class"/> + <param name="sampleclassNames" value=""/> + <param name="wildcards" value="FALSE"/> + <param name="samplenameColumn" value="sampleMetadata"/> + <param name="inclusive" value="filter-out"/> + <param name="variableRangeFilter" value="FEATMAX:2e6:,mz:200:,rt::800"/> + <output name="sampleMetadata_out"> + <assert_contents> + <has_text text="HU_028" /> + <has_text text="HU_051" /> + <has_text text="HU_060" /> + <has_text text="HU_110" /> + <has_text text="HU_149" /> + <has_text text="HU_152" /> + <has_text text="HU_175" /> + <has_text text="HU_178" /> + <has_text text="HU_185" /> + <not_has_text text="HU_204" /> + <has_text text="HU_208" /> + <has_text text="HU_017" /> + <has_text text="HU_034" /> + <has_text text="HU_078" /> + <has_text text="HU_091" /> + <has_text text="HU_093" /> + <has_text text="HU_099" /> + <has_text text="HU_130" /> + <has_text text="HU_134" /> + <has_text text="HU_138" /> + </assert_contents> + </output> + <output name="variableMetadata_out"> + <assert_contents> + <has_text text="HMDB00191" /> + <has_text text="HMDB00208" /> + <not_has_text text="HMDB00251" /> + <not_has_text text="HMDB00299" /> + <not_has_text text="HMDB00512" /> + <not_has_text text="HMDB00518" /> + <not_has_text text="HMDB00715" /> + <not_has_text text="HMDB00822" /> + <has_text text="HMDB01032" /> + <has_text text="HMDB01101.1" /> + <not_has_text text="HMDB03193" /> + <not_has_text text="HMDB04824" /> + <not_has_text text="HMDB10348" /> + <has_text text="HMDB13189" /> + <not_has_text text="HMDB59717" /> + </assert_contents> + </output> + </test> + <test> + <param name="dataMatrix_in" value="input_dataMatrix.tsv"/> + <param name="sampleMetadata_in" value="input_sampleMetadata.tsv"/> + <param name="variableMetadata_in" value="input_variableMetadata.tsv"/> <param name="classnameColumn" value="gender"/> <param name="sampleclassNames" value="M"/> <param name="samplenameColumn" value="sampleMetadata"/> @@ -548,7 +588,7 @@ Variable-range filters ---------------------- -An array of range-specification strings may be supplied in the `variable_range_filter` +An array of range-specification strings may be supplied in the `variableRangeFilter` argument. If supplied, only features having numerical values in the specified column of `variableMetadata` that fall within the specified ranges will be retained in the output. Each range is a string of three colon-separated values (e.g., "mz:200:800") in the @@ -577,15 +617,15 @@ Input Files ----------- -+--------------------------------------------------------------------------------------------------------------+ -| Input File URL | -+==============================================================================================================+ -| https://raw.githubusercontent.com/HegemanLab/w4mclassfilter/master/tests/testthat/input_dataMatrix.tsv | -+--------------------------------------------------------------------------------------------------------------+ -| https://raw.githubusercontent.com/HegemanLab/w4mclassfilter/master/tests/testthat/input_sampleMetadata.tsv | -+--------------------------------------------------------------------------------------------------------------+ -| https://raw.githubusercontent.com/HegemanLab/w4mclassfilter/master/tests/testthat/input_variableMetadata.tsv | -+--------------------------------------------------------------------------------------------------------------+ ++------------------------------------------------------------------------------------------------------------------------+ +| Input File URL | ++========================================================================================================================+ +| https://raw.githubusercontent.com/HegemanLab/w4mclassfilter_galaxy_wrapper/master/test-data/input_dataMatrix.tsv | ++------------------------------------------------------------------------------------------------------------------------+ +| https://raw.githubusercontent.com/HegemanLab/w4mclassfilter_galaxy_wrapper/master/test-data/input_sampleMetadata.tsv | ++------------------------------------------------------------------------------------------------------------------------+ +| https://raw.githubusercontent.com/HegemanLab/w4mclassfilter_galaxy_wrapper/master/test-data/input_variableMetadata.tsv | ++------------------------------------------------------------------------------------------------------------------------+ .. class:: infomark @@ -611,15 +651,15 @@ **Expected outputs** -+-------------------+-----------------------------------------------------------------------------------------------------------------+ -| Expected Output | Download from URL | -+===================+=================================================================================================================+ -| Data matrix | https://raw.githubusercontent.com/HegemanLab/w4mclassfilter/master/tests/testthat/expected_dataMatrix.tsv | -+-------------------+-----------------------------------------------------------------------------------------------------------------+ -| Sample metadata | https://raw.githubusercontent.com/HegemanLab/w4mclassfilter/master/tests/testthat/expected_sampleMetadata.tsv | -+-------------------+-----------------------------------------------------------------------------------------------------------------+ -| Variable metadata | https://raw.githubusercontent.com/HegemanLab/w4mclassfilter/master/tests/testthat/expected_variableMetadata.tsv | -+-------------------+-----------------------------------------------------------------------------------------------------------------+ ++-------------------+---------------------------------------------------------------------------------------------------------------------------+ +| Expected Output | Download from URL | ++===================+===========================================================================================================================+ +| Data matrix | https://raw.githubusercontent.com/HegemanLab/w4mclassfilter_galaxy_wrapper/master/test-data/expected_dataMatrix.tsv | ++-------------------+---------------------------------------------------------------------------------------------------------------------------+ +| Sample metadata | https://raw.githubusercontent.com/HegemanLab/w4mclassfilter_galaxy_wrapper/master/test-data/expected_sampleMetadata.tsv | ++-------------------+---------------------------------------------------------------------------------------------------------------------------+ +| Variable metadata | https://raw.githubusercontent.com/HegemanLab/w4mclassfilter_galaxy_wrapper/master/test-data/expected_variableMetadata.tsv | ++-------------------+---------------------------------------------------------------------------------------------------------------------------+ .. class:: infomark @@ -627,7 +667,8 @@ Running With Range-Filtering ---------------------------- -This example retains only samples whose 'gender' attribute is 'M'. +This example retains only features whose mz is greater than 200, whose rt is less than 800, and whose maximum intensity across all samples is 2,000,000. +This example retains all samples (except those having zero variance for all feature), although it would be possible to filter on samples as well. **Input parameters** @@ -647,16 +688,15 @@ **Expected outputs** -+-------------------+--------------------------------------------------------------------------------------------------------------------+ -| Expected Output | Download from URL | -+===================+====================================================================================================================+ -| Data matrix | https://raw.githubusercontent.com/HegemanLab/w4mclassfilter/master/tests/testthat/rangefilter_dataMatrix.tsv | -+-------------------+--------------------------------------------------------------------------------------------------------------------+ -| Sample metadata | https://raw.githubusercontent.com/HegemanLab/w4mclassfilter/master/tests/testthat/rangefilter_sampleMetadata.tsv | -+-------------------+--------------------------------------------------------------------------------------------------------------------+ -| Variable metadata | https://raw.githubusercontent.com/HegemanLab/w4mclassfilter/master/tests/testthat/rangefilter_variableMetadata.tsv | -+-------------------+--------------------------------------------------------------------------------------------------------------------+ - ++-------------------+------------------------------------------------------------------------------------------------------------------------------+ +| Expected Output | Download from URL | ++===================+==============================================================================================================================+ +| Data matrix | https://raw.githubusercontent.com/HegemanLab/w4mclassfilter_galaxy_wrapper/master/test-data/rangefilter_dataMatrix.tsv | ++-------------------+------------------------------------------------------------------------------------------------------------------------------+ +| Sample metadata | https://raw.githubusercontent.com/HegemanLab/w4mclassfilter_galaxy_wrapper/master/test-data/rangefilter_sampleMetadata.tsv | ++-------------------+------------------------------------------------------------------------------------------------------------------------------+ +| Variable metadata | https://raw.githubusercontent.com/HegemanLab/w4mclassfilter_galaxy_wrapper/master/test-data/rangefilter_variableMetadata.tsv | ++-------------------+------------------------------------------------------------------------------------------------------------------------------+ -----------------------------------------------------------------------------