changeset 0:13df6c6647fb draft

planemo upload for repository https://github.com/ASaiM/galaxytools/tree/master/tools/group_humann2_uniref_abundances_to_GO commit 313952cc4a20e8fb82380bfbf5ede26217197719
author bebatut
date Mon, 22 Feb 2016 07:11:20 -0500
parents
children 8d3dec059275
files download_datasets.sh group_humann2_uniref_abundances_to_go.xml tool_dependencies.xml
diffstat 3 files changed, 171 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/download_datasets.sh	Mon Feb 22 07:11:20 2016 -0500
@@ -0,0 +1,30 @@
+#!/bin/bash
+
+MY_PATH=`dirname "$0"`
+data_dir=$MY_PATH"/data/"
+
+if [ ! -d $data_dir ]; then
+    mkdir $data_dir
+fi
+
+cd $data_dir
+
+echo "Download required databases"
+echo "==========================="
+
+if [ ! -f "go.obo" ]; then
+    echo "Download basic Gene Ontology..."
+    wget http://geneontology.org/ontology/go.obo
+fi 
+if [ ! -f "goslim_metagenomics.obo" ]; then
+    echo "Download metagenomic slim Gene Ontology..."
+    wget http://www.geneontology.org/ontology/subsets/goslim_metagenomics.obo
+fi
+
+if [ ! -f "map_infogo1000_uniref50.txt" ]; then
+    echo "Download humann2 correspondance between Uniref50 and GO"
+    wget https://bitbucket.org/biobakery/humann2/raw/d1ac153083d48a5384e3b3d3597b9e36b1a4606e/humann2/data/misc/map_infogo1000_uniref50.txt.gz
+    gunzip map_infogo1000_uniref50.txt.gz
+fi
+
+echo ""
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/group_humann2_uniref_abundances_to_go.xml	Mon Feb 22 07:11:20 2016 -0500
@@ -0,0 +1,113 @@
+<tool id="group_humann2_uniref_abundances_to_go" name="Group HUMAnN2 UniRef50 abundances" version="0.1.0">
+    <description>to Gene Ontology (GO) slim terms</description>
+
+    <requirements>
+        <requirement type="package" version="1.9">numpy</requirement>
+        <requirement type="package" version="2.0">humann2</requirement>
+        <requirement type="package" version="0.5.9">goatools</requirement>
+        <requirement type="package" version="0.1">group_humann2_uniref_abundances_to_GO</requirement>
+    </requirements>
+
+    <stdio>
+        <exit_code range="1:" />
+        <regex match="IOError"
+               source="both"
+               level="fatal"
+               description="Python file error" />
+        <regex match="pkg_resources"
+               source="both"
+               level="fatal"
+               description="PKG Error" />
+    </stdio>
+
+    <version_command></version_command>
+
+    <command><![CDATA[
+        \${GROUP_UNIREF_GO_DIR}/group_to_GO_abundances.sh
+            -i $humann2_gene_families_abundance 
+            -o $go_slim_term_abundance
+
+            #if $gene_ontology.gene_ontology_test:
+                -a $gene_ontology.gene_ontology_file
+            #end if
+
+            #if $slim_gene_ontology.slim_gene_ontology_test:
+                -s $slim_gene_ontology.slim_gene_ontology_file
+            #end if
+
+            #if $uniref50_go.uniref50_go_test:
+                -u $uniref50_go.uniref50_go_file
+            #end if
+
+            -g \${GOATOOLS_ROOT_PATH}/scripts/
+            -p \${HUMANN2_DIR}        
+    ]]></command>
+
+    <inputs>
+        <param name="humann2_gene_families_abundance" type="data" 
+            format="tabular,tsv,txt" 
+            label="HUMAnN2 output with UniRef50 gene family abundance" help="(-i)"/>
+
+        <conditional name="gene_ontology">
+            <param name='gene_ontology_test' type='boolean' checked="false" 
+                truevalue='true' falsevalue='false' 
+                label="Use a custom Gene Ontology file?" help="By default, the 
+                used Gene Ontology is the core ontology downloaded on Gene
+                Ontology website"/>
+            <when value="true">
+                <param name="gene_ontology_file" type="data" format="txt" 
+                    label="Gene Ontology" help=""/>
+            </when>
+            <when value="false" />
+        </conditional>
+
+        <conditional name="slim_gene_ontology">
+            <param name='slim_gene_ontology_test' type='boolean' checked="false" 
+                truevalue='true' falsevalue='false' 
+                label="Use a custom slim Gene Ontology file?" help="By default, the 
+                used slim Gene Ontology is the metagenomics slim developed by
+                Jane Lomax and the InterPro group"/>
+            <when value="true">
+                <param name="slim_gene_ontology_file" type="data" format="txt" 
+                    label="Slim Gene Ontology" help=""/>
+            </when>
+            <when value="false" />
+        </conditional>
+
+        <conditional name="uniref50_go">
+            <param name='uniref50_go_test' type='boolean' checked="false" 
+                truevalue='true' falsevalue='false' 
+                label="Use a custom correspondance between UniRef50 and precise
+                GO?" help="By default, the used correspondance is the one
+                proposed in HUMAnN2"/>
+            <when value="true">
+                <param name="uniref50_go_file" type="data" format="txt" 
+                    label="Correspondance between UniRef50 and GO" help=""/>
+            </when>
+            <when value="false" />
+        </conditional>
+    </inputs>
+
+    <outputs>
+        <data format="tsv" name="go_slim_term_abundance" 
+            label="${tool.name} on ${on_string}: GO slim abundance"/>
+    </outputs>
+
+    <tests>
+    </tests>
+
+    <help><![CDATA[
+        **What it does**
+
+        HUMAnN2 is a pipeline to profile the presence/absence and abundance of microbial pathways in community of microbiota sequencing data. One output is a file with UniRef50 gene family abundances. HUMAnN2 proposes a script to regroup Uniref50 to GO, but used GO terms are too precise to get a broad overview of the ontology content.
+
+        The tool described here contains scripts to group UniRef50 abundances obtained using main HUMANn2 script (Gene families) to GO slim terms. GO slim is a subset of the terms in the whole GO. For this tool, metagenomics GO slim terms developed by Jane Lomax and the InterPro group.
+
+        More information on `GitHub repository <https://github.com/ASaiM/group_humann2_uniref_abundances_to_GO>`_.
+
+    ]]></help>
+
+    <citations>
+        <citation type="doi">10.5281/zenodo.31628</citation>
+    </citations>
+</tool>
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tool_dependencies.xml	Mon Feb 22 07:11:20 2016 -0500
@@ -0,0 +1,28 @@
+<?xml version="1.0"?>
+<tool_dependency>
+    <package name="numpy" version="1.9">
+        <repository changeset_revision="3f5ed97e31de" name="package_python_2_7_numpy_1_9" owner="iuc" toolshed="https://testtoolshed.g2.bx.psu.edu" />
+    </package>
+    <package name="humann2" version="2.0">
+        <repository changeset_revision="abe443d7f9e7" name="package_humann_2_0" owner="bebatut" toolshed="https://testtoolshed.g2.bx.psu.edu" />
+    </package>
+    <package name="goatools" version="0.5.9">
+        <repository changeset_revision="adbc6f21f132" name="package_goatools_0_5_9" owner="bebatut" toolshed="https://testtoolshed.g2.bx.psu.edu" />
+    </package>
+    <package name="group_humann2_uniref_abundances_to_GO" version="0.1">
+        <install version="1.0">
+            <actions>
+                <action type="download_by_url">https://github.com/ASaiM/group_humann2_uniref_abundances_to_GO/archive/v0.1.5.zip</action>
+                <action type="move_directory_files">
+                    <source_directory>.</source_directory>
+                    <destination_directory>$INSTALL_DIR/</destination_directory>
+                </action>
+                <action type="set_environment">
+                    <environment_variable action="set_to" name="GROUP_UNIREF_GO_DIR">$INSTALL_DIR/</environment_variable>
+                    <environment_variable action="prepend_to" name="PATH">$INSTALL_DIR/bin</environment_variable>
+                </action>
+            </actions>
+        </install>
+        <readme />
+    </package>
+</tool_dependency>