Mercurial > repos > iuc > hal_haladdtobranch
comparison hal_halAddToBranch.xml @ 0:8d69e6b4aad3 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/haltools commit 6244b9d15a5ad97ae20191e2f8fbafe2050c3cac
| author | iuc |
|---|---|
| date | Fri, 06 Feb 2026 10:33:34 +0000 |
| parents | |
| children | 020607b4f91c |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:8d69e6b4aad3 |
|---|---|
| 1 <tool id="hal_haladdtobranch" name="halAddToBranch" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@"> | |
| 2 <description>adds a new internal node and leaf genome into an existing HAL </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 halAddToBranch | |
| 12 $noMarkAncestors | |
| 13 writable_hal.hal '$botAlignmentFile' '$topAlignmentFile' '$parentName' '$insertName' '$childName' '$leafName' '$upperBranchLength' '$leafBranchLength' && | |
| 14 ## echo 'ok' to check it with assert_stdout. This is needed because there is no other stdout output, | |
| 15 ## and the output HAL file checksum always changes even with identical inputs. | |
| 16 echo 'ok' | |
| 17 ]]></command> | |
| 18 <inputs> | |
| 19 <expand macro="input_hal"/> | |
| 20 <param name="insertName" type="text" value="" label="Insert name" help="Name of the new internal node to be created. Must be present in both top and bottom alignment files"> | |
| 21 <expand macro="sanitizer_default"/> | |
| 22 <expand macro="validator_trim"/> | |
| 23 </param> | |
| 24 <param name="parentName" type="text" value="" label="Parent name" help="Name of the existing genome in the main tree that will become the parent of the new insert node"> | |
| 25 <expand macro="sanitizer_default"/> | |
| 26 <expand macro="validator_trim"/> | |
| 27 </param> | |
| 28 <param name="childName" type="text" value="" label="Child name" help="Name of the existing genome that is being moved. It will be detached from the parent and re-attached to the new insert"> | |
| 29 <expand macro="sanitizer_default"/> | |
| 30 <expand macro="validator_trim"/> | |
| 31 </param> | |
| 32 <param name="leafName" type="text" value="" label="Leaf name" help="Name of the new leaf genome being added to the tree. Must be present in the bottom alignment file"> | |
| 33 <expand macro="sanitizer_default"/> | |
| 34 <expand macro="validator_trim"/> | |
| 35 </param> | |
| 36 <param name="topAlignmentFile" type="data" format="hal" label="Top alignment file" help="HAL file defining the connection between the parent and the new insert. A tree containing the insert, its parent, and its siblings"/> | |
| 37 <param name="botAlignmentFile" type="data" format="hal" label="Bottom alignment file" help="HAL file defining the subtree starting from the new insert node. A tree containing the insert, its children, and its new leaf genome"/> | |
| 38 <param name="upperBranchLength" type="float" min="0" label="Upper branch length" help="Length of branch from parent to insert"/> | |
| 39 <param name="leafBranchLength" type="float" min="0" label="Leaf branch length" help="Leaf branch length"/> | |
| 40 <expand macro="params_noMarkAncestors"/> | |
| 41 </inputs> | |
| 42 <outputs> | |
| 43 <data name="out_file" format="hal" label="${tool.name} on ${on_string}" from_work_dir="writable_hal.hal"/> | |
| 44 </outputs> | |
| 45 <tests> | |
| 46 <test expect_num_outputs="1"> | |
| 47 <param name="input_hal" value="halTest.hal"/> | |
| 48 <param name="botAlignmentFile" value="halAddToBranch_bot_input.hal"/> | |
| 49 <param name="topAlignmentFile" value="halAddToBranch_top_input.hal"/> | |
| 50 <param name="parentName" value="Genome_0"/> | |
| 51 <param name="insertName" value="Insert"/> | |
| 52 <param name="childName" value="Genome_2"/> | |
| 53 <param name="leafName" value="NewLeaf"/> | |
| 54 <param name="upperBranchLength" value="1"/> | |
| 55 <param name="leafBranchLength" value="1"/> | |
| 56 <output name="out_file" ftype="hal"> | |
| 57 <assert_contents> | |
| 58 <has_size min="80000"/> | |
| 59 </assert_contents> | |
| 60 </output> | |
| 61 <assert_stdout> | |
| 62 <has_line line="ok"/> | |
| 63 </assert_stdout> | |
| 64 </test> | |
| 65 <test expect_num_outputs="1"> | |
| 66 <param name="input_hal" value="halTest.hal"/> | |
| 67 <param name="botAlignmentFile" value="halAddToBranch_bot_input.hal"/> | |
| 68 <param name="topAlignmentFile" value="halAddToBranch_top_input.hal"/> | |
| 69 <param name="parentName" value="Genome_0"/> | |
| 70 <param name="insertName" value="Insert"/> | |
| 71 <param name="childName" value="Genome_2"/> | |
| 72 <param name="leafName" value="NewLeaf"/> | |
| 73 <param name="upperBranchLength" value="1"/> | |
| 74 <param name="leafBranchLength" value="1"/> | |
| 75 <param name="noMarkAncestors" value="true"/> | |
| 76 <output name="out_file" ftype="hal"> | |
| 77 <assert_contents> | |
| 78 <has_size min="80000"/> | |
| 79 </assert_contents> | |
| 80 </output> | |
| 81 <assert_stdout> | |
| 82 <has_line line="ok"/> | |
| 83 </assert_stdout> | |
| 84 </test> | |
| 85 </tests> | |
| 86 <help><![CDATA[ | |
| 87 halAddToBranch adds a new internal genome node and a new leaf genome to an input HAL alignment by splitting an existing branch. | |
| 88 A new internal node is inserted between a specified parent and child, and a new leaf genome is attached to that inserted node. | |
| 89 Bottom and top alignment files are required to correctly connect the inserted node to its descendants and ancestors. | |
| 90 By default, ancestor nodes are marked for update to ensure consistency of the alignment after replacement. | |
| 91 This behavior can be disabled when ancestor updates are not required. | |
| 92 | |
| 93 A new HAL file is created as output instead of modifying the input HAL file. | |
| 94 | |
| 95 ----- | |
| 96 | |
| 97 .. class:: warningmark | |
| 98 | |
| 99 Running the tool on a HAL file in mmap format will fail because this format type is not supported by this tool. | |
| 100 It is recommended to convert the input to HDF5 format first using halExtract. | |
| 101 ]]></help> | |
| 102 <expand macro="citation"/> | |
| 103 <expand macro="creator"/> | |
| 104 </tool> |
