Mercurial > repos > iuc > hal_hal2vg
comparison hal_hal2vg.xml @ 0:cb1771706300 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:20 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:cb1771706300 |
|---|---|
| 1 <tool id="hal_hal2vg" name="hal2vg" version="1.1.8+galaxy@VERSION_SUFFIX@" profile="@PROFILE@"> | |
| 2 <description>converts HAL to a vg-compatible sequence graph</description> | |
| 3 <macros> | |
| 4 <import>macros.xml</import> | |
| 5 </macros> | |
| 6 <requirements> | |
| 7 <requirement type="package" version="1.1.8">hal2vg</requirement> | |
| 8 </requirements> | |
| 9 <expand macro="stdio"/> | |
| 10 <command detect_errors="aggressive"><![CDATA[ | |
| 11 hal2vg | |
| 12 #if $rootGenome: | |
| 13 --rootGenome '$rootGenome' | |
| 14 #end if | |
| 15 #if $mode.reference == '--refGenomes': | |
| 16 --refGenomes '$mode.refGenomes' | |
| 17 #end if | |
| 18 #if $selection.filter == '--targetGenomes': | |
| 19 --targetGenomes '$selection.targetGenomes' | |
| 20 #else if $selection.filter == '--ignoreGenomes': | |
| 21 --ignoreGenomes '$selection.ignoreGenomes' | |
| 22 #end if | |
| 23 #if $outputFormat == 'hg': | |
| 24 --outputFormat 'hg' | |
| 25 #end if | |
| 26 --chop $chop | |
| 27 $noAncestors | |
| 28 '$input_hal' > '$output_file' | |
| 29 ]]></command> | |
| 30 <inputs> | |
| 31 <expand macro="input_hal"/> | |
| 32 <conditional name="mode"> | |
| 33 <param name="reference" type="select" label="Genomes to treat as reference paths" help="Specify genomes to treat as reference paths with all others as haplotype paths"> | |
| 34 <option value="" selected="true">All genomes (default)</option> | |
| 35 <option value="--refGenomes">Specific reference genomes (--refGenomes)</option> | |
| 36 </param> | |
| 37 <when value=""/> | |
| 38 <when value="--refGenomes"> | |
| 39 <param name="refGenomes" type="text" value="" label="List of genomes" help="Enter a comma-separated (no spaces) list of genomes to use as reference genomes"> | |
| 40 <expand macro="sanitizer_default"/> | |
| 41 <expand macro="validator_comma_list"/> | |
| 42 </param> | |
| 43 </when> | |
| 44 </conditional> | |
| 45 <expand macro="params_rootGenome_optional"/> | |
| 46 <conditional name="selection"> | |
| 47 <param name="filter" type="select" label="Genome selection filters"> | |
| 48 <option value="" selected="true">All genomes (default)</option> | |
| 49 <option value="--targetGenomes">Specific genomes to target (--targetGenomes)</option> | |
| 50 <option value="--ignoreGenomes">Specific genomes to ignore (--ignoreGenomes)</option> | |
| 51 </param> | |
| 52 <when value=""/> | |
| 53 <when value="--targetGenomes"> | |
| 54 <expand macro="params_targetGenomes"/> | |
| 55 </when> | |
| 56 <when value="--ignoreGenomes"> | |
| 57 <param name="ignoreGenomes" type="text" value="" label="List of genome" help="Comma-separated (no spaces) list of genomes to ignore"> | |
| 58 <expand macro="sanitizer_default"/> | |
| 59 <expand macro="validator_comma_list"/> | |
| 60 </param> | |
| 61 </when> | |
| 62 </conditional> | |
| 63 <param argument="--noAncestors" type="boolean" truevalue="--noAncestors" falsevalue="" checked="false" label="No ancestors" help="Don't write ancestral paths, nor sequence exclusive to ancestral genomes"/> | |
| 64 <param argument="--chop" type="integer" min="0" value="0" label="Chop" help="Chop up nodes in output graph so they are not longer than given length"/> | |
| 65 <param name="outputFormat" type="select" label="Output format"> | |
| 66 <option value="pg" selected="true">pg (default)</option> | |
| 67 <option value="hg">hg</option> | |
| 68 </param> | |
| 69 </inputs> | |
| 70 <outputs> | |
| 71 <data name="output_file" format="hal.pg" label="${tool.name} on ${on_string}: Graph"> | |
| 72 <change_format> | |
| 73 <when input="outputFormat" value="hg" format="hal.hg"/> | |
| 74 </change_format> | |
| 75 </data> | |
| 76 </outputs> | |
| 77 <tests> | |
| 78 <test expect_num_outputs="1"> | |
| 79 <param name="input_hal" value="halTest.hal"/> | |
| 80 <output name="output_file" ftype="hal.pg" file="hal2vg_output.pg"/> | |
| 81 </test> | |
| 82 <test expect_num_outputs="1"> | |
| 83 <param name="input_hal" value="halTest.hal"/> | |
| 84 <param name="outputFormat" value="hg"/> | |
| 85 <output name="output_file" ftype="hal.hg" file="hal2vg_output.hg"/> | |
| 86 </test> | |
| 87 <test expect_num_outputs="1"> | |
| 88 <param name="input_hal" value="halTest.hal"/> | |
| 89 <param name="rootGenome" value="Genome_0"/> | |
| 90 <conditional name="mode"> | |
| 91 <param name="reference" value="--refGenomes"/> | |
| 92 <param name="refGenomes" value="Genome_0,Genome_1"/> | |
| 93 </conditional> | |
| 94 <output name="output_file" ftype="hal.pg" file="hal2vg_refGenomes_output.pg"/> | |
| 95 </test> | |
| 96 <test expect_num_outputs="1"> | |
| 97 <param name="input_hal" value="halTest.hal"/> | |
| 98 <param name="noAncestors" value="true"/> | |
| 99 <output name="output_file" ftype="hal.pg" file="hal2vg_noAncestors_output.pg"/> | |
| 100 </test> | |
| 101 <test expect_num_outputs="1"> | |
| 102 <param name="input_hal" value="halTest.hal"/> | |
| 103 <conditional name="selection"> | |
| 104 <param name="filter" value="--targetGenomes"/> | |
| 105 <param name="targetGenomes" value="Genome_0,Genome_1"/> | |
| 106 </conditional> | |
| 107 <param name="chop" value="10"/> | |
| 108 <output name="output_file" ftype="hal.pg" file="hal2vg_targetGenomes_chop_output.pg"/> | |
| 109 </test> | |
| 110 </tests> | |
| 111 <help><![CDATA[ | |
| 112 hal2vg converts a HAL file to a vg-compatible sequence graph. | |
| 113 The tool generates a graph representation where genomes can be treated as reference paths or haplotypes, optionally excluding ancestral sequences or selected genomes. | |
| 114 Control node length via chopping, select target or reference genomes, and choose the output format (PG or HG). | |
| 115 | |
| 116 Use it for constructing genome graphs for downstream analyses such as variant calling, pangenome visualization, or graph-based mapping. | |
| 117 ]]></help> | |
| 118 <citations> | |
| 119 <citation type="doi">10.1038/s41587-023-01793-w</citation> | |
| 120 </citations> | |
| 121 <expand macro="creator"/> | |
| 122 </tool> |
