Previous changeset 0:367b1ed91207 (2016-06-07) Next changeset 2:e3cbd2287f63 (2020-01-24) |
Commit message:
"planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/biom_format commit f726b353973996a1f59e2044e80ef7c9b75833ab" |
modified:
biom_add_metadata.xml macros.xml test-data/input_abundance_1.tabular |
added:
test-data/biom_from_uc.biom test-data/normalized_presence_absence_observations.biom test-data/normalized_relative_abund_samples.biom test-data/observation_subsetting test-data/sample_subsetting test-data/subset_observations.biom test-data/subset_samples.biom test-data/summarize test-data/summarize_qualitative_observations test-data/uc_table.uc |
b |
diff -r 367b1ed91207 -r 28ad7ac9c193 biom_add_metadata.xml --- a/biom_add_metadata.xml Tue Jun 07 17:25:44 2016 -0400 +++ b/biom_add_metadata.xml Wed Sep 11 12:41:29 2019 -0400 |
[ |
@@ -1,75 +1,68 @@ -<tool id="biom_add_metadata" name="BIOM metadata" version="@VERSION@.0"> - <description>add-metadata</description> +<tool id="biom_add_metadata" name="Add metadata" version="@VERSION@.1"> + <description>to a BIOM table</description> <macros> <import>macros.xml</import> </macros> <expand macro="requirements" /> - <expand macro="stdio" /> <expand macro="version_command" /> - <command> + <command detect_errors="exit_code"> <![CDATA[ biom add-metadata - -i "${input_table}" - -o "${output_table}" - #if $input_sample_metadata: - --sample-metadata-fp "${input_sample_metadata}" + --input-fp '$input_fp' + --output-fp '$output_fp' + #if $sample_metadata_fp + --sample-metadata-fp '$sample_metadata_fp' #end if - #if $input_observation_metadata: - --observation-metadata-fp "${input_observation_metadata}" + #if $observation_metadata_fp + --observation-metadata-fp '$observation_metadata_fp' #end if - #if $sc_separated: - --sc-separated "${sc_separated}" + #if $sc_separated + --sc-separated '$sc_separated' #end if - #if $sc_pipe_separated: - --sc-pipe-separated "${sc_pipe_separated}" + #if $sc_pipe_separated + --sc-pipe-separated '$sc_pipe_separated' #end if - #if $int_fields: - --int-fields "${int_fields}" + #if $int_fields + --int-fields '$int_fields' #end if - #if $float_fields: - --float-fields "${float_fields}" + #if $float_fields + --float-fields '$float_fields' #end if - #if $sample_header: - --sample-header "${sample_header}" + #if $sample_header + --sample-header '$sample_header' #end if - #if $observation_header: - --observation-header "${observation_header}" + #if $observation_header + --observation-header '$observation_header' #end if - ${output_as_json} + $output_as_json ]]> </command> <inputs> - <param name="input_table" type="data" format="biom1" label="BIOM File" argument="--input-fp"/> - <param name="input_sample_metadata" type="data" format="tabular" optional="True" label="Sample Metadata Tabular File" argument="--sample-metadata-fp PATH"/> - <param name="input_observation_metadata" type="data" format="tabular" optional="True" label="Observation Metadata Tabular File" argument="--observation-metadata-fp"/> - <param name="sc_separated" type="text" value="" label="Comma-separated list of the metadata fields to split on semicolons" argument="--sc-separated"/> - <param name="sc_pipe_separated" type="text" value="" label="Comma-separated list of the metadata fields to split on semicolons and pipes (|)" argument="--sc-pipe-separated"/> - <param name="int_fields" type="text" value="" label="Comma-separated list of the metadata fields to cast to integers" argument="--int-fields"/> - <param name="float_fields" type="text" value="" label="Comma-separated list of the metadata fields to cast to floating point numbers" argument="--float-fields"/> - <param name="sample_header" type="text" value="" label="Comma-separated list of the sample metadata field names" argument="--sample-header"/> - <param name="observation_header" type="text" value="" label="Comma-separated list of the observation metadata field names" argument="--observation-header"/> - <param name="output_as_json" type="boolean" checked="True" truevalue="--output-as-json" falsevalue="" label="Write the output file in JSON format (biom1)" argument="--output-as-json"/> + <param name="input_fp" argument="--input-fp" type="data" format="biom1" label="BIOM File"/> + <param name="sample_metadata_fp" argument="--sample-metadata-fp" type="data" format="tabular" optional="True" label="Sample Metadata Tabular File" /> + <param name="observation_metadata_fp" argument="--observation-metadata-fp" type="data" format="tabular" optional="True" label="Observation Metadata Tabular File"/> + <param name="sc_separated" argument="--sc-separated" type="text" value="" label="Comma-separated list of the metadata fields to split on semicolons" /> + <param name="sc_pipe_separated" argument="--sc-pipe-separated" type="text" value="" label="Comma-separated list of the metadata fields to split on semicolons and pipes (|)"/> + <param name="int_fields" argument="--int-fields" type="text" value="" label="Comma-separated list of the metadata fields to cast to integers" /> + <param name="float_fields" argument="--float-fields" type="text" value="" label="Comma-separated list of the metadata fields to cast to floating point numbers" /> + <param name="sample_header" argument="--sample-header" type="text" value="" label="Comma-separated list of the sample metadata field names" /> + <param name="observation_header" argument="--observation-header" type="text" value="" label="Comma-separated list of the observation metadata field names" /> + <param name="output_as_json" argument="--output-as-json" type="boolean" checked="True" truevalue="--output-as-json" falsevalue="" label="Write the output file in JSON format (biom1)" /> </inputs> <outputs> - <data format="biom1" name="output_table"> + <data format="biom1" name="output_fp"> <change_format> - <when input="${str( $output_as_json )}" value="" format="biom2" /> + <when input="${str( $output_as_json )}" value="" format="h5" /> </change_format> </data> </outputs> <tests> <test> - <param name="input_table" value="input_abundance_1.biom1" ftype="biom1"/> - <param name="input_observation_metadata" value="input_taxonomy_1.tabular" ftype="tabular"/> + <param name="input_fp" value="input_abundance_1.biom1" ftype="biom1"/> + <param name="observation_metadata_fp" value="input_taxonomy_1.tabular" ftype="tabular"/> <param name="sc_separated" value="taxonomy"/> - <param name="input_sample_metadata"/> - <param name="sc_pipe_separated" value=""/> - <param name="int_fields" value=""/> - <param name="float_fields" value=""/> - <param name="sample_header" value=""/> - <param name="observation_header" value=""/> - <param name="output_as_json" value="True"/> - <output name="output_table" file="output_taxonomy_1.biom1.re" ftype="biom1" compare="re_match"/> + <param name="output_as_json" value="--output-as-json"/> + <output name="output_fp" file="output_taxonomy_1.biom1.re" ftype="biom1" compare="re_match"/> </test> </tests> <help><![CDATA[ @@ -127,8 +120,6 @@ provided here. --output-as-json Write the output file in JSON format. --help Show this message and exit. - - ]]></help> <expand macro="citations" /> </tool> |
b |
diff -r 367b1ed91207 -r 28ad7ac9c193 macros.xml --- a/macros.xml Tue Jun 07 17:25:44 2016 -0400 +++ b/macros.xml Wed Sep 11 12:41:29 2019 -0400 |
b |
@@ -6,12 +6,6 @@ </requirements> </xml> <token name="@VERSION@">2.1.5</token> - <xml name="stdio"> - <stdio> - <exit_code range="1:" /> - <exit_code range=":-1" /> - </stdio> - </xml> <xml name="version_command"> <version_command>biom --version</version_command> </xml> |
b |
diff -r 367b1ed91207 -r 28ad7ac9c193 test-data/biom_from_uc.biom |
b |
Binary file test-data/biom_from_uc.biom has changed |
b |
diff -r 367b1ed91207 -r 28ad7ac9c193 test-data/input_abundance_1.tabular --- a/test-data/input_abundance_1.tabular Tue Jun 07 17:25:44 2016 -0400 +++ b/test-data/input_abundance_1.tabular Wed Sep 11 12:41:29 2019 -0400 |
b |
@@ -1,4 +1,4 @@ -#ID SAMPLE_1 SAMPLE_2 +ID SAMPLE_1 SAMPLE_2 2 0 0 3 160 242 4 0 0 |
b |
diff -r 367b1ed91207 -r 28ad7ac9c193 test-data/normalized_presence_absence_observations.biom |
b |
Binary file test-data/normalized_presence_absence_observations.biom has changed |
b |
diff -r 367b1ed91207 -r 28ad7ac9c193 test-data/normalized_relative_abund_samples.biom |
b |
Binary file test-data/normalized_relative_abund_samples.biom has changed |
b |
diff -r 367b1ed91207 -r 28ad7ac9c193 test-data/observation_subsetting --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/observation_subsetting Wed Sep 11 12:41:29 2019 -0400 |
b |
@@ -0,0 +1,2 @@ +11 +23 \ No newline at end of file |
b |
diff -r 367b1ed91207 -r 28ad7ac9c193 test-data/sample_subsetting --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/sample_subsetting Wed Sep 11 12:41:29 2019 -0400 |
b |
@@ -0,0 +1,1 @@ +SAMPLE_1 \ No newline at end of file |
b |
diff -r 367b1ed91207 -r 28ad7ac9c193 test-data/subset_observations.biom --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/subset_observations.biom Wed Sep 11 12:41:29 2019 -0400 |
[ |
@@ -0,0 +1,23 @@ +{ +"id": "None" +, +"format": "Biological Observation Matrix 1.0.0" +, +"format_url": "http://biom-format.org" +, +"type": "OTU table" +, +"generated_by": "BIOM-Format 2.1.5" +, +"date": "2016-05-26T17:20:40.263567" +, +"matrix_type": "sparse" +, +"matrix_element_type": "float" +, +"data": [[0,0,3.0],[0,1,4.0],[1,0,1.0]], "shape": [2, 2] +, +"rows": [{"id": "11", "metadata": null}, {"id": "23", "metadata": null}] +, +"columns": [{"id": "SAMPLE_1", "metadata": null},{"id": "SAMPLE_2", "metadata": null}] +} |
b |
diff -r 367b1ed91207 -r 28ad7ac9c193 test-data/subset_samples.biom --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/subset_samples.biom Wed Sep 11 12:41:29 2019 -0400 |
[ |
@@ -0,0 +1,23 @@ +{ +"id": "None" +, +"format": "Biological Observation Matrix 1.0.0" +, +"format_url": "http://biom-format.org" +, +"type": "OTU table" +, +"generated_by": "BIOM-Format 2.1.5" +, +"date": "2016-05-26T17:20:40.263567" +, +"matrix_type": "sparse" +, +"matrix_element_type": "float" +, +"data": [[1,0,160.0],[6,0,1.0],[7,0,3.0],[12,0,13.0],[14,0,1.0],[15,0,1.0],[16,0,1.0]], "shape": [19, 1] +, +"columns": [{"id": "SAMPLE_1", "metadata": null}] +, +"rows": [{"id": "2", "metadata": null},{"id": "3", "metadata": null},{"id": "4", "metadata": null},{"id": "5", "metadata": null},{"id": "8", "metadata": null},{"id": "9", "metadata": null},{"id": "10", "metadata": null},{"id": "11", "metadata": null},{"id": "12", "metadata": null},{"id": "14", "metadata": null},{"id": "15", "metadata": null},{"id": "16", "metadata": null},{"id": "17", "metadata": null},{"id": "18", "metadata": null},{"id": "22", "metadata": null},{"id": "23", "metadata": null},{"id": "25", "metadata": null},{"id": "28", "metadata": null},{"id": "29", "metadata": null}] +} |
b |
diff -r 367b1ed91207 -r 28ad7ac9c193 test-data/summarize --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/summarize Wed Sep 11 12:41:29 2019 -0400 |
b |
@@ -0,0 +1,17 @@ +Num samples: 2 +Num observations: 19 +Total count: 471 +Table density (fraction of non-zero values): 0.342 + +Counts/sample summary: + Min: 180.0 + Max: 291.0 + Median: 235.500 + Mean: 235.500 + Std. dev.: 55.500 + Sample Metadata Categories: None provided + Observation Metadata Categories: None provided + +Counts/sample detail: +SAMPLE_1: 180.0 +SAMPLE_2: 291.0 \ No newline at end of file |
b |
diff -r 367b1ed91207 -r 28ad7ac9c193 test-data/summarize_qualitative_observations --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/summarize_qualitative_observations Wed Sep 11 12:41:29 2019 -0400 |
b |
@@ -0,0 +1,32 @@ +Num samples: 2 +Num observations: 19 + +Sample/observations summary: + Min: 0 + Max: 2 + Median: 0.000 + Mean: 0.684 + Std. dev.: 0.921 + Sample Metadata Categories: None provided + Observation Metadata Categories: None provided + +Observations/sample detail: +2: 0 +16: 0 +12: 0 +8: 0 +4: 0 +18: 0 +9: 0 +29: 0 +5: 0 +28: 0 +14: 0 +15: 0 +23: 1 +10: 2 +17: 2 +25: 2 +22: 2 +11: 2 +3: 2 \ No newline at end of file |
b |
diff -r 367b1ed91207 -r 28ad7ac9c193 test-data/uc_table.uc --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/uc_table.uc Wed Sep 11 12:41:29 2019 -0400 |
b |
b'@@ -0,0 +1,1000 @@\n+S 0 387 * * * * * b235271fbc8a6c9d990037857189ee9a;size=22254 *\n+S 1 374 * * * * * 7e02ae2e1e404d4e7c6035a6e374d29d;size=20728 *\n+S 2 383 * * * * * 39392bbb9626a64e6663c05b70293e7c;size=11535 *\n+S 3 384 * * * * * b970fcbdd71ad2a333f702c7ecfe7114;size=10907 *\n+S 4 385 * * * * * a9d668eae33f9fd4484585d9fe52b05e;size=8638 *\n+S 5 374 * * * * * da17e1a54e88120e294c7e68e350f47f;size=6062 *\n+S 6 383 * * * * * efbd11c972faa734253f779fc4eb2a64;size=5440 *\n+S 7 381 * * * * * aecd442213d89e3f43949aee5040a3ed;size=5318 *\n+S 8 386 * * * * * ea64ae1d6dddc2146105a882229c81bb;size=5125 *\n+S 9 381 * * * * * 26d2046e1a0f79450d6233ef29aab44e;size=4937 *\n+S 10 375 * * * * * a1fe4d26985b4fd62b7bef1949d111f4;size=4547 *\n+S 11 384 * * * * * 96ba76b9e5bd26447d84901071634c23;size=4384 *\n+S 12 382 * * * * * de935b7625d937ebe744b3125cfd1dfc;size=3868 *\n+S 13 376 * * * * * 7e3fa204e95db351839d719215fba508;size=3689 *\n+S 14 381 * * * * * 78951b2d4ca30531381672a30be0978a;size=3655 *\n+S 15 388 * * * * * b7ffa8f46cb16542d89dc5293ade2098;size=3629 *\n+S 16 382 * * * * * 721460e46e8804111d74cb730340492f;size=3538 *\n+H 1 375 99.7 + 0 0 34MD340M aff14fabb2213686a8bc18bf98edd8fd;size=3501 7e02ae2e1e404d4e7c6035a6e374d29d;size=20728\n+S 17 385 * * * * * eec3955a38ab32f15ee315b4c26f9af6;size=3440 *\n+S 18 383 * * * * * 5bf3b429509ca7b31bbce32fa4d77e33;size=3298 *\n+S 19 383 * * * * * 4edf10a5e3aa4bd4ed28b1694727a060;size=3078 *\n+S 20 369 * * * * * 57529eb32f16fd6b0ca316c7d376501f;size=2965 *\n+S 21 386 * * * * * be32a04d8af28ab822f66005c721cc1a;size=2849 *\n+S 22 381 * * * * * fd9c8703206ef0b3c0fcd3846f26fb50;size=2770 *\n+S 23 386 * * * * * 0af8e08a076e300ff906097a4030b9bb;size=2733 *\n+S 24 381 * * * * * 8dbb6f1dafe133984c7c7d899a730e1c;size=2722 *\n+S 25 381 * * * * * a3b19115a503e03c27f9577b3e9c673e;size=2708 *\n+S 26 383 * * * * * 397a9be0ac23a54c504ad0cd4f86ddb9;size=2689 *\n+H 1 373 99.7 + 0 0 155MI218M fef76769bd8d3a969b567d6d037a9594;size=2592 7e02ae2e1e404d4e7c6035a6e374d29d;size=20728\n+S 27 384 * * * * * 86bdf526074a459b826e641cd6131868;size=2562 *\n+S 28 382 * * * * * 32a6455756704a5ceca00b9f7beefc0c;size=2516 *\n+S 29 383 * * * * * 7228f266f04a46bfb85ea74e73546004;size=2508 *\n+S 30 381 * * * * * 38a1e68923981030900a4744924d4694;size=2491 *\n+S 31 385 * * * * * 132ced0592418845eee2359a1359672f;size=2452 *\n+S 32 381 * * * * * 809c29f61330f3ce6c7939cb98b7daa5;size=2440 *\n+S 33 381 * * * * * 3a6ac67b4b0f35b2c4c7537fef7b8c15;size=2326 *\n+S 34 384 * * * * * dcb878b5e3696aaa3fded2a9f7dea7cd;size=2312 *\n+S 35 384 * * * * * 2cb0faa31a23b37e7a40aa1d4ea12534;size=2194 *\n+S 36 381 * * * * * 653897d9ba97be73ecdabcf6efed61ca;size=2163 *\n+S 37 386 * * * * * bbab8ae32b8c7afaef852b438e6dc70d;size=2148 *\n+H 1 375 99.7 + 0 0 285MD89M d56b9d19ecd14c245a89c7ac5f10e437;size=2070 7e02ae2e1e404d4e7c6035a6e374d29d;size=20728\n+S 38 374 * * * * * db38f1b47bbe57241030f94f3cab84cd;size=2069 *\n+S 39 308 * * * * * b4e1bd5eac322b803425414f19938cd6;size=1992 *\n+S 40 383 * * * * * 585a7f513b67529b955093b393a269bc;size=1982 *\n+S 41 381 * * * * * 8cf1de80f6c4fb75463e4ec3ee0e36c4;size=1937 *\n+S 42 378 * * * * * 4084bd8293b08a58e03158d6668952f9;size=1934 *\n+S 43 387 * * * * * 91347cd2230896780f6a8d8ec7a3eb63;size=1899 *\n+S 44 382 * * * * * 156b1f0da0c6d2b99c93ca960ad238e1;size=1865 *\n+S 45 386 * * * *'..b' 05be5327c538a21c3b27a7c8db5c9091;size=148 *\n+S 946 384 * * * * * 772e590738b282a10efe470cd247e464;size=148 *\n+S 947 378 * * * * * acb159fc94423733b425e11bcf418ebc;size=148 *\n+S 948 382 * * * * * f64747a3cb098a025f6f6bd24ce36f2b;size=148 *\n+S 949 381 * * * * * f9c1fd8479e1f8bc61c087341b86bcb0;size=148 *\n+S 950 381 * * * * * 16bd5ecf7a8aa00bd67ac049ef37de89;size=147 *\n+S 951 387 * * * * * 27b9472403b6d7b4fcf2d1702ad5237d;size=147 *\n+S 952 382 * * * * * 49fb064b1abe9e0a729ed3af0561c887;size=147 *\n+S 953 379 * * * * * 62958ced4998d771c65f3c8eb79107b2;size=147 *\n+S 954 369 * * * * * 7ab9169e82ef97146305b452095d44ef;size=147 *\n+S 955 385 * * * * * 7cfb75b1cfc9218979917c761d83c21a;size=147 *\n+S 956 379 * * * * * c2aa81342d690715392168220316f4f3;size=147 *\n+S 957 376 * * * * * cab3eba0c65947bc9f19cca50b8b3e7d;size=147 *\n+S 958 386 * * * * * 27465101adc0680b46d3a82ce42ae8c4;size=146 *\n+S 959 382 * * * * * 3a046e6df48ff6b7decb0a2f8d80477d;size=146 *\n+S 960 381 * * * * * 3b9c1697cd9fa5e1fb8e2acb74f6880d;size=145 *\n+S 961 387 * * * * * 53e79e17a3cc73461546ae4a3c34d76b;size=145 *\n+S 962 384 * * * * * 59c2a827a827d3cdf8638dabcec31945;size=145 *\n+S 963 383 * * * * * 784e683ec96ec576599459f3d393488c;size=145 *\n+S 964 370 * * * * * 8fbdd184c819eb5fdab4cde1c82c06f6;size=145 *\n+S 965 381 * * * * * b109fd8dab717f4f01b2497a76f999e9;size=145 *\n+S 966 382 * * * * * b2cf4640eac25ffb80f13543d57a43eb;size=145 *\n+S 967 385 * * * * * 03bdd7a37e489dcfedf253ae70b382fc;size=144 *\n+S 968 374 * * * * * 0d4719a1de635a940b7374fa8a77558e;size=144 *\n+S 969 381 * * * * * 15fbfda3dc4e116e69f08b4957167f08;size=144 *\n+S 970 381 * * * * * 24465278399dcc4e2cf75ae8aaff59a4;size=144 *\n+S 971 386 * * * * * 431bfc83280a7d0857b8e1aea9248822;size=144 *\n+S 972 491 * * * * * 8bb82b41a18117e1fb9f340acbac3253;size=144 *\n+S 973 381 * * * * * 9c0576362a77fe1c27d1842401a857a4;size=144 *\n+S 974 395 * * * * * a998e788744ee422d8719726aa43ba5c;size=144 *\n+S 975 374 * * * * * ccfe5cd1ef55354a734a93abfa321877;size=144 *\n+S 976 379 * * * * * d750bb81b8fa5e245a8950e37ae78f72;size=144 *\n+S 977 385 * * * * * e2dd3d9f07763a06d04332f0e4c26c60;size=144 *\n+S 978 378 * * * * * eb5baab55402933a55bc5ea7a7af4eb5;size=144 *\n+S 979 381 * * * * * f83dde28c501ba8d75f317007a86d7a5;size=144 *\n+S 980 384 * * * * * 38128380161250f19ede0ff56f717a5c;size=143 *\n+S 981 380 * * * * * 405838763d69e08553dcecdcbc38432f;size=143 *\n+S 982 381 * * * * * 42c645d936f4ba620cd66ca10169bb7e;size=143 *\n+S 983 381 * * * * * 57757cca5106563993a857dfc9649e40;size=143 *\n+S 984 383 * * * * * 6553c5e39758eea3226b27b356af0314;size=143 *\n+S 985 374 * * * * * 6b7930074f4201754b287fe6019e139a;size=143 *\n+S 986 385 * * * * * 85f505cb5ec9ade58553ae30a89a8d3a;size=143 *\n+S 987 384 * * * * * 88e8cdf6f6caf3f953df826eb25f863f;size=143 *\n+S 988 390 * * * * * e7c3f4e3fbf9d177895d0634ac28643d;size=143 *\n+S 989 370 * * * * * 228bcf248d1dbc1fbeb4f3f973649f58;size=142 *\n+S 990 387 * * * * * 496af258c12d91251b6a0e1768a39472;size=142 *\n+S 991 383 * * * * * 5eac317564563fa6f1f437815fe5e053;size=142 *\n+S 992 382 * * * * * 8398f7e1f5fde1c27d66c027201d67e4;size=142 *\n+S 993 377 * * * * * b8eaf8ac961f62a34f4a617a94dc80e1;size=142 *\n+S 994 381 * * * * * beaa03bf44b25725d56f67d7100ed069;size=142 *\n+S 995 381 * * * * * bfff0fef1f18d43d99c7be90b7ad083d;size=142 *\n' |