Repository 'samtools_fastx'
hg clone https://toolshed.g2.bx.psu.edu/repos/iuc/samtools_fastx

Changeset 4:66e23b11feae (2023-11-20)
Previous changeset 3:b3d99709fe1a (2022-08-15)
Commit message:
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tool_collections/samtools/samtools_fastx commit cd62639660bef041ba14ecff337fb98e84e75d8a
modified:
macros.xml
samtools_fastx.xml
added:
test-data/11.i.fq.expected
test-data/11.i2.fq.expected
test-data/8.i2.fq.expected
b
diff -r b3d99709fe1a -r 66e23b11feae macros.xml
--- a/macros.xml Mon Aug 15 09:16:56 2022 +0000
+++ b/macros.xml Mon Nov 20 22:15:18 2023 +0000
[
@@ -5,7 +5,14 @@
             <yield/>
         </requirements>
     </xml>
+    <!-- NOTE: for some tools only the version of the requirement but not the
+        tool's version is controlled by the TOOL_VERSION token 
+        (because their version is ahead of the requirement version .. 
+         please only bump the minor version in order to let the requirement
+         version catch up eventually). To find the tools check:
+        `grep "<tool" . -r | grep -v VERSION_SUFFIX | cut -d":" -f 1` -->
     <token name="@TOOL_VERSION@">1.15.1</token>
+    <token name="@VERSION_SUFFIX@">2</token>
     <token name="@PROFILE@">20.05</token>
     <token name="@FLAGS@"><![CDATA[
         #set $flags = 0
@@ -212,37 +219,7 @@
 
     <xml name="citations">
         <citations>
-            <citation type="bibtex">
-                @misc{SAM_def,
-                title={Definition of SAM/BAM format},
-                url = {https://samtools.github.io/hts-specs/},}
-            </citation>
-            <citation type="doi">10.1093/bioinformatics/btp352</citation>
-            <citation type="doi">10.1093/bioinformatics/btr076</citation>
-            <citation type="doi">10.1093/bioinformatics/btr509</citation>
-            <citation type="bibtex">
-                @misc{Danecek_et_al,
-                Author={Danecek, P., Schiffels, S., Durbin, R.},
-                title={Multiallelic calling model in bcftools (-m)},
-                url = {http://samtools.github.io/bcftools/call-m.pdf},}
-            </citation>
-            <citation type="bibtex">
-                @misc{Durbin_VCQC,
-                Author={Durbin, R.},
-                title={Segregation based metric for variant call QC},
-                url = {http://samtools.github.io/bcftools/rd-SegBias.pdf},}
-            </citation>
-            <citation type="bibtex">
-                @misc{Li_SamMath,
-                Author={Li, H.},
-                title={Mathematical Notes on SAMtools Algorithms},
-                url = {http://www.broadinstitute.org/gatk/media/docs/Samtools.pdf},}
-            </citation>
-            <citation type="bibtex">
-                @misc{SamTools_github,
-                title={SAMTools GitHub page},
-                url = {https://github.com/samtools/samtools},}
-            </citation>
+            <citation type="doi">10.1093/gigascience/giab008</citation>
         </citations>
     </xml>
     <xml name="version_command">
b
diff -r b3d99709fe1a -r 66e23b11feae samtools_fastx.xml
--- a/samtools_fastx.xml Mon Aug 15 09:16:56 2022 +0000
+++ b/samtools_fastx.xml Mon Nov 20 22:15:18 2023 +0000
[
b'@@ -1,4 +1,4 @@\n-<tool id="samtools_fastx" name="Samtools fastx" version="@TOOL_VERSION@+galaxy0" profile="@PROFILE@">\n+<tool id="samtools_fastx" name="Samtools fastx" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" profile="@PROFILE@">\n     <description>extract FASTA or FASTQ from alignment files</description>\n     <macros>\n         <import>macros.xml</import>\n@@ -160,7 +160,7 @@\n \t    <when value="yes">\n                 <param name="write1st" argument="--i1" type="boolean" truevalue="yes" falsevalue="no" checked="true" label="write first index reads to extra data set" />\n                 <param name="write2nd" argument="--i2" type="boolean" truevalue="yes" falsevalue="no" checked=\'true\' label="write second index reads to extra data set" />\n-                <param name="index_format" argument="--index-format" type="text" label="Index format: How to parse barcode and quality tags">\n+                <param argument="--index-format" type="text" label="Index format: How to parse barcode and quality tags">\n                     <help>\n The index-format string describes how to parse the barcode and quality tags, for example:\n    i14i8       the first 14 characters are index 1, the next 8 characters are index 2\n@@ -171,8 +171,8 @@\n                of the tag as index 1\n                     </help>\n                 </param>\n-                <param name="barcode_tag" argument="--barcode-tag" type="text" optional="True" label="Barcode tag [default: BC]"/>\n-                <param name="quality_tag" argument="--quality-tag" type="text" optional="True" label="Quality tag [default: QT]"/>\n+                <param argument="--barcode-tag" type="text" optional="True" label="Barcode tag [default: BC]"/>\n+                <param argument="--quality-tag" type="text" optional="True" label="Quality tag [default: QT]"/>\n             </when>\n         </conditional>\n     </inputs>\n@@ -236,7 +236,7 @@\n     </outputs>\n     <tests>\n         <!-- tests from original Galaxy tool -->\n-        <test>\n+        <test expect_num_outputs="1">\n             <param name="input" value="samtools_fastx-in1.bam" ftype="bam" />\n             <conditional name="output_fmt_cond">\n                 <param name="output_fmt_select" value="fasta" />\n@@ -244,7 +244,7 @@\n             <param name="outputs" value="other" />\n             <output name="output" file="samtools_fastx-out1.fasta" ftype="fasta" />\n         </test>\n-        <test>\n+        <test expect_num_outputs="3">\n             <param name="input" value="samtools_fastx-in2.bam" ftype="bam" />\n             <conditional name="output_fmt_cond">\n                 <param name="output_fmt_select" value="fastqsanger" />\n@@ -254,7 +254,7 @@\n             <output name="forward" file="samtools_fastx-out2-2.fastq" ftype="fastqsanger" />\n             <output name="reverse" file="samtools_fastx-out2-3.fastq" ftype="fastqsanger" />\n         </test>\n-        <test>\n+        <test expect_num_outputs="3">\n             <param name="input" value="samtools_fastx-in3.sam" ftype="sam" />\n             <conditional name="output_fmt_cond">\n                 <param name="output_fmt_select" value="fasta" />\n@@ -267,7 +267,7 @@\n         <!-- tests from original Galaxy tool with gz output. for some reason gzip (which is used\n              for compressing stdout does not give exactly the same file contents .. the other\n              compressed files seem to)-->\n-        <test>\n+        <test expect_num_outputs="1">\n             <param name="input" value="samtools_fastx-in1.bam" ftype="bam" />\n             <conditional name="output_fmt_cond">\n                 <param name="output_fmt_select" value="fasta.gz" />\n@@ -275,7 +275,7 @@\n             <param name="outputs" value="other" />\n             <output name="output" file="samtools_fastx-out1.fasta.gz" ftype="fasta.gz" decompress="true"/>\n         </test>\n-        <test>\n+        <test expect_num_outputs="3">\n             <param name="input" value="samtools_fastx-in2.bam" ftype="bam" />\n             <cond'..b'*i*"/>\n             </conditional>\n@@ -432,7 +436,7 @@\n         </test>\n         <!--# -t flag-->\n         <!--test_cmd($opts, out=>\'bam2fq/2.stdout.expected\', out_map=>{\'1.fq\' => \'bam2fq/6.1.fq.expected\', \'2.fq\' => \'bam2fq/6.2.fq.expected\', \'s.fq\' => \'bam2fq/6.s.fq.expected\'}, cmd=>"$$opts{bin}/samtools fastq @$threads -N -t -s $$opts{path}/s.fq -1 $$opts{path}/1.fq -2 $$opts{path}/2.fq $$opts{path}/dat/bam2fq.005.sam");-->\n-        <test>\n+        <test expect_num_outputs="4">\n             <param name="input" value="bam2fq.005.sam" ftype="sam" />\n             <conditional name="output_fmt_cond">\n                 <param name="output_fmt_select" value="fastqsanger" />\n@@ -447,7 +451,7 @@\n         </test>\n         <!--# -T flag-->\n         <!--test_cmd($opts, out=>\'bam2fq/2.stdout.expected\', out_map=>{\'1.fq\' => \'bam2fq/7.1.fq.expected\', \'2.fq\' => \'bam2fq/7.2.fq.expected\', \'s.fq\' => \'bam2fq/7.s.fq.expected\'}, cmd=>"$$opts{bin}/samtools fastq @$threads -N -t -T MD,ia -s $$opts{path}/s.fq -1 $$opts{path}/1.fq -2 $$opts{path}/2.fq $$opts{path}/dat/bam2fq.005.sam");-->\n-        <test>\n+        <test expect_num_outputs="4">\n             <param name="input" value="bam2fq.005.sam" ftype="sam" />\n             <conditional name="output_fmt_cond">\n                 <param name="output_fmt_select" value="fastqsanger" />\n@@ -463,7 +467,7 @@\n         </test>\n         <!--# -i flag with no index-->\n         <!--test_cmd($opts, out=>\'bam2fq/2.stdout.expected\', out_map=>{\'1.fq\' => \'bam2fq/7.1.fq.expected\', \'2.fq\' => \'bam2fq/7.2.fq.expected\', \'s.fq\' => \'bam2fq/7.s.fq.expected\'}, cmd=>"$$opts{bin}/samtools fastq @$threads -N -t -i -T MD,ia -s $$opts{path}/s.fq -1 $$opts{path}/1.fq -2 $$opts{path}/2.fq $$opts{path}/dat/bam2fq.005.sam");-->\n-        <test>\n+        <test expect_num_outputs="6">\n             <param name="input" value="bam2fq.005.sam" ftype="sam" />\n             <conditional name="output_fmt_cond">\n                 <param name="output_fmt_select" value="fastqsanger" />\n@@ -481,10 +485,12 @@\n             <output name="reverse" file="11.2.fq.expected" ftype="fastqsanger" />\n             <output name="singletons" file="11.s.fq.expected" ftype="fastqsanger" />\n             <output name="output"  file="2.stdout.expected" ftype="fastqsanger" />\n+            <output name="i1"  file="11.i.fq.expected" ftype="fastqsanger" />\n+            <output name="i2"  file="11.i2.fq.expected" ftype="fastqsanger" />\n         </test>\n         <!--# -i flag with index-->\n         <!--test_cmd($opts, out=>\'bam2fq/2.stdout.expected\', out_map=>{\'1.fq\' => \'bam2fq/8.1.fq.expected\', \'2.fq\' => \'bam2fq/8.2.fq.expected\', \'s.fq\' => \'bam2fq/8.s.fq.expected\', \'i.fq\' => \'bam2fq/8.i.fq.expected\'}, cmd=>"$$opts{bin}/samtools fastq @$threads \\-\\-barcode-tag BC -i \\-\\-index-format \'n2i2\' \\-\\-i1 $$opts{path}/i.fq -s $$opts{path}/s.fq -1 $$opts{path}/1.fq -2 $$opts{path}/2.fq $$opts{path}/dat/bam2fq.004.sam");-->\n-        <test>\n+        <test expect_num_outputs="6">\n             <param name="input" value="bam2fq.004.sam" ftype="sam" />\n             <conditional name="output_fmt_cond">\n                 <param name="output_fmt_select" value="fastqsanger" />\n@@ -493,7 +499,7 @@\n             <param name="outputs" value="r1,r2,s,other" />\n             <conditional name="idxout_cond">\n                 <param name="idxout_select" value="yes"/>\n-                <param name="write1st" value="yes"/>\n+                <param name="write1st" value="true"/>\n                 <param name="barcode_tag" value="BC"/>\n                 <param name="index_format" value="n2i2"/>\n             </conditional>\n@@ -502,6 +508,7 @@\n             <output name="singletons" file="8.s.fq.expected" ftype="fastqsanger" />\n             <output name="output"  file="2.stdout.expected" ftype="fastqsanger" />\n             <output name="i1"  file="8.i.fq.expected" ftype="fastqsanger" />\n+            <output name="i2"  file="8.i2.fq.expected" ftype="fastqsanger" />\n         </test>\n     </tests>\n     <help><![CDATA[\n'
b
diff -r b3d99709fe1a -r 66e23b11feae test-data/11.i.fq.expected
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/test-data/11.i.fq.expected Mon Nov 20 22:15:18 2023 +0000
b
@@ -0,0 +1,12 @@
+@ref1_grp1_p001/1 1:N:0:AC+GT MD:Z:10 RG:Z:grp1 BC:Z:AC-GT
+NG
++
+""
+@ref1_grp1_p002/1 1:N:0:AATT+CCGG MD:Z:10 RG:Z:grp1 BC:Z:AATT+CCGG
+TT
++
+""
+@ref1_grp2_p001/1 1:N:0:TG+CA MD:Z:8 RG:Z:grp2 BC:Z:TG+CA QT:Z:ab+cd
+NC
++
++c