Skip to content

Commit de124b6

Browse files
update requirements, correct env, sanity check
1 parent 3c3870d commit de124b6

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

translatenucleotide.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python
22

33
# This script is compatible with Python3
44
# Tested with 2to3; no changes made

translatenucleotide.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
#!/bin/bash
2-
echo "Test text"
3-
outlocation=$(mktemp -d /media/GalaxyData/database/files/XXXXXX)
2+
3+
# sanity check
4+
printf "Conda env: $CONDA_DEFAULT_ENV\n"
5+
printf "Python version: $(python --version)\n"
6+
printf "Biopython version: $(conda list | egrep biopython | awk '{print $2}')\n"
7+
printf "Emboss version: $(embossversion 2>&1 | tail -n1)\n"
8+
printf "Bash version: ${BASH_VERSION}\n\n"
9+
10+
outlocation=$(mktemp -d /data/files/XXXXXX)
411
SCRIPTDIR=$(dirname "$(readlink -f "$0")")
512
transeq -sequence $1 -frame 6 -outseq $outlocation"/proteintranslation" -table $4 2> /dev/null
613
python $SCRIPTDIR"/translatenucleotide.py" -i $outlocation"/proteintranslation" -o $2 -s $3

translatenucleotide.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
<description>EMBOSS transeq</description>
77
-->
88
<requirements>
9-
<requirement type="package" version="3.7.0">python</requirement>
10-
<requirement type="package">biopython</requirement>
119
<requirement type="package" version="6.6.0">emboss</requirement>
10+
<requirement type="package" version="3.9.0">python</requirement>
11+
<requirement type="package" version="1.79">biopython</requirement>
1212
</requirements>
1313
<command>
1414
<![CDATA[

0 commit comments

Comments
 (0)