Mercurial > repos > iuc > hal_halremovegenome
comparison hal_halRemoveGenome.xml @ 0:f5f265415faa 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:37:54 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:f5f265415faa |
|---|---|
| 1 <tool id="hal_halremovegenome" name="halRemoveGenome" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@"> | |
| 2 <description>removes a leaf genome 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 halRemoveGenome | |
| 12 $noMarkAncestors | |
| 13 writable_hal.hal '$deleteNode' && | |
| 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="deleteNode" type="text" value="" label="Node name" help="Leaf genome to remove from tree"> | |
| 21 <expand macro="sanitizer_default"/> | |
| 22 <expand macro="validator_trim"/> | |
| 23 </param> | |
| 24 <expand macro="params_noMarkAncestors"/> | |
| 25 </inputs> | |
| 26 <outputs> | |
| 27 <data name="out_file" format="hal" label="${tool.name} on ${on_string}" from_work_dir="writable_hal.hal"/> | |
| 28 </outputs> | |
| 29 <tests> | |
| 30 <test expect_num_outputs="1"> | |
| 31 <param name="input_hal" value="halTest.hal"/> | |
| 32 <param name="deleteNode" value="Genome_1"/> | |
| 33 <output name="out_file" ftype="hal"> | |
| 34 <assert_contents> | |
| 35 <has_size min="50000"/> | |
| 36 </assert_contents> | |
| 37 </output> | |
| 38 <assert_stdout> | |
| 39 <has_line line="ok"/> | |
| 40 </assert_stdout> | |
| 41 </test> | |
| 42 <test expect_num_outputs="1"> | |
| 43 <param name="input_hal" value="halTest.hal"/> | |
| 44 <param name="deleteNode" value="Genome_1"/> | |
| 45 <param name="noMarkAncestors" value="true"/> | |
| 46 <output name="out_file" ftype="hal"> | |
| 47 <assert_contents> | |
| 48 <has_size min="50000"/> | |
| 49 </assert_contents> | |
| 50 </output> | |
| 51 <assert_stdout> | |
| 52 <has_line line="ok"/> | |
| 53 </assert_stdout> | |
| 54 </test> | |
| 55 </tests> | |
| 56 <help><![CDATA[ | |
| 57 halRemoveGenome removes a specified leaf genome from the input HAL file and updates the tree structure accordingly. | |
| 58 By default, ancestor nodes are marked for update to ensure consistency of the alignment after removal. | |
| 59 This behavior can be disabled when ancestor updates are not required. | |
| 60 | |
| 61 A new HAL file is created as output instead of modifying the input HAL file. | |
| 62 | |
| 63 ----- | |
| 64 | |
| 65 .. class:: warningmark | |
| 66 | |
| 67 Running the tool on a HAL file in mmap format will fail because this format type is not supported by this tool. | |
| 68 It is recommended to convert the input to HDF5 format first using halExtract. | |
| 69 ]]></help> | |
| 70 <expand macro="citation"/> | |
| 71 <expand macro="creator"/> | |
| 72 </tool> |
