Mercurial > repos > bgruening > data_manager_sylph_database
comparison data_manager/data_manager_sylph_database.xml @ 0:130224fe2d18 draft default tip
planemo upload for repository https://github.com/bgruening/galaxytools/tree/master/data_managers/data_manager_sylph_database commit 6ac2834ca0a21512c9986e2fb8d0dcda1c4b0e18
| author | bgruening |
|---|---|
| date | Fri, 23 May 2025 09:48:30 +0000 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:130224fe2d18 |
|---|---|
| 1 <tool id="data_manager_sylph_database" name="Download pre-built sylph databases" version="@TOOL_VERSION@+galaxy@VERSION_SUFFIX@" tool_type="manage_data" profile="@PROFILE@"> | |
| 2 <description></description> | |
| 3 <macros> | |
| 4 <token name="@TOOL_VERSION@">0.8.1</token> | |
| 5 <token name="@VERSION_SUFFIX@">0</token> | |
| 6 <token name="@PROFILE@">23.0</token> | |
| 7 <token name="@DB_VERSION@">1</token> | |
| 8 </macros> | |
| 9 <requirements> | |
| 10 <requirement type="package" version="@TOOL_VERSION@">sylph</requirement> | |
| 11 </requirements> | |
| 12 <command detect_errors="exit_code"><![CDATA[ | |
| 13 | |
| 14 #set $file = str($db_link).split('/')[-1] | |
| 15 | |
| 16 mkdir -p '$out_file.extra_files_path' && | |
| 17 wget $db_link && | |
| 18 mv '$file' '$out_file.extra_files_path' && | |
| 19 cp '$dmjson' '$out_file' | |
| 20 ]]></command> | |
| 21 <configfiles> | |
| 22 <configfile name="dmjson"><![CDATA[ | |
| 23 #from datetime import date | |
| 24 #set $file = str($db_link).split('/')[-1] | |
| 25 | |
| 26 { | |
| 27 "data_tables":{ | |
| 28 "sylph_databases":[ | |
| 29 { | |
| 30 "value": "sylph_downloaded_#echo date.today().strftime('%d%m%Y')#_${file}", | |
| 31 "name": "sylph database ${file}", | |
| 32 "path": "${file}", | |
| 33 "clade": "${clades}", | |
| 34 "sylph_tax_identifier": "${name}", | |
| 35 "version": "@DB_VERSION@" | |
| 36 } | |
| 37 ] | |
| 38 } | |
| 39 }]]></configfile> | |
| 40 </configfiles> | |
| 41 <inputs> | |
| 42 <conditional name="db_type"> | |
| 43 <param argument="clades" type="select" label="Type of Databases"> | |
| 44 <option value="prokaryote">Prokaryote databases</option> | |
| 45 <option value="eukaryote">Eukaryote databases</option> | |
| 46 <option value="virus">Virus databases</option> | |
| 47 </param> | |
| 48 <when value="prokaryote"> | |
| 49 <conditional name="db_name"> | |
| 50 <param argument="name" type="select" label="Database"> | |
| 51 <option value="GTDB_r220">GTDB r220</option> | |
| 52 <option value="GTDB_r214">GTDB r214</option> | |
| 53 <option value="OceanDNA">Ocean DNA</option> | |
| 54 <option value="SoilSMAG">Soil MAGs</option> | |
| 55 </param> | |
| 56 <when value="GTDB_r220"> | |
| 57 <param name="db_link" type="select" label="Sylph prokaryote databases"> | |
| 58 <option value="http://faust.compbio.cs.cmu.edu/sylph-stuff/gtdb-r220-c200-dbv1.syldb" selected="true">GTDB-r220 (April 2024) -c 200, more sensitive database</option> | |
| 59 <option value="http://faust.compbio.cs.cmu.edu/sylph-stuff/gtdb-r220-c1000-dbv1.syldb">GTDB-r220 (April 2024) -c 1000 more efficient, less sensitive database</option> | |
| 60 </param> | |
| 61 </when> | |
| 62 <when value="GTDB_r214"> | |
| 63 <param name="db_link" type="select" label="Sylph prokaryote databases"> | |
| 64 <option value="http://faust.compbio.cs.cmu.edu/sylph-stuff/v0.3-c200-gtdb-r214.syldb">GTDB-r214 (April 2023) -c 200, more sensitive database</option> | |
| 65 <option value="http://faust.compbio.cs.cmu.edu/sylph-stuff/v0.3-c1000-gtdb-r214.syldb">GTDB-r214 (April 2023) -c 1000 more efficient, less sensitive database</option> | |
| 66 </param> | |
| 67 </when> | |
| 68 <when value="OceanDNA"> | |
| 69 <param name="db_link" type="select" label="Sylph prokaryote databases"> | |
| 70 <option value="http://faust.compbio.cs.cmu.edu/sylph-stuff/OceanDNA-c200-v0.3.syldb">OceanDNA - ocean MAGs from Nishimura and Yoshizawa, -c 200, more sensitive database</option> | |
| 71 </param> | |
| 72 </when> | |
| 73 <when value="SoilSMAG"> | |
| 74 <param name="db_link" type="select" label="Sylph prokaryote databases"> | |
| 75 <option value="http://faust.compbio.cs.cmu.edu/sylph-stuff/SMAG-c200-v0.3.syldb">SoilSMAG (SMAG) from Ma et al. -c 200, more sensitive database</option> | |
| 76 </param> | |
| 77 </when> | |
| 78 </conditional> | |
| 79 </when> | |
| 80 <when value="eukaryote"> | |
| 81 <conditional name="db_name"> | |
| 82 <param argument="name" type="select" label="Database"> | |
| 83 <option value="FungiRefSeq-2024-07-25">Refseq fungi 2024-07-25</option> | |
| 84 <option value="TaraEukaryoticSMAG">TARA eukaryotic SMAGs</option> | |
| 85 </param> | |
| 86 <when value="FungiRefSeq-2024-07-25"> | |
| 87 <param name="db_link" type="select" label="Sylph eukaryote databases"> | |
| 88 <option value="http://faust.compbio.cs.cmu.edu/sylph-stuff/fungi-refseq-2024-07-25-c200-v0.3.syldb" selected="true">FungiRefSeq-2024-07-25 - Refseq fungi representative genomes collected on 2024-07-25</option> | |
| 89 </param> | |
| 90 </when> | |
| 91 <when value="TaraEukaryoticSMAG"> | |
| 92 <param name="db_link" type="select" label="Sylph eukaryote databases"> | |
| 93 <option value="http://faust.compbio.cs.cmu.edu/sylph-stuff/tara-eukmags-c200-v0.3.syldb">TaraEukaryoticSMAG - TARA eukaryotic SMAGs from Delmont et al. -c 200, more sensitive database</option> | |
| 94 </param> | |
| 95 </when> | |
| 96 </conditional> | |
| 97 </when> | |
| 98 <when value="virus"> | |
| 99 <conditional name="db_name"> | |
| 100 <param argument="name" type="select" label="Database"> | |
| 101 <option value="IMGVR_4.1">IMG/VR 4.1</option> | |
| 102 </param> | |
| 103 <when value="IMGVR_4.1"> | |
| 104 <param name="db_link" type="select" label="Sylph virus databases"> | |
| 105 <option value="http://faust.compbio.cs.cmu.edu/sylph-stuff/imgvr_c200_v0.3.0.syldb" selected="true">IMGVR_4.1 high-confidence viral OTU genomes, -c 200, more sensitive database</option> | |
| 106 </param> | |
| 107 </when> | |
| 108 </conditional> | |
| 109 </when> | |
| 110 </conditional> | |
| 111 </inputs> | |
| 112 <outputs> | |
| 113 <data name="out_file" format="data_manager_json" label="${tool.name}"/> | |
| 114 </outputs> | |
| 115 <tests> | |
| 116 <test expect_num_outputs="1"> | |
| 117 <conditional name="db_type"> | |
| 118 <param name="clades" value="eukaryote"/> | |
| 119 <conditional name="db_name"> | |
| 120 <param name="name" value="FungiRefSeq-2024-07-25"/> | |
| 121 <param name="db_link" value="http://faust.compbio.cs.cmu.edu/sylph-stuff/fungi-refseq-2024-07-25-c200-v0.3.syldb"/> | |
| 122 </conditional> | |
| 123 </conditional> | |
| 124 <output name="out_file"> | |
| 125 <assert_contents> | |
| 126 <has_text text='"sylph_databases":'/> | |
| 127 <has_text_matching expression='"value": "sylph_downloaded_[0-9]{8}_fungi-refseq-2024-07-25-c200-v0.3.syldb"'/> | |
| 128 <has_text text='"name": "sylph database fungi-refseq-2024-07-25-c200-v0.3.syldb"'/> | |
| 129 <has_text_matching expression='"path": "fungi-refseq-2024-07-25-c200-v0.3.syldb"'/> | |
| 130 <has_text text='"clade": "eukaryote"'/> | |
| 131 <has_text text='"sylph_tax_identifier": "FungiRefSeq-2024-07-25"'/> | |
| 132 <has_text text='"version": "@DB_VERSION@"'/> | |
| 133 </assert_contents> | |
| 134 </output> | |
| 135 </test> | |
| 136 <test expect_num_outputs="1"> | |
| 137 <conditional name="db_type"> | |
| 138 <param name="clades" value="prokaryote"/> | |
| 139 <conditional name="db_name"> | |
| 140 <param name="name" value="OceanDNA"/> | |
| 141 <param name="db_link" value="http://faust.compbio.cs.cmu.edu/sylph-stuff/OceanDNA-c200-v0.3.syldb"/> | |
| 142 </conditional> | |
| 143 </conditional> | |
| 144 <output name="out_file"> | |
| 145 <assert_contents> | |
| 146 <has_text text='"sylph_databases":'/> | |
| 147 <has_text_matching expression='"value": "sylph_downloaded_[0-9]{8}_OceanDNA-c200-v0.3.syldb"'/> | |
| 148 <has_text text='"name": "sylph database OceanDNA-c200-v0.3.syldb"'/> | |
| 149 <has_text_matching expression='"path": "OceanDNA-c200-v0.3.syldb"'/> | |
| 150 <has_text text='"clade": "prokaryote"'/> | |
| 151 <has_text text='"sylph_tax_identifier": "OceanDNA"'/> | |
| 152 <has_text text='"version": "@DB_VERSION@"'/> | |
| 153 </assert_contents> | |
| 154 </output> | |
| 155 </test> | |
| 156 </tests> | |
| 157 <help><![CDATA[ | |
| 158 This tool downloads pre-built sylph databases. | |
| 159 -c: the compression parameter. Memory/runtime scale like 1/c; higher c is faster but less sensitive at low coverage. | |
| 160 Default c = 200. The -c for genomes must be than sup or = the -c for reads (strict sup is allowed) | |
| 161 ]]></help> | |
| 162 <citations> | |
| 163 <citation type="doi">10.1038/s41587-024-02412-y</citation> | |
| 164 </citations> | |
| 165 </tool> |
