Mercurial > repos > iuc > merquryfk_asmplot
comparison asmplot.xml @ 0:f4ab1b067529 draft
planemo upload for repository https://github.com/thegenemyers/MERQURY.FK commit a3bca7925574e058336e55d80e8390e95af770a7
| author | iuc |
|---|---|
| date | Tue, 25 Feb 2025 13:35:13 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:f4ab1b067529 |
|---|---|
| 1 <tool id="merquryfk_asmplot" name="MerquryFK ASMplot" version="@VERSION@+galaxy@VERSION_SUFFIX@" profile="24.2"> | |
| 2 <description>Analyzes k-mer spectra for unique, shared, and missing k-mers</description> | |
| 3 <macros> | |
| 4 <import>macros.xml</import> | |
| 5 </macros> | |
| 6 <expand macro="requirements"/> | |
| 7 <command detect_errors="exit_code"><![CDATA[ | |
| 8 #set ASSEMBLY1="assembly."+$assembly_1.ext | |
| 9 ln -s '$reads' assembly.ktab && | |
| 10 ln -s '$assembly_1' $ASSEMBLY1 && | |
| 11 #if $assembly_2: | |
| 12 #set ASSEMBLY2="assembly2."+$assembly_2.ext | |
| 13 ln -s '$assembly_2' $ASSEMBLY2 && | |
| 14 #end if | |
| 15 ln -s '$fastk_ktab_files' ktab_files.tar.gz && | |
| 16 tar -xf ktab_files.tar.gz -C '.' && | |
| 17 ASMplot | |
| 18 @PLOTS@ | |
| 19 @MEASURE@ | |
| 20 @GRAPHS@ | |
| 21 $pdf | |
| 22 -T\${GALAXY_SLOTS:-1} | |
| 23 assembly.ktab | |
| 24 '$ASSEMBLY1' | |
| 25 #if $assembly_2: | |
| 26 $ASSEMBLY2 | |
| 27 #end if | |
| 28 asmplot | |
| 29 ]]></command> | |
| 30 <inputs> | |
| 31 <param name="reads" type="data" format="fastk_ktab" label="K-mer table (ktab) obtained from FastK tool"/> | |
| 32 <param name="fastk_ktab_files" type="data" format="fastk_ktab_tar" label="Select the TAR file consisting of all intermediate Ktab file from FastK"/> | |
| 33 <param name="assembly_1" type="data" format="fasta,fasta.gz" label="Assembly of genome" help="Must be same genome as the K-mer table was generated from"/> | |
| 34 <param name="assembly_2" type="data" format="fasta,fasta.gz" label="Additional assembly file" optional="true" help="Additional genome against which to compare"/> | |
| 35 <expand macro="plots"/> | |
| 36 <expand macro="sizes"/> | |
| 37 <expand macro="graphs"/> | |
| 38 <expand macro="pdf"/> | |
| 39 </inputs> | |
| 40 <outputs> | |
| 41 <collection name="outputs_png" type="list" label="${tool.name} on ${on_string}: PNG figures"> | |
| 42 <filter>pdf is not True</filter> | |
| 43 <discover_datasets pattern="(?P<designation>.*).png" format="png"/> | |
| 44 </collection> | |
| 45 <collection name="outputs_pdf" type="list" label="${tool.name} on ${on_string}: PDF figures"> | |
| 46 <filter>pdf is True</filter> | |
| 47 <discover_datasets pattern="(?P<designation>.*).pdf" format="pdf"/> | |
| 48 </collection> | |
| 49 </outputs> | |
| 50 <tests> | |
| 51 <test expect_num_outputs="1"> | |
| 52 <param name="reads" value="assembly.ktab"/> | |
| 53 <param name="fastk_ktab_files" ftype="fastk_ktab_tar" location="https://zenodo.org/records/14905247/files/asmplot_ktab.tar.gz"/> | |
| 54 <param name="assembly_1" value="assembly.fasta.gz"/> | |
| 55 <param name="width" value="6.0"/> | |
| 56 <param name="height" value="4.5"/> | |
| 57 <param name="graphs" value="-l,-f,-s"/> | |
| 58 <param name="pdf" value="False"/> | |
| 59 <conditional name="measure"> | |
| 60 <param name="measurement" value="absolute"/> | |
| 61 <param name="max_x" value="2"/> | |
| 62 <param name="max_y" value="1"/> | |
| 63 </conditional> | |
| 64 <output_collection name="outputs_png" type="list" count="3"/> | |
| 65 </test> | |
| 66 <test expect_num_outputs="1"> | |
| 67 <param name="reads" value="assembly.ktab"/> | |
| 68 <param name="fastk_ktab_files" ftype="fastk_ktab_tar" location="https://zenodo.org/records/14905247/files/asmplot_ktab.tar.gz"/> | |
| 69 <param name="assembly_1" value="assembly.fasta.gz"/> | |
| 70 <param name="assembly_2" value="assembly_2.fasta.gz"/> | |
| 71 <param name="width" value="6.0"/> | |
| 72 <param name="height" value="4.5"/> | |
| 73 <param name="graphs" value="-l,-f,-s"/> | |
| 74 <param name="pdf" value="False"/> | |
| 75 <conditional name="measure"> | |
| 76 <param name="measurement" value="absolute"/> | |
| 77 <param name="max_x" value="2"/> | |
| 78 <param name="max_y" value="1"/> | |
| 79 </conditional> | |
| 80 <output_collection name="outputs_png" type="list" count="3"/> | |
| 81 </test> | |
| 82 <test expect_num_outputs="1"> | |
| 83 <param name="reads" value="assembly.ktab"/> | |
| 84 <param name="fastk_ktab_files" ftype="tar" location="https://zenodo.org/records/14905247/files/asmplot_ktab.tar.gz"/> | |
| 85 <param name="assembly_1" value="assembly.fasta.gz"/> | |
| 86 <param name="assembly_2" value="assembly_2.fasta.gz"/> | |
| 87 <param name="width" value="6.0"/> | |
| 88 <param name="height" value="4.5"/> | |
| 89 <param name="graphs" value="-l,-f,-s"/> | |
| 90 <param name="pdf" value="True"/> | |
| 91 <conditional name="measure"> | |
| 92 <param name="measurement" value="absolute"/> | |
| 93 <param name="max_x" value="2"/> | |
| 94 <param name="max_y" value="1"/> | |
| 95 </conditional> | |
| 96 <output_collection name="outputs_pdf" type="list" count="3"/> | |
| 97 </test> | |
| 98 </tests> | |
| 99 <help><![CDATA[ | |
| 100 ASMplot looks at the spectra of the k-mers that: | |
| 101 (a) are in neither genome assembly file or the additional assembly file, | |
| 102 (b) in genome assembly file but not the additional assembly file, | |
| 103 (c) in the additional assembly file but not genome assembly file, and | |
| 104 (d) in both genome assembly file and the additional assembly file. | |
| 105 If the second assembly file is missing, then it looks at the spectra of the read k-mers that are and are not in the first assembly file. | |
| 106 ]]></help> | |
| 107 <expand macro="citation"/> | |
| 108 </tool> |
