Mercurial > repos > iuc > hal_halremovesubtree
comparison hal_halRemoveSubtree.xml @ 0:19f3c5cad8ae draft default tip
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/haltools commit 6244b9d15a5ad97ae20191e2f8fbafe2050c3cac
| author | iuc |
|---|---|
| date | Fri, 06 Feb 2026 10:35:56 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:19f3c5cad8ae |
|---|---|
| 1 <tool id="hal_halremovesubtree" name="halRemoveSubtree" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@"> | |
| 2 <description>removes an entire subtree in a HAL file</description> | |
| 3 <macros> | |
| 4 <import>macros.xml</import> | |
| 5 </macros> | |
| 6 <expand macro="requirements"/> | |
| 7 <expand macro="stdio"/> | |
| 8 <command detect_errors="aggressive"><![CDATA[ | |
| 9 ## Copy input HAL to ensure that it is not modified. | |
| 10 cp '$input_hal' writable_hal.hal && | |
| 11 halRemoveSubtree | |
| 12 $noMarkAncestors | |
| 13 writable_hal.hal '$root' | |
| 14 ]]></command> | |
| 15 <inputs> | |
| 16 <expand macro="input_hal"/> | |
| 17 <param name="root" type="text" value="" label="Node name" help="Subtree below this node will be deleted (but not the node itself). If a leaf genome is given, nothing happens"> | |
| 18 <expand macro="sanitizer_default"/> | |
| 19 <expand macro="validator_trim"/> | |
| 20 </param> | |
| 21 <expand macro="params_noMarkAncestors"/> | |
| 22 </inputs> | |
| 23 <outputs> | |
| 24 <data name="out_file" format="hal" label="${tool.name} on ${on_string}" from_work_dir="writable_hal.hal"/> | |
| 25 </outputs> | |
| 26 <tests> | |
| 27 <test expect_num_outputs="1"> | |
| 28 <param name="input_hal" value="halTest.hal"/> | |
| 29 <param name="root" value="Genome_0"/> | |
| 30 <output name="out_file" ftype="hal"> | |
| 31 <assert_contents> | |
| 32 <has_size min="45000"/> | |
| 33 </assert_contents> | |
| 34 </output> | |
| 35 <assert_stderr> | |
| 36 <has_line line="[halRemoveSubtree] removing Genome_1"/> | |
| 37 </assert_stderr> | |
| 38 </test> | |
| 39 <test expect_num_outputs="1"> | |
| 40 <param name="input_hal" value="halTest.hal"/> | |
| 41 <param name="root" value="Genome_1"/> | |
| 42 <output name="out_file" ftype="hal"> | |
| 43 <assert_contents> | |
| 44 <has_size min="50000"/> | |
| 45 </assert_contents> | |
| 46 </output> | |
| 47 <assert_stderr> | |
| 48 <has_line line="[halRemoveSubtree] Warning: given root Genome_1 is a leaf: doing nothing"/> | |
| 49 </assert_stderr> | |
| 50 </test> | |
| 51 <test expect_num_outputs="1"> | |
| 52 <param name="input_hal" value="halTest.hal"/> | |
| 53 <param name="root" value="Genome_0"/> | |
| 54 <param name="noMarkAncestors" value="true"/> | |
| 55 <output name="out_file" ftype="hal"> | |
| 56 <assert_contents> | |
| 57 <has_size min="45000"/> | |
| 58 </assert_contents> | |
| 59 </output> | |
| 60 <assert_stderr> | |
| 61 <has_line line="[halRemoveSubtree] removing Genome_1"/> | |
| 62 </assert_stderr> | |
| 63 </test> | |
| 64 </tests> | |
| 65 <help><![CDATA[ | |
| 66 halRemoveSubtree removes all descendant genomes below a given node from an input HAL file and updates the tree structure accordingly. | |
| 67 The given node itself is not removed. | |
| 68 By default, ancestor nodes are marked for update to ensure consistency of the alignment after removal. | |
| 69 This behavior can be disabled when ancestor updates are not required. | |
| 70 | |
| 71 A new HAL file is created as output instead of modifying the input HAL file. | |
| 72 | |
| 73 ----- | |
| 74 | |
| 75 .. class:: warningmark | |
| 76 | |
| 77 Running the tool on a HAL file in mmap format will fail because this format type is not supported by this tool. | |
| 78 It is recommended to convert the input to HDF5 format first using halExtract. | |
| 79 ]]></help> | |
| 80 <expand macro="citation"/> | |
| 81 <expand macro="creator"/> | |
| 82 </tool> |
