-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from martinghunt/change_to_pyfastaq
Change to pyfastaq; add to pypi
- Loading branch information
Showing
3 changed files
with
32 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from fastaq import utils | ||
from pyfastaq import utils | ||
import sys | ||
|
||
class Error (Exception): pass | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,44 @@ | ||
import os | ||
import shutil | ||
import sys | ||
import glob | ||
from setuptools import setup, find_packages | ||
|
||
def read(fname): | ||
return open(os.path.join(os.path.dirname(__file__), fname)).read() | ||
|
||
required_progs = [ | ||
'blastn', | ||
'tblastn', | ||
'tblastx', | ||
'blastp', | ||
'blastx', | ||
'deltablast' | ||
] | ||
|
||
found_all_progs = True | ||
print('Checking blast+ programs found in path:') | ||
for program in required_progs: | ||
if shutil.which(program) is None: | ||
found_all_progs = False | ||
found = ' NOT FOUND' | ||
else: | ||
found = ' OK' | ||
print(found, program, sep='\t') | ||
|
||
if not found_all_progs: | ||
print('Cannot install because some programs from the blast+ package not found.', file=sys.stderr) | ||
sys.exit(1) | ||
|
||
|
||
setup( | ||
name='Farm_blast', | ||
version='0.1.1', | ||
name='farm_blast', | ||
version='0.1.2', | ||
description='Package to run blast in parallel on a compute farm', | ||
long_description=read('README.md'), | ||
packages = find_packages(), | ||
author='Martin Hunt', | ||
author_email='[email protected]', | ||
url='https://github.com/sanger-pathogens/Farm_blast', | ||
scripts=glob.glob('scripts/*'), | ||
test_suite='nose.collector', | ||
install_requires=['nose >= 1.3', 'fastaq >= 1.2', 'farmpy >= 0.2'], | ||
install_requires=['nose >= 1.3', 'pyfastaq >= 3.0.1', 'farmpy >= 0.2'], | ||
license='GPLv3', | ||
) |