Mercurial > repos > iuc > fastk_fastk
changeset 5:8049cb5537b7 draft
planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/fastk commit 9412d515121c3b2d55d3b2040dc04869866eae66
author | iuc |
---|---|
date | Fri, 06 Dec 2024 15:47:41 +0000 |
parents | 9f8c786bd424 |
children | 34245579d255 |
files | fastk.xml macros.xml test-data/test01.hist test-data/test02.hist test-data/test03.hist |
diffstat | 5 files changed, 21 insertions(+), 20 deletions(-) [+] |
line wrap: on
line diff
--- a/fastk.xml Tue Nov 05 10:25:08 2024 +0000 +++ b/fastk.xml Fri Dec 06 15:47:41 2024 +0000 @@ -5,7 +5,7 @@ </macros> <expand macro="requirements" /> <command detect_errors="exit_code"><![CDATA[ - mkdir -p outfiles/ktabfiles && + mkdir -p ktabfiles && #if $infile.is_of_type("fastq"): #set INPUTFILE="input.fastq" #elif $infile.is_of_type("fastq.gz"): @@ -21,17 +21,17 @@ #elif $sorted_table.sorted_table_option == 'yes_with_custom': -t$sorted_table_cutoff #end if - -T\${GALAXY_SLOTS:-8} -Noutfiles/output -Poutfiles/ktabfiles + -T\${GALAXY_SLOTS:-8} -Noutput -Pktabfiles #if $sorted_table.sorted_table_option == 'yes_with_default': - && Tabex outfiles/output.ktab -t${sorted_table.tabex_threshold_for_default} LIST > '$tabex_hist' - && cp outfiles/.*.ktab* outfiles/ktabfiles - && cp outfiles/*.ktab outfiles/ktabfiles + && Tabex output.ktab -t${sorted_table.tabex_threshold_for_default} LIST > '$tabex_hist' + && cp .*.ktab* ktabfiles/ + && cp *.ktab ktabfiles/ #elif $sorted_table.sorted_table_option == 'yes_with_custom': - && Tabex outfiles/output.ktab -t${sorted_table.tabex_threshold_for_custom} LIST > '$tabex_hist' - && cp outfiles/.*.ktab* outfiles/ktabfiles - && cp outfiles/*.ktab outfiles/ktabfiles + && Tabex output.ktab -t${sorted_table.tabex_threshold_for_custom} LIST > '$tabex_hist' + && cp *.ktab* ktabfiles/ + && cp *.ktab ktabfiles/ #end if - && tar -c -f fastk.tar ./outfiles/ + && tar -cf fastk.tar ktabfiles/ ]]></command> <inputs> <param name="infile" type="data" format="fasta,fasta.gz,fastq,fastq.gz,cram,unsorted.bam,sam" label="Input file"/> @@ -54,8 +54,8 @@ </inputs> <outputs> <data name="fastk_out" format="tar" from_work_dir="fastk.tar" label="${tool.name} on ${on_string}: FastK files"/> - <data name="fastk_hist_out" format="fastk_hist" from_work_dir="outfiles/output.hist" label="${tool.name} on ${on_string}: FastK hist"/> - <data name="fastk_ktab_out" format="fastk_ktab" from_work_dir="outfiles/ktabfiles/output.ktab" label="${tool.name} on ${on_string}: FastK ktab"> + <data name="fastk_hist_out" format="fastk_hist" from_work_dir="output.hist" label="${tool.name} on ${on_string}: FastK hist"/> + <data name="fastk_ktab_out" format="fastk_ktab" from_work_dir="ktabfiles/output.ktab" label="${tool.name} on ${on_string}: FastK ktab"> <filter> sorted_table['sorted_table_option'] != 'no' </filter> </data> <data name="tabex_hist" format="txt" label="${tool.name} on ${on_string}: Tabex output"> @@ -63,12 +63,14 @@ </data> </outputs> <tests> - <!-- TEST 1 --> + <!-- TEST 1 --> <test expect_num_outputs="2"> <param name="infile" value="input01.fasta.gz"/> + <param name="kmer_size" value="40"/> + <output name="fastk_hist_out" file="test01.hist" ftype="fastk_hist"/> <output name="fastk_out" ftype="tar"> <assert_contents> - <has_archive_member path="./outfiles/output.hist"/> + <has_archive_member path="ktabfiles"/> </assert_contents> </output> </test> @@ -78,10 +80,10 @@ <conditional name="sorted_table"> <param name="sorted_table_option" value="yes_with_default"/> </conditional> + <output name="fastk_hist_out" file="test02.hist" ftype="fastk_hist"/> <output name="fastk_out" ftype="tar"> <assert_contents> - <has_archive_member path="./outfiles/output.hist"/> - <has_archive_member path="./outfiles/ktabfiles/output.ktab"/> + <has_archive_member path="ktabfiles/output.ktab"/> </assert_contents> </output> <output name="tabex_hist" file="test02.tabex.txt"/> @@ -93,10 +95,10 @@ <param name="sorted_table_option" value="yes_with_custom"/> <param name="sorted_table_cutoff" value="5"/> </conditional> + <output name="fastk_hist_out" file="test03.hist" ftype="fastk_hist"/> <output name="fastk_out" ftype="tar"> <assert_contents> - <has_archive_member path="./outfiles/output.hist"/> - <has_archive_member path="./outfiles/ktabfiles/output.ktab"/> + <has_archive_member path="ktabfiles/output.ktab"/> </assert_contents> </output> <output name="tabex_hist" file="test03.tabex.txt"/> @@ -115,7 +117,6 @@ 3. A tar file comprising of hidden .ktab files that can be used for downstream FASTK tools. - ]]></help> <expand macro="citations"/> -</tool> \ No newline at end of file +</tool>
--- a/macros.xml Tue Nov 05 10:25:08 2024 +0000 +++ b/macros.xml Fri Dec 06 15:47:41 2024 +0000 @@ -1,6 +1,6 @@ <macros> <token name="@TOOL_VERSION@">1.1.0</token> - <token name="@VERSION_SUFFIX@">0</token> + <token name="@VERSION_SUFFIX@">1</token> <xrefs> <xref type="bio.tools">fastk</xref> </xrefs>