| Previous changeset 23:39bca000353d (2024-08-18) |
|
Commit message:
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/bcftools commit f6efda26965eb73c9107d367fd5ffdf246ed0dbc |
|
modified:
bcftools_isec.xml macros.xml |
| b |
| diff -r 39bca000353d -r 3d21f507fc5d bcftools_isec.xml --- a/bcftools_isec.xml Sun Aug 18 10:04:43 2024 +0000 +++ b/bcftools_isec.xml Tue Dec 02 08:10:32 2025 +0000 |
| [ |
| @@ -4,11 +4,10 @@ <token name="@EXECUTABLE@">isec</token> <import>macros.xml</import> </macros> - <expand macro="bio_tools" /> - <expand macro="requirements" /> - <expand macro="version_command" /> + <expand macro="bio_tools"/> + <expand macro="requirements"/> + <expand macro="version_command"/> <command detect_errors="aggressive"><![CDATA[ -@PREPARE_ENV@ @PREPARE_INPUT_FILES@ #set $section = $sec_restrict @PREPARE_TARGETS_FILE@ @@ -41,22 +40,20 @@ ]]> </command> <inputs> - <expand macro="macro_inputs" /> + <expand macro="macro_inputs"/> <section name="sec_restrict" expanded="false" title="Restrict to"> - <expand macro="macro_collapse" /> - <expand macro="macro_include" /> - <expand macro="macro_exclude" /> - <expand macro="macro_apply_filters" /> - <expand macro="macro_restrict" /> - <expand macro="macro_restrict" type="target" label_type="Target" /> + <expand macro="macro_collapse"/> + <expand macro="macro_include"/> + <expand macro="macro_exclude"/> + <expand macro="macro_apply_filters"/> + <expand macro="macro_region_restrict"/> + <expand macro="macro_target_restrict"/> </section> <section name="sec_default" expanded="true" title="Isec Options"> - <param argument="--nfiles" type="text" label="Nfiles" - help="Output positions present in this many (=), this many or more (+), this many or fewer (-), the exact (~) files"> + <param argument="--nfiles" type="text" label="Nfiles" help="Output positions present in this many (=), this many or more (+), this many or fewer (-), the exact (~) files"> <validator type="regex" message="bitmask zero or one">^([=+-]?\d+|~[01]+)?$</validator> </param> - <param name="complement" type="boolean" truevalue="--complement" falsevalue="" label="Complement" - help="Output positions present only in the first file but missing in the others" /> + <param name="complement" type="boolean" truevalue="--complement" falsevalue="" label="Complement" help="Output positions present only in the first file but missing in the others"/> <!-- <param name="prefix" type="boolean" truevalue="\-\-prefix subset" falsevalue="" checked="false" label="subset each of the input files" help="(-p)" />--> <!-- <param name="write" type="text" label="Files to write" optional="True" @@ -64,41 +61,50 @@ <validator type="regex" message="">^([=+-]?\d+|~[01]+)?$</validator> </param>--> </section> - <expand macro="macro_select_output_type" /> + <expand macro="macro_select_output_type"/> </inputs> <outputs> <expand macro="macro_vcf_output"/> </outputs> <tests> <test> - <param name="input_files" ftype="vcf" value="isec.b.vcf,isec.a.vcf" /> - <param name="nfiles" value="=2" /> - <param name="output_type" value="v" /> + <param name="input_files" ftype="vcf" value="isec.b.vcf,isec.a.vcf"/> + <section name="sec_default"> + <param name="nfiles" value="=2"/> + </section> + <param name="output_type" value="v"/> <output name="output_file"> <assert_contents> - <has_text text="3157410" /> - <has_text text="3162006" /> - <not_has_text text="3062915" /> + <has_text text="3157410"/> + <has_text text="3162006"/> + <not_has_text text="3062915"/> </assert_contents> </output> </test> <!-- Test region overlap option --> <test> - <param name="input_files" ftype="vcf" value="isec.b.vcf,isec.a.vcf" /> - <param name="nfiles" value="=2" /> - <param name="output_type" value="v" /> + <param name="input_files" ftype="vcf" value="isec.b.vcf,isec.a.vcf"/> + <section name="sec_default"> + <param name="nfiles" value="=2"/> + </section> + <param name="output_type" value="v"/> <section name="sec_restrict"> - <param name="regions_overlap" value="1"/> + <conditional name="regions"> + <param name="regions_src" value="regions" /> + <repeat name="region_specs"> + <param name="chrom" value="1" /> + </repeat> + </conditional> </section> <output name="output_file"> <assert_contents> - <has_text text="3157410" /> - <has_text text="3162006" /> - <not_has_text text="3062915" /> + <has_text text="3157410"/> + <has_text text="3162006"/> + <not_has_text text="3062915"/> </assert_contents> </output> <assert_command> - <has_text text="--regions-overlap" /> + <has_text text="--regions-overlap"/> </assert_command> </test> </tests> @@ -116,8 +122,8 @@ @BCFTOOLS_MANPAGE@#@EXECUTABLE@ -@BCFTOOLS_WIKI@ +@BCFTOOLS_HOWTOS@ ]]> </help> - <expand macro="citations" /> + <expand macro="citations"/> </tool> |
| b |
| diff -r 39bca000353d -r 3d21f507fc5d macros.xml --- a/macros.xml Sun Aug 18 10:04:43 2024 +0000 +++ b/macros.xml Tue Dec 02 08:10:32 2025 +0000 |
| [ |
| b'@@ -1,7 +1,7 @@\n <macros>\n- <token name="@TOOL_VERSION@">1.15.1</token>\n- <token name="@VERSION_SUFFIX@">4</token>\n- <token name="@PROFILE@">20.01</token>\n+ <token name="@TOOL_VERSION@">1.22</token>\n+ <token name="@VERSION_SUFFIX@">0</token>\n+ <token name="@PROFILE@">24.1</token>\n <xml name="bio_tools">\n <xrefs>\n <xref type="bio.tools">bcftools</xref>\n@@ -10,15 +10,15 @@\n <xml name="requirements">\n <requirements>\n <requirement type="package" version="@TOOL_VERSION@">bcftools</requirement>\n- <requirement type="package" version="1.15.1">htslib</requirement>\n+ <requirement type="package" version="1.22.1">htslib</requirement>\n <yield />\n </requirements>\n </xml>\n <xml name="samtools_requirement">\n- <requirement type="package" version="1.15.1">samtools</requirement>\n+ <requirement type="package" version="1.22.1">samtools</requirement>\n </xml>\n <xml name="matplotlib_requirement">\n- <requirement type="package" version="3.5.3">matplotlib</requirement>\n+ <requirement type="package" version="3.10.7">matplotlib</requirement>\n </xml>\n <xml name="version_command">\n <version_command>bcftools 2>&1 | grep \'Version:\'</version_command>\n@@ -30,16 +30,11 @@\n <yield />\n </citations>\n </xml>\n- <token name="@BCFTOOLS_WIKI@">https://github.com/samtools/bcftools/wiki</token>\n- <token name="@BCFTOOLS_MANPAGE@">http://samtools.github.io/bcftools/bcftools.html</token>\n+ <token name="@BCFTOOLS_HOWTOS@">https://samtools.github.io/bcftools/howtos/index.html</token>\n+ <token name="@BCFTOOLS_MANPAGE@">https://www.htslib.org/doc/bcftools.html</token>\n <token name="@THREADS@">\n --threads \\${GALAXY_SLOTS:-4}\n </token>\n- <token name="@PREPARE_ENV@">\n-<![CDATA[\n-export BCFTOOLS_PLUGINS=`which bcftools | sed \'s,bin/bcftools,libexec/bcftools,\'`;\n-]]>\n- </token>\n <xml name="macro_input">\n <!-- \n REQUIRES https://github.com/galaxyproject/galaxy/pull/14605/files\n@@ -294,8 +289,8 @@\n help="inverts the query/filtering applied by the targets" />\n </xml>\n \n- <xml name="macro_restriction_spec" token_type="region" token_label_type="Region">\n- <repeat name="@TYPE@s" title="@LABEL_TYPE@ Filter" default="1" min="1">\n+ <xml name="macro_restriction_spec" tokens="type,label_type">\n+ <repeat name="@TYPE@_specs" title="@LABEL_TYPE@ Filter" default="1" min="1">\n <param name="chrom" type="text" label="@LABEL_TYPE@ chromosome">\n <validator type="expression" message="A chromosome identifier is required when specifying a @LABEL_TYPE@ filter">value.strip()</validator>\n </param>\n@@ -305,36 +300,85 @@\n <param name="stop" type="text" label="@LABEL_TYPE@ end position">\n <validator type="expression" message="an integer number is required">not value or value.isdigit()</validator>\n </param>\n- <yield />\n </repeat>\n </xml>\n \n- <xml name="macro_restrictions_file" token_type="region" token_label_type="Region">\n+ <xml name="macro_restrictions_file" tokens="type,label_type">\n <param name="@TYPE@s_file" type="data" format="tabular" label="@LABEL_TYPE@s File" help="restrict to @LABEL_TYPE@s listed in a file" />\n </xml>\n \n- <xml name="macro_restrict" token_type="region" token_label_type="Region" >\n+ <xml name="__macro_restrict__" tokens="type,label_select,label_type,pos_is_default,rec_is_default">\n <conditional name="@TYPE@s">\n- <param name="@TYPE@s_src" type="select" label="@LABEL_TYPE@s">\n- <option value="__none__">Do not restrict to @LABEL_TYPE@s</option>\n- <option value="@TYPE@s">Specify one or more @LABEL_TYPE@(s) directly</option>\n- <option value="@TYPE@s_file">Operate on @LABEL_TYPE@s specified in a history dataset</option>\n+ <param name="@TYPE@s_src" type="select" label="@LABEL_SELECT@">\n+ <option value="__none__">Do not restrict to @LABEL_TYPE@s</option>\n+ <option value="@TYPE@s">Specify one or more @LABEL_TYPE@'..b'intervals = $section.targets.target_specs\n+ @PARSE_INTERVALS@\n+ --targets \'${section.targets.invert_targets_file}$intervals_spec\'\n+ #elif $section.targets.targets_src == \'targets_file\':\n+ #if $targets_path:\n+ --targets-file \'${section.targets.invert_targets_file}${targets_path}\'\n+ #else:\n+ --targets-file \'${section.targets.invert_targets_file}${section.targets.targets_file}\'\n+ #end if\n+ #end if\n+ #if \'targets_overlap\' in $section.targets:\n+ --targets-overlap $section.targets.targets_overlap\n+ #end if\n #end if\n ]]>\n </token>\n@@ -417,7 +462,7 @@\n <![CDATA[\n #set $regions_path = None\n #if \'regions\' in $section\n- #if $section.regions.regions_src == \'regions_file\' and $section.regions.regions_file:\n+ #if $section.regions.regions_src == \'regions_file\':\n #if $section.regions.regions_file.ext.startswith(\'bed\'):\n #set $regions_path = \'regions_file.bed\'\n ln -s \'$section.regions.regions_file\' $regions_path &&\n@@ -461,11 +506,31 @@\n </param>\n <param name="invert_samples" type="boolean" truevalue="^" falsevalue="" checked="false" label="Invert Samples"\n help="Inverts the query/filtering applied by Samples (adds "^" prefix to exclude)" />\n- <param argument="--samples_file" type="data" format="tabular" optional="true" label="Samples file"\n- help="File of samples to include" />\n+ <param argument="--samples_file" type="data" format="tabular" optional="true" label="Samples file" help="File of samples to include" />\n <param name="invert_samples_file" type="boolean" truevalue="^" falsevalue="" checked="false" label="Invert Samples file"\n help="inverts the query/filtering applied by Samples file" />\n </xml>\n+\n+ <xml name="macro_samples_enhanced" token_all_samples="" token_file_help="File listing samples to include one per line.">\n+ <conditional name="specify_samples">\n+ <param name="how" type="select" label="How do you want to select samples?">\n+ <option value="-s">Specify samples manually</option>\n+ <option value="-S">Provide sample file</option>\n+ <option value="@ALL_SAMPLES@" selected="true">No selection; just use all samples found in input</option>\n+ </param>\n+ <when value="-s">\n+ <param argument="--samples" name="samples_spec" type="text" optional="false" label="Sample(s)" help="Specify a single sample by name or a comma-separated list of sample names.">\n+ <validator type="expression" message="Please specify a single sample by name or a comma-separated list of sample names">value.strip() and value[0] not in "^," and ",," not in value</validator>\n+ </param>\n+ <param name="invert_samples" type="boolean" truevalue="^" falsevalue="" label="Exclude these samples instead of including them?" help="Equivalent to prefixing the list of samples with "^" on the command line."/>\n+ </when>\n+ <when value="-S">\n+ <param argument="--samples_file" type="data" format="tabular" optional="@IS_OPTIONAL@" label="Samples file" help="@FILE_HELP@" />\n+ <param name="invert_samples" type="boolean" truevalue="^" falsevalue="" label="Exclude the samples listed in the file instead of including them?" help="Equivalent to prefixing the file with "^" on the command line."/>\n+ </when>\n+ <when value="@ALL_SAMPLES@" />\n+ </conditional>\n+ </xml>\n <token name="@SAMPLES@">\n #set $samples_defined = False\n #if str($section.samples) != \'\':\n@@ -478,8 +543,8 @@\n #end if\n </token>\n \n- <xml name="macro_sample">\n- <param name="sample" type="text" optional="true" label="Sample" help="Apply variants of the given sample" />\n+ <xml name="macro_sample" token_help="Apply variants of the given sample">\n+ <param name="sample" type="text" optional="true" label="Sample" help="@HELP@" />\n </xml>\n <token name="@SAMPLE@">\n #if $section.sample:\n' |