Skip to content

Commit 0792d50

Browse files
committed
pep8ify rna
1 parent 21930e0 commit 0792d50

File tree

2 files changed

+22
-10
lines changed

2 files changed

+22
-10
lines changed

fabfiles/fabfile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
from student_ips import IPS, PASSWORD, test_ip, test_user
1010

1111
from qc import qc
12-
from rna import quant, rna_assembly
1312
from alignment import alignment
13+
from rna import quant, rna_assembly
1414
from annotation import annotation, pan_genome, euk_annot
1515
from assembly import assembly, assembly_qc, assembly_extras
1616
from metagenomics import binning, metabarcoding, kraken, checkm

fabfiles/rna.py

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@
1010
SALMON_FILE = 'Salmon-0.9.1_linux_x86_64.tar.gz'
1111
SALMON_DIR = 'Salmon-latest_linux_x86_64'
1212

13+
STRINGTIE_WEB = 'http://ccb.jhu.edu/software/stringtie/dl/'
14+
STRINGTIE_FILE = 'stringtie-1.3.4c.Linux_x86_64.tar.gz'
15+
STRINGTIE_DIR = 'stringtie-1.3.4c.Linux_x86_64'
16+
17+
TRINITY_WEB = 'https://github.com/trinityrnaseq/trinityrnaseq/archive/'
18+
TRINITY_FILE = 'Trinity-v2.6.5.tar.gz'
19+
TRINITTY_DIR = 'trinityrnaseq-Trinity-v2.6.5'
20+
1321

1422
@parallel
1523
def quant():
@@ -29,15 +37,19 @@ def quant():
2937

3038
@parallel
3139
def rna_assembly():
32-
sudo('apt -y -qq install tophat jellyfish')
40+
sudo('apt -y -qq install tophat jellyfish genometools')
3341
with cd('~/install'):
34-
run('wget --quiet http://ccb.jhu.edu/software/stringtie/dl/stringtie-1.3.4c.Linux_x86_64.tar.gz')
35-
run('tar xzf stringtie-1.3.4c.Linux_x86_64.tar.gz')
36-
run('mv stringtie-1.3.4c.Linux_x86_64/stringtie ~/.local/bin')
37-
run('wget --quiet https://github.com/trinityrnaseq/trinityrnaseq/archive/Trinity-v2.6.5.tar.gz')
38-
run('tar xzf Trinity-v2.6.5.tar.gz')
39-
with cd('~/install/trinityrnaseq-Trinity-v2.6.5'):
42+
run('wget --quiet %s%s' % (STRINGTIE_WEB, STRINGTIE_FILE))
43+
run('tar xzf %s' % STRINGTIE_FILE)
44+
run('mv %s/stringtie ~/.local/bin' % STRINGTIE_DIR)
45+
run('wget --quiet %s%s' % (TRINITY_WEB, TRINITY_FILE))
46+
run('tar xzf %s' % TRINITY_FILE)
47+
with cd('~/install/%s' % TRINITTY_DIR):
4048
run('make')
4149
sudo('make install')
42-
run('echo "export TRINITY_HOME=/usr/local/bin/trinityrnaseq-Trinity-v2.6.5" >> ~/.bashrc')
43-
run('echo "export PATH=$PATH:/usr/local/bin/trinityrnaseq-Trinity-v2.6.5" >> ~/.bashrc')
50+
run(
51+
'echo "export TRINITY_HOME=/usr/local/bin/%s" >> ~/.bashrc'
52+
% TRINITTY_DIR)
53+
run(
54+
'echo "export PATH=$PATH:/usr/local/bin/%s" >> ~/.bashrc'
55+
% TRINITTY_DIR)

0 commit comments

Comments
 (0)