# HG changeset patch # User galaxyp # Date 1493819597 14400 # Node ID a85fbebe8b2ff8fbf8aef4b8165ad0f93c1b8a0e # Parent a94dc3d469cb7a4c91bb8551e23909a0c18808ed planemo upload for repository https://github.com/galaxyproject/tools-iuc/tree/master/tools/dbbuilder commit baa8095b41984515948c6ef2fda7c7e61c945f94 diff -r a94dc3d469cb -r a85fbebe8b2f dbbuilder.xml --- a/dbbuilder.xml Tue May 02 08:52:01 2017 -0400 +++ b/dbbuilder.xml Wed May 03 09:53:17 2017 -0400 @@ -1,4 +1,4 @@ - + gnu-wget @@ -20,20 +20,46 @@ ##set $url = "ftp://ftp.thegpm.org/fasta/cRAP/crap.fasta" #set $url = "https://raw.githubusercontent.com/pravs3683/cRAP/master/cRAP_protein_database.fasta" #set $type = "direct" + #elif $source.from == "HMP" + #set $url = 'http://downloads.hmpdacc.org/data/reference_genomes/body_sites/' + str($source.site) + '.pep.fsa' + #set $type = "direct" + #elif $source.from == "HOMD" + #set $url = 'ftp://ftp.homd.org/human_oral_microbial_genomic_sequences/current/' + str($source.annotation) + #if str($source.annotation).endswith('.tar.gz'): + #set $type = "tgz" + #elif str($source.annotation).endswith('.zip'): + #set $type = "zip" + #end if + #elif $source.from == 'EBI Metagenomics' + #set $url = 'https://www.ebi.ac.uk/metagenomics/projects/' + str($source.ebi_project) + '/samples/' + str($source.ebi_sample) + '/runs/' + str($source.ebi_run) + '/results/versions/' + str($source.ebi_version) + '/sequences/' + str($source.ebi_annotation) + '/chunks/1' + #set $type = "gzip" #elif $source.from == "url" #set $url = $source.url - #set $type = "direct" + #set $type = $source.archive_type #end if #if $type =="direct" - wget -nv '$url' -O '${output_database}' + wget -nv '$url' -O '${output_database}' --no-check-certificate + #elif $type =="zip" + wget -nv '$url' -O tmp.zip --no-check-certificate && zcat -c tmp.zip > '${output_database}' + #elif $type =="gzip" + wget -nv '$url' -O tmp.gz --no-check-certificate && (if `command -v gzcat > /dev/null`; then gzcat tmp.gz; else zcat tmp.gz ; fi) > '${output_database}' + #elif $type =="bzip2" + wget -nv '$url' -O tmp.bz2 --no-check-certificate && bzcat tmp.bz2 > '${output_database}' + #elif $type =="tgz" + wget -nv '$url' -O tmp.tar.gz && tar zxfO tmp.tar.gz > '${output_database}' + #elif $type =="tbz" + wget -nv '$url' -O tmp.tar.bz && tar jxfO tmp.tar.bz > '${output_database}' #end if ]]> - + + + + @@ -67,19 +93,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + - + @@ -90,6 +157,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + 10.1093/nar/gkw1099 + 10.1093/nar/gkv1195 + 10.1093/database/baq013 + 10.1038/nature11209 + 10.1038/nature11234 +