changeset 21:de0f7e8a007a draft default tip

Deleted selected files
author da-intersect
date Wed, 10 Apr 2013 20:48:01 -0400
parents 82a9042f321b
children
files datatypes_conf.xml jars/protein_generator.jar jars/results_analyser.jar jars/samifier.jar jars/virtual_protein_merger.jar protein_generator.sh protein_generator.xml protein_merger.sh protein_merger.xml result_analyser.sh result_analyser.xml samifier.sh samifier.xml tar.py
diffstat 14 files changed, 0 insertions(+), 344 deletions(-) [+]
line wrap: on
line diff
--- a/datatypes_conf.xml	Thu Apr 11 10:36:05 2013 +1000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,12 +0,0 @@
-<?xml version="1.0"?>
-<datatypes>
-  <datatype_files>
-    <datatype_file name="tar.py"/>
-  </datatype_files>
-  <registration>
-    <datatype extension="tar" type="galaxy.datatypes.tar:Tar" display_in_upload="true"/>
-  </registration>
-  <sniffers>
-    <sniffer type="galaxy.datatypes.tar:Tar"/>
-  </sniffers>
-</datatypes>
\ No newline at end of file
Binary file jars/protein_generator.jar has changed
Binary file jars/results_analyser.jar has changed
Binary file jars/samifier.jar has changed
Binary file jars/virtual_protein_merger.jar has changed
--- a/protein_generator.sh	Thu Apr 11 10:36:05 2013 +1000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,31 +0,0 @@
-#!/bin/bash
-
-if (type -p java >> /dev/null); then
-    _java=java
-elif [[ -n "$JAVA_HOME" ]] && [[ -x "$JAVA_HOME/bin/java" ]];  then
-    _java="$JAVA_HOME/bin/java"
-else
-    echo "You must install java before runing this tool"
-    exit 1
-fi
-
-if [[ "$_java" ]]; then
-    version=$("$_java" -version 2>&1 | awk -F '"' '/version/ {print $2}')
-    if ! [[ "$version" > "1.6" ]]; then
-        echo "Java version should be > 1.6"
-	exit 1
-    fi
-fi
-
-if [ $# -eq 0 ]
-then
-  echo "USAGE ap11Runner.sh APPNAME [ARGS]";
-  exit;
-fi
-
-DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-
-jar_path="${DIR}/jars/${1}"
-shift
-
-java -jar $jar_path $@
--- a/protein_generator.xml	Thu Apr 11 10:36:05 2013 +1000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,56 +0,0 @@
-<tool id="protgenerator22" name="Protein Generator" version="2.0.1">
-        <description>Protein Generator</description>
-        <command interpreter="bash">
-       	protein_generator.sh protein_generator.jar 
-        -d "$databasename" 
-        -f "$genomeFile" 
-        #if $GlimmerFile
-        	-g "$GlimmerFile"
-        #end if
-        #if $SplitInterval
-        	-i "$SplitInterval"
-        #end if
-        	-o "$output1"
-        #if $condition1.gffFile == "yes"
-		-p "$output2"
-	#end if
-	#if $condition2.accessionFile == "yes"
-		-q "$output3"
-	#end if
-	#if $trans_tab_file
-		-t "$trans_tab_file"
-	#end if
-        </command>
-        <inputs>
-        	<param name="databasename" type="text" label="Database name" />
-        	<param name="genomeFile" type="data" format="faa" label="Select genome file" help="Genome file in gff format" />
-
-        	<param name="GlimmerFile" type="data" format="txt" label="Select Glimmer File" help="Glimmer txt file. Can't be used with the Split Interval" optional="true" />
-		<param name="SplitInterval" type="integer" label="Size of the intervals" help="Size of the intervals (number of codons) into which the genome will be split. Can't be used with the Glimmer File" optional="true" />
-
-		<param name="trans_tab_file" type="data" format="txt" label="Select Translation Table File" help="File containing a mapping of codons to amino acids, in the format used by NCBI." optional="true" />
-		<conditional name="condition1">
-			<param name="gffFile" type="select" help="write the GFF file">
-				<option value="yes" selected="True">Yes</option>
-				<option value="no" selected="False">No</option>
-			</param>
-		</conditional>
-		<conditional name="condition2">
-			<param name="accessionFile" type="select" label="Accession File" help="Write the accession file">
-				<option value="yes" selected="True">Yes</option>
-				<option value="no" selected="False">No</option>
-			</param>
-		</conditional>
-	</inputs>
-        <outputs>
-                <data format="sam" name="output1" />
-		<data format="gff" name="output2" label="GFF file">
-			<filter>condition1['gffFile'] == "yes"</filter>
-		</data>
-                <data format="txt" name="output3" label="Accession File">
-                	<filter>condition2['accessionFile'] == "yes"</filter>
-                </data>
-        </outputs>
-        <help>
-        </help>
-</tool>
--- a/protein_merger.sh	Thu Apr 11 10:36:05 2013 +1000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,38 +0,0 @@
-#!/bin/bash
-
-if (type -p java >> /dev/null); then
-    _java=java
-elif [[ -n "$JAVA_HOME" ]] && [[ -x "$JAVA_HOME/bin/java" ]];  then
-    _java="$JAVA_HOME/bin/java"
-else
-    echo "You must install java before runing this tool"
-    exit 1
-fi
-
-if [[ "$_java" ]]; then
-    version=$("$_java" -version 2>&1 | awk -F '"' '/version/ {print $2}')
-    if ! [[ "$version" > "1.6" ]]; then
-        echo "Java version should be > 1.6"
-	exit 1
-    fi
-fi
-
-if [ $# -eq 0 ]
-then
-  echo "USAGE ap11Runner.sh APPNAME [ARGS]";
-  exit;
-fi
-
-DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-
-jar_path="${DIR}/jars/${1}"
-shift
-tar_file="$1"
-shift
-temp_dir=$(basename "$tar_file")
-
-mkdir -p /tmp/$temp_dir
-
-tar -C /tmp/$temp_dir -xvf $tar_file
-java -jar $jar_path $@ -c "/tmp/$temp_dir"
-rm -rf "/tmp/$temp_dir"
--- a/protein_merger.xml	Thu Apr 11 10:36:05 2013 +1000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,21 +0,0 @@
-<tool id="protmerger2" name="Protein Merger" version="2.0.1">
-        <description>Virtual Protein Merger</description>
-        <command interpreter="bash">
-        protein_merger.sh virtual_protein_merger.jar $chromosome_tar -g "$genomeFile" -o "$output1" 
-        -r "$searchResultsFile" 
-	#if $trans_tab_file
-	-t "$trans_tab_file"
-	#end if
-        </command>
-        <inputs>
-        	<param name="chromosome_tar" type="data" format="tar" label="Select chromosome tar file" help="A Tar file containing all the chromosome files" />
-        	<param name="genomeFile" type="data" format="gff" label="Select genome file" help="Genome file in gff format" />
-        	<param name="searchResultsFile" type="data" format="txt" label="Select Mascot search result" help="Mascot search results file in txt format" />
-		<param name="trans_tab_file" type="data" format="txt" label="Select Translation Table File" help="File containing a mapping of codons to amino acids, in the format used by NCBI." optional="True"/>
-	</inputs>
-        <outputs>
-                <data format="sam" name="output1" />
-        </outputs>
-        <help>
-        </help>
-</tool>
--- a/result_analyser.sh	Thu Apr 11 10:36:05 2013 +1000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,39 +0,0 @@
-#!/bin/bash
-
-if (type -p java >> /dev/null); then
-    _java=java
-elif [[ -n "$JAVA_HOME" ]] && [[ -x "$JAVA_HOME/bin/java" ]];  then
-    _java="$JAVA_HOME/bin/java"
-else
-    echo "You must install java before runing this tool"
-    exit 1
-fi
-
-if [[ "$_java" ]]; then
-    version=$("$_java" -version 2>&1 | awk -F '"' '/version/ {print $2}')
-    if ! [[ "$version" > "1.6" ]]; then
-        echo "Java version should be > 1.6"
-	exit 1
-    fi
-fi
-
-if [ $# -eq 0 ]
-then
-  echo "USAGE ap11Runner.sh APPNAME [ARGS]";
-  exit;
-fi
-
-DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-
-jar_path="${DIR}/jars/${1}"
-chr_path="${DIR}/chromosome"
-shift
-tar_file="$1"
-shift
-temp_dir=$(basename "$tar_file")
-
-mkdir -p /tmp/$temp_dir
-
-tar -C /tmp/$temp_dir -xvf $tar_file
-java -jar $jar_path $@ -c "/tmp/$temp_dir"
-rm -rf "/tmp/$temp_dir"
--- a/result_analyser.xml	Thu Apr 11 10:36:05 2013 +1000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,31 +0,0 @@
-<tool id="resanalyser2" name="Result Analyser" version="2.0.1">
-        <description>Result Analyser</description>
-        <command interpreter="bash">
-        result_analyser.sh results_analyser.jar $chromosome_tar -g "$genomeFile" -m "$mapping" -o "$output1" -r "$searchResultsFile" 
-        #if $reportId
-        -rep "$reportId"
-        #end if
-        #if $reportList
-        -replist "$reportList"
-        #end if
-        #if $sqlQuery
-        -sql "$sqlQuery"
-        #end if
-        </command>
-        <inputs>
-        	<param name="chromosome_tar" type="data" format="tar" label="Select chromosome tar file" help="A Tar file containing all the chromosome files" />
-        	<param name="genomeFile" type="data" format="gff" label="Select genome file" help="Genome file in gff format" />
-        	<param name="searchResultsFile" type="data" format="txt" label="Select Mascot search result" help="Mascot search results file in txt format" />
-        	<param name="mapping" type="data" format="txt" label="Select file mapping" help="File mapping protein identifier to ordered locus name" />
-
-		<param name="reportId" optional="true" type="data" format="txt" label="Select reportId" help="Access a built in report query" />
-		<param name="reportList" optional="true" type="data" format="txt" label="Select reportList" help="A file containing all the pre-built SQL queries" />
-		<param name="sqlQuery" optional="true" type="data" format="txt" label="Select SQL Query" help="Filters the result through the use of a SQL statement to the output file" />
-
-	</inputs>
-        <outputs>
-                <data format="sam" name="output1" />
-        </outputs>
-        <help>
-        </help>
-</tool>
--- a/samifier.sh	Thu Apr 11 10:36:05 2013 +1000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,39 +0,0 @@
-#!/bin/bash
-
-if (type -p java >> /dev/null); then
-    _java=java
-elif [[ -n "$JAVA_HOME" ]] && [[ -x "$JAVA_HOME/bin/java" ]];  then
-    _java="$JAVA_HOME/bin/java"
-else
-    echo "You must install java before runing this tool"
-    exit 1
-fi
-
-if [[ "$_java" ]]; then
-    version=$("$_java" -version 2>&1 | awk -F '"' '/version/ {print $2}')
-    if ! [[ "$version" > "1.6" ]]; then
-        echo "Java version should be > 1.6"
-	exit 1
-    fi
-fi
-
-if [ $# -eq 0 ]
-then
-  echo "USAGE ap11Runner.sh APPNAME [ARGS]";
-  exit;
-fi
-
-DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
-
-jar_path="${DIR}/jars/${1}"
-chr_path="${DIR}/chromosome"
-shift
-tar_file="$1"
-shift
-temp_dir=$(basename "$tar_file")
-
-mkdir -p /tmp/$temp_dir
-
-tar -C /tmp/$temp_dir -xvf $tar_file
-java -jar $jar_path $@ -c "/tmp/$temp_dir"
-rm -rf "/tmp/$temp_dir"
--- a/samifier.xml	Thu Apr 11 10:36:05 2013 +1000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,46 +0,0 @@
-<tool id="samifier2" name="Samifier" version="2.0.1">
-        <description>Samifier vX.X</description>
-        <command interpreter="bash">
-        samifier.sh samifier.jar $chromosome_tar -g "$genome" -m "$mapping" -o "$output1" -r "$mascot"
-	#if $score_thresold
-	-s "$score_thresold"
-	#end if
-	#if $condition2.tool_option2 == "yes"
-	-l "$output2"
-	#end if
-	#if $condition3.tool_option3 == "yes"
-	-b "$output3"
-	#end if
-        </command>
-        <inputs>
-        	<param name="chromosome_tar" type="data" format="tar" label="Select chromosome tar file" help="A Tar file containing all the chromosome files" />
-        	<param name="genome" type="data" format="gff" label="Select genome file" help="Genome file in gff format" />
-        	<param name="mascot" type="data" format="txt" label="Select Mascot search result" help="Mascot search results file in txt format" />
-        	<param name="mapping" type="data" format="txt" label="Select file mapping" help="File mapping protein identifier to ordered locus name" />
-		<param name="score_thresold"  type="integer" label="Confidence Score thresold" help="Minimum confidence score for peptides to" optional="true"/>
-
-		<conditional name="condition2">
-			<param name="tool_option2" type="select" label="Write log file" help="Create an output containing the logs">
-				<option value="yes" selected="No">Yes</option>
-				<option value="no" selected="Yes">No</option>
-			</param>
-		</conditional>
-		<conditional name="condition3">
-			<param name="tool_option3" type="select" label="Write output in bed format" help="Output to write IGV regions of interest">
-				<option value="yes" selected="No">Yes</option>
-				<option value="no" selected="Yes">No</option>
-        		</param>
-        	</conditional>
-        </inputs>
-        <outputs>
-                <data format="sam" name="output1" />
-                <data format="txt" name="output2" label="Samifier log file">
-                	<filter>condition2['tool_option2'] == "yes"</filter>
-                </data>
-                <data format="bed" name="output3" label="Samifier Bed">
-                	<filter>condition3['tool_option3'] == "yes"</filter>
-                </data>
-        </outputs>
-        <help>
-        </help>
-</tool>
--- a/tar.py	Thu Apr 11 10:36:05 2013 +1000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,31 +0,0 @@
-from galaxy import eggs
-import pkg_resources
-pkg_resources.require( "bx-python" )
-from galaxy import util
-from galaxy.datatypes.sniff import *
-from galaxy.datatypes.binary import Binary
-import tarfile
-
-class Tar( Binary ):
-    """Class describing a BAM binary file"""
-    file_ext = "tar"
-    def sniff( self, filename ):
-        try:
-            if tarfile.is_tarfile(filename):
-                return True
-            return False
-        except:
-            return False
-    def set_peek( self, dataset, is_multi_byte=False ):
-        if not dataset.dataset.purged:
-            dataset.peek  = "Tar file"
-            dataset.blurb = data.nice_size( dataset.get_size() )
-        else:
-            dataset.peek = 'file does not exist'
-            dataset.blurb = 'file purged from disk'
-    def display_peek( self, dataset ):
-        try:
-            return dataset.peek
-        except:
-            return "Tar file (%s)" % ( data.nice_size( dataset.get_size() ) )
-