changeset 5:b9c38856e540 draft

planemo upload for repository https://github.com/galaxyproject/tools-iuc/tools/coverm commit 339c91447e45305efa0eed6952ef391db8e5d207
author iuc
date Sun, 12 Nov 2023 14:30:50 +0000
parents 1dcea261abbe
children 28d740f2c0b0
files macros.xml test-data/all_fasta.loc
diffstat 2 files changed, 12 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/macros.xml	Fri Aug 18 09:23:21 2023 +0000
+++ b/macros.xml	Sun Nov 12 14:30:50 2023 +0000
@@ -1,6 +1,6 @@
 <macros>
     <token name="@TOOL_VERSION@">0.6.1</token>
-    <token name="@VERSION_SUFFIX@">2</token>
+    <token name="@VERSION_SUFFIX@">3</token>
     <token name="@PROFILE@">22.01</token>
     <xml name="requirements">
         <requirements>
@@ -74,7 +74,10 @@
             </when>
             <when value="builtin">
                 <param argument="--genome-fasta-files" type="select" multiple="true" label="Reference genome(s)">
-                    <options from_data_table="all_fasta" />
+                    <options from_data_table="all_fasta">
+                        <column name="name" index="2"/>
+                        <column name="value" index="3"/>
+                    </options>
                 </param>
             </when>
         </conditional>
@@ -178,6 +181,8 @@
 ln -s '$ref' '${fn}' &&
 ]]></token>
     <token name="@GENOME_FOR_READS@"><![CDATA[
+        echo "GENOME_FOR_READS mapped.mode.genome.genomic.source=$mapped.mode.genome.genomic.source" &&
+        echo "GENOME_FOR_READS mapped.mode.genome.genomic.genome_fasta_files=$mapped.mode.genome.genomic.genome_fasta_files" &&
             #if $mapped.mode.genome.genomic.source == 'history'
                 #for $i, $genome in enumerate($mapped.mode.genome.genomic.genome_fasta_files)
                     #set $fn = re.sub('[^\s\w\-\\.]', '_', str($genome.element_identifier))
@@ -185,10 +190,8 @@
 ln -s '$genome' '$fn' &&
                 #end for
             #else
-                #for $i, $genome in enumerate($mapped.mode.genome.genomic.genome_fasta_files)
-                    #set $fn = re.sub('[^\s\w\-\\.]', '_', str($genome.fields.path.element_identifier))
-                    #silent $genome_fp.append( $fn )
-ln -s '$genome' '$fn' &&
+                #for $genome in $mapped.mode.genome.genomic.genome_fasta_files
+                    #silent $genome_fp.append($genome)
                 #end for
             #end if
 ]]></token>
--- a/test-data/all_fasta.loc	Fri Aug 18 09:23:21 2023 +0000
+++ b/test-data/all_fasta.loc	Sun Nov 12 14:30:50 2023 +0000
@@ -27,4 +27,6 @@
 #hg18full	hg18	Human (Homo sapiens): hg18 Full	/depot/data2/galaxy/hg18/hg18full.fasta
 #hg19canon	hg19	Human (Homo sapiens): hg19 Canonical	/depot/data2/galaxy/hg19/hg19canon.fasta
 #hg19full	hg19	Human (Homo sapiens): hg19 Full	/depot/data2/galaxy/hg19/hg19full.fasta
-test1tg01	"TestGenome"	${__HERE__}/reference.fasta
\ No newline at end of file
+500kb_value	50kb_dbkey	500kb_name	${__HERE__}/500kb.fna
+1mbp_value	1mbp_dbkey	1mbp_name	${__HERE__}/1mbp.fna
+1mbp
\ No newline at end of file