# HG changeset patch
# User marc-wilkins
# Date 1375836204 14400
# Node ID 66ad014e6975f2e41062f6f76725e43e462e31f7
# Parent afa0439120d88010915b86280e504afe80c23fa4
Uploaded
diff -r afa0439120d8 -r 66ad014e6975 samifier/datatypes_conf.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/samifier/datatypes_conf.xml Tue Aug 06 20:43:24 2013 -0400
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff -r afa0439120d8 -r 66ad014e6975 samifier/protein_generator.jar
Binary file samifier/protein_generator.jar has changed
diff -r afa0439120d8 -r 66ad014e6975 samifier/protein_generator.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/samifier/protein_generator.sh Tue Aug 06 20:43:24 2013 -0400
@@ -0,0 +1,25 @@
+#!/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" >&2
+ 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" >&2
+ exit 1
+ fi
+fi
+
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+
+jar_path="${DIR}/${1}"
+shift
+
+java -Xmx3072M -jar $jar_path $@
diff -r afa0439120d8 -r 66ad014e6975 samifier/protein_generator.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/samifier/protein_generator.xml Tue Aug 06 20:43:24 2013 -0400
@@ -0,0 +1,56 @@
+
+ Protein Generator
+
+ 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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ condition1['gffFile'] == "yes"
+
+
+ condition2['accessionFile'] == "yes"
+
+
+
+
+
diff -r afa0439120d8 -r 66ad014e6975 samifier/protein_merger.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/samifier/protein_merger.sh Tue Aug 06 20:43:24 2013 -0400
@@ -0,0 +1,34 @@
+#!/bin/bash
+
+# Check java version
+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
+
+# Locate the jar directory
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+jar_path="${DIR}/${1}"
+shift
+
+# Untar the chromosome file into a temporary directory
+tar_file="$1"
+shift
+tmp_dir="/tmp/$(basename "$tar_file")"
+mkdir -p $tmp_dir
+tar -C $tmp_dir -xvf $tar_file
+
+# Run the jar and remove the temporary directory
+java -Xmx3072M -jar $jar_path $@ -c "$tmp_dir"
+rm -rf $tmp_dir
diff -r afa0439120d8 -r 66ad014e6975 samifier/protein_merger.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/samifier/protein_merger.xml Tue Aug 06 20:43:24 2013 -0400
@@ -0,0 +1,25 @@
+
+ Virtual Protein Merger
+
+ 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
+ #if $confidence_score
+ -s "$confidence_score"
+ #end if
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff -r afa0439120d8 -r 66ad014e6975 samifier/result_analyser.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/samifier/result_analyser.sh Tue Aug 06 20:43:24 2013 -0400
@@ -0,0 +1,34 @@
+#!/bin/bash
+
+# Check java version
+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
+
+# Locate the jar directory
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+jar_path="${DIR}/${1}"
+shift
+
+# Untar the chromosome file into a temporary directory
+tar_file="$1"
+shift
+tmp_dir="/tmp/$(basename "$tar_file")"
+mkdir -p $tmp_dir
+tar -C $tmp_dir -xvf $tar_file
+
+# Run the jar and remove the temporary directory
+java -Xmx3072M -jar $jar_path $@ -c "$tmp_dir"
+rm -rf $tmp_dir
diff -r afa0439120d8 -r 66ad014e6975 samifier/result_analyser.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/samifier/result_analyser.xml Tue Aug 06 20:43:24 2013 -0400
@@ -0,0 +1,31 @@
+
+ Result Analyser
+
+ 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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff -r afa0439120d8 -r 66ad014e6975 samifier/results_analyser.jar
Binary file samifier/results_analyser.jar has changed
diff -r afa0439120d8 -r 66ad014e6975 samifier/samifier.jar
Binary file samifier/samifier.jar has changed
diff -r afa0439120d8 -r 66ad014e6975 samifier/samifier.sh
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/samifier/samifier.sh Tue Aug 06 20:43:24 2013 -0400
@@ -0,0 +1,34 @@
+#!/bin/bash
+
+# Check java version
+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
+
+# Locate the jar directory
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+jar_path="${DIR}/${1}"
+shift
+
+# Untar the chromosome file into a temporary directory
+tar_file="$1"
+shift
+tmp_dir="/tmp/$(basename "$tar_file")"
+mkdir -p $tmp_dir
+tar -C $tmp_dir -xvf $tar_file
+
+# Run the jar and remove the temporary directory
+java -Xmx3072M -jar $jar_path $@ -c "$tmp_dir"
+rm -rf $tmp_dir
diff -r afa0439120d8 -r 66ad014e6975 samifier/samifier.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/samifier/samifier.xml Tue Aug 06 20:43:24 2013 -0400
@@ -0,0 +1,46 @@
+
+ Samifier
+
+ 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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ condition2['tool_option2'] == "yes"
+
+
+ condition3['tool_option3'] == "yes"
+
+
+
+
+
diff -r afa0439120d8 -r 66ad014e6975 samifier/tar.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/samifier/tar.py Tue Aug 06 20:43:24 2013 -0400
@@ -0,0 +1,30 @@
+from galaxy.datatypes import data
+from galaxy.datatypes.metadata import MetadataElement
+from galaxy.datatypes.binary import Binary
+from galaxy.datatypes import metadata
+from galaxy.datatypes.sniff import *
+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
+ 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"
\ No newline at end of file
diff -r afa0439120d8 -r 66ad014e6975 samifier/virtual_protein_merger.jar
Binary file samifier/virtual_protein_merger.jar has changed