Repository 'lastz'
hg clone https://toolshed.g2.bx.psu.edu/repos/devteam/lastz

Changeset 13:bf107d23242b (2026-02-05)
Previous changeset 12:48d39ee9eb30 (2026-01-22)
Commit message:
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/main/tools/lastz commit 04ec440aef00477a46c89fdb9b74e9bade5ffd94
modified:
lastz.xml
lastz_d.xml
lastz_macros.xml
added:
test-data/test7.out
test-data/test7.png
test-data/test8.bam
b
diff -r 48d39ee9eb30 -r bf107d23242b lastz.xml
--- a/lastz.xml Thu Jan 22 18:28:16 2026 +0000
+++ b/lastz.xml Thu Feb 05 12:52:06 2026 +0000
[
b'@@ -1,15 +1,10 @@\n-<tool id="lastz_wrapper_2" name="LASTZ" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@">\n-    <description>: align long sequences</description>\n+<tool id="lastz_wrapper_2" name="LASTZ" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">\n+    <description>align long sequences</description>\n     <macros>\n         <import>lastz_macros.xml</import>\n     </macros>\n     <expand macro="bio_tools"/>\n-    <requirements>\n-        <requirement type="package" version="@TOOL_VERSION@">lastz</requirement>\n-        <requirement type="package" version="1.14">samtools</requirement>\n-        <requirement type="package" version="3.6.3">r-base</requirement>\n-        <requirement type="package" version="1.0.8">bzip2</requirement>\n-    </requirements>\n+    <expand macro="requirements"/>\n     <command detect_errors="exit_code"><![CDATA[\n         #if $lastz_32:\n             lastz_32\n@@ -260,7 +255,7 @@\n         #elif str( $output_format.out.format ) == "blastn":\n             --format=BLASTN-\n         #elif str( $output_format.out.format ) == "paf":\n-            --format=PAF-\n+            --format=PAF\n         #elif str( $output_format.out.format ) == "general_full":\n             \'--format=general-:${output_format.out.fields}\'\n         #elif str( $output_format.out.format ) == "differences":\n@@ -269,7 +264,7 @@\n         --action:target=multiple\n         $output_format.rplot\n         #if str( $output_format.out.format ) == "bam":\n-            | samtools sort -@\\${GALAXY_SLOTS:-2} -T "\\${TMPDIR:-.}" -O bam -o \'${output}\'\n+            | samtools sort --no-PG -l 0 -T "\\${TMPDIR:-.}" -O bam | samtools view --no-PG -O bam -@ \\${GALAXY_SLOTS:-1} -o \'${output}\'\n         #else:\n             > \'${output}\'\n         #end if\n@@ -298,40 +293,40 @@\n     </configfiles>\n     <inputs>\n         <expand macro="target_input"/>\n-        <param name="query" format="fasta,fastq,fasta.gz,fastq.gz,fastq.bz2" type="data" label="Select QUERY sequence(s)" help="These are the sequences that you are aligning against TARGET"/>\n+        <param name="query" format="fasta,fastqsanger,fastqillumina,fasta.gz,fastq.gz,fastqsanger.gz,fastqillumina.gz,fastq.bz2,fastqsanger.bz2,fastqillumina.bz2" type="data" label="Select QUERY sequence(s)" help="These are the sequences that you are aligning against TARGET"/>\n         <param name="lastz_32" type="boolean" checked="false" label="Use lastz_32" help="It is highly recommended to use lastz_32 instead of lastz if the reference genome size is greater than 2G"/>\n         <section name="where_to_look" expanded="False" title="Where to look">\n-            <param type="select" display="radio" label="which strand to search" argument="--strand" help="Search both strands or choose plus or minus">\n+            <param type="select" label="which strand to search" argument="--strand" help="Search both strands or choose plus or minus">\n                 <option value="--strand=both" selected="True">Both</option>\n                 <option value="--strand=plus">Plus</option>\n                 <option value="--strand=minus">Minus</option>\n             </param>\n-            <param type="boolean" display="radio" truevalue="--self" falsevalue="" checked="False" argument="--self" label="Perform a self-alignment: the target sequence is also the query." help="Computation is more efficient than it would be without this option, since only one of each mirror-image pair of alignment blocks is processed (the other, redundant one is skipped during processing, but re-created in the output). Also, the trivial self-alignment block along the main diagonal is omitted from the output. THIS OPTION CANNOT BE USED IF THE TARGET IS COMPRIZED OF MULTIPLE SEQUENCES"/>\n-            <param type="boolean" display="radio" truevalue="--nomirror" falsevalue="" checked="False" label="Inhibit the re-creation of mirror-image alignments." argument="--nomirror" help="Output consists of only one copy of each meaningful alignment block in a self-alignment. This optio'..b'<param name="lastz_32" value="true" />\n+            <section name="where_to_look">\n+                <param name="strand" value="--strand=both" />\n+            </section>\n+            <section name="output_format">\n+                <conditional name="out">\n+                    <param name="format" value="blastn" />\n+                </conditional>\n+            </section>\n             <output name="output" value="test5.out" />\n         </test>\n         <test expect_num_outputs="1">\n-            <param name="ref_source" value="history" />\n-            <param name="target" ftype="fasta.gz" value="chrM_human.fa.gz" />\n-            <param name="query" ftype="fastq" value="chrM_mouse.fq" />\n-            <param name="lastz_32" value="true" />\n-            <param name="strand" value="--strand=both" />\n-            <param name="format" value="blastn" />\n-            <output name="output" value="test5.out" />\n+            <conditional name="source">\n+                <param name="ref_source" value="cached" />\n+                <param name="target_2bit" value="phiX174" />\n+            </conditional>\n+            <param name="query" value="phiX_split.fasta" />\n+            <section name="where_to_look">\n+                <param name="strand" value="--strand=both" />\n+            </section>\n+            <section name="output_format">\n+                <conditional name="out">\n+                    <param name="format" value="differences" />\n+                </conditional>\n+            </section>\n+            <output name="output" value="test6.out" />\n+        </test>\n+        <test expect_num_outputs="2">\n+            <conditional name="source">\n+                <param name="ref_source" value="history" />\n+                <param name="target" ftype="fasta.gz" value="chrM_human.fa.gz" />\n+            </conditional>\n+            <param name="query" ftype="fastq.gz" value="chrM_mouse.fq.gz" />\n+            <section name="where_to_look">\n+                <param name="strand" value="--strand=both" />\n+            </section>\n+            <section name="output_format">\n+                <conditional name="out">\n+                    <param name="format" value="paf" />\n+                </conditional>\n+                <param name="rplot" value="true"/>\n+            </section>\n+            <output name="output" value="test7.out" ftype="paf"/>\n+            <output name="out_plot" value="test7.png"/>\n         </test>\n         <test expect_num_outputs="1">\n-            <param name="ref_source" value="cached" />\n-            <param name="target_2bit" value="phiX174" />\n-            <param name="query" value="phiX_split.fasta" />\n-            <param name="strand" value="--strand=both" />\n-            <param name="format" value="differences" />\n-            <output name="output" value="test6.out" />\n+            <conditional name="source">\n+                <param name="ref_source" value="history" />\n+                <param name="target" ftype="fasta.gz" value="chrM_human.fa.gz" />\n+            </conditional>\n+            <param name="query" ftype="fastq.gz" value="chrM_mouse.fq.gz" />\n+            <section name="where_to_look">\n+                <param name="strand" value="--strand=both" />\n+            </section>\n+            <section name="output_format">\n+                <conditional name="out">\n+                    <param name="format" value="bam" />\n+                </conditional>\n+            </section>\n+            <output name="output" value="test8.bam" ftype="bam"/>\n         </test>\n     </tests>\n \n@@ -737,7 +832,7 @@\n \n **Substitution matrix**\n \n-By default the HOXD70 substitution scores are used (from `Chiaromonte et al. 2002 <https://www.ncbi.nlm.nih.gov/pubmed/11928468>`_)::\n+By default the HOXD70 substitution scores are used (from `Chiaromonte et al. 2002 <https://doi.org/10.1142/9789812799623_0012>`_)::\n \n     bad_score          = X:-1000  # used for sub[\'X\'][*] and sub[*][\'X\']\n     fill_score         = -100     # used when sub[*][*] is not defined\n'
b
diff -r 48d39ee9eb30 -r bf107d23242b lastz_d.xml
--- a/lastz_d.xml Thu Jan 22 18:28:16 2026 +0000
+++ b/lastz_d.xml Thu Feb 05 12:52:06 2026 +0000
[
@@ -1,13 +1,10 @@
-<tool id="lastz_d_wrapper" name="LASTZ_D" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@">
-    <description>: estimate substitution scores matrix</description>
+<tool id="lastz_d_wrapper" name="LASTZ_D" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">
+    <description>estimate substitution scores matrix</description>
     <macros>
      <import>lastz_macros.xml</import>
     </macros>
     <expand macro="bio_tools"/>
-    <requirements>
-        <requirement type="package" version="@TOOL_VERSION@">lastz</requirement>
-        <requirement type="package" version="1.0.8">bzip2</requirement>
-    </requirements>
+    <expand macro="requirements"/>
     <command detect_errors="exit_code"><![CDATA[
         lastz_D
         @TARGET_INPUT_COMMAND_LINE@
@@ -30,14 +27,18 @@
     </outputs>
     <tests>
         <test>
-            <param name="ref_source" value="history" />
-            <param name="target" value="chrM_human.fa" />
+            <conditional name="source">
+                <param name="ref_source" value="history" />
+                <param name="target" value="chrM_human.fa" />
+            </conditional>
             <param name="query" value="chrM_mouse.fa" />
             <output name="output" value="lastz_d_test1.out" />
         </test>
         <test>
-            <param name="ref_source" value="history" />
-            <param name="target" value="chrM_human.fa" />
+            <conditional name="source">
+                <param name="ref_source" value="history" />
+                <param name="target" value="chrM_human.fa" />
+            </conditional>
             <param name="query" value="chrM_mouse.fa" />
             <param name="score_file" value="lastz_d_ctrl_file.txt" />
             <output name="output" value="lastz_d_test2.out" />
b
diff -r 48d39ee9eb30 -r bf107d23242b lastz_macros.xml
--- a/lastz_macros.xml Thu Jan 22 18:28:16 2026 +0000
+++ b/lastz_macros.xml Thu Feb 05 12:52:06 2026 +0000
[
@@ -1,6 +1,16 @@
 <macros>
-    <token name="@TOOL_VERSION@">1.04.22</token>
+    <token name="@TOOL_VERSION@">1.04.52</token>
     <token name="@VERSION_SUFFIX@">0</token>
+    <token name="@PROFILE@">25.0</token>
+    <xml name="requirements">
+        <requirements>
+            <requirement type="package" version="@TOOL_VERSION@">lastz</requirement>
+            <requirement type="package" version="1.14">samtools</requirement>
+            <requirement type="package" version="3.6.3">r-base</requirement>
+            <requirement type="package" version="1.0.8">bzip2</requirement>
+        </requirements>
+    </xml>
+
     <token name="@TARGET_INPUT_COMMAND_LINE@"><![CDATA[
         #if $source.ref_source=="history":
             #if $source.target.is_of_type('fasta.gz'):
b
diff -r 48d39ee9eb30 -r bf107d23242b test-data/test7.out
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/test7.out Thu Feb 05 12:52:06 2026 +0000
b
@@ -0,0 +1,2 @@
+read1 250 0 248 + chrM 16569 576 827 174 254 255 AS:i:9036 cg:Z:19M2D30M1D91M1D12M3I32M2D61M
+read2 250 0 250 + chrM 16569 829 1082 180 259 255 AS:i:10573 cg:Z:35M2D80M4I9M7D44M2I76M
b
diff -r 48d39ee9eb30 -r bf107d23242b test-data/test7.png
b
Binary file test-data/test7.png has changed
b
diff -r 48d39ee9eb30 -r bf107d23242b test-data/test8.bam
b
Binary file test-data/test8.bam has changed