Skip to content

Commit

Permalink
blast execute + empty blast test template
Browse files Browse the repository at this point in the history
  • Loading branch information
hannaml committed Oct 30, 2014
1 parent 493948a commit c68a1ea
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 6 deletions.
22 changes: 22 additions & 0 deletions test/test_tools_blast.py
@@ -0,0 +1,22 @@
#!/usr/bin/env python

__author__ = "hlevitin@broadinstitute.org"

import unittest, os, sys, tempfile
import util.file, tools.bwa

class TestToolBlastN(unittest.TestCase) :

def setUp(self) :
util.file.set_tmpDir('TestToolBlastN')
self.blastn = tools.blast.BlastN()
self.blastn.install()

def tearDown(self) :
util.file.destroy_tmpDir()

def test_tool_blastn(self) :
pass

if __name__ == '__main__':
unittest.main()
1 change: 0 additions & 1 deletion test/test_tools_bwa.py
@@ -1,5 +1,4 @@
#!/usr/bin/env python
# Unit tests for taxon_filter.py

__author__ = "hlevitin@broadinstitute.org"

Expand Down
7 changes: 2 additions & 5 deletions tools/blast.py
Expand Up @@ -16,10 +16,7 @@ def get_url() :
if uname[0] == 'Darwin' :
osStr = 'universal-macosx'
elif uname[0] == 'Linux' :
if uname[4].endswith('64') :
osStr = 'x64-linux'
else :
osStr = 'ia32-linux'
osStr = 'x64-linux' if uname[4].endswith('64') else 'ia32-linux'
else :
raise NotImplementedError('OS {} not implemented'.format(uname[0]))
return '{}-{}.tar.gz'.format(URL_BASE, osStr)
Expand Down Expand Up @@ -70,7 +67,7 @@ def execute(self, options={}, option_string="", post_cmd=""):
cmd))
return os.system(cmd)

class BlastnTool(BlastTools) :
class BlastN(BlastTools) :
subtoolName = 'blastn'


Expand Down

0 comments on commit c68a1ea

Please sign in to comment.