Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new sub-aligners within PASTA #28

Merged
merged 10 commits into from
Apr 6, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix setup.py
  • Loading branch information
Kodi committed Aug 15, 2017
commit 8005196a92d525d16ae50da8dfec393ee7839629
11 changes: 9 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import platform
import sys
import pasta

import tarfile
script_name = 'run_pasta.py'
gui_script_name = 'run_pasta_gui.py'

Expand Down Expand Up @@ -193,7 +193,14 @@ def create_symlink(src_path, subdir=None):
src_path = os.path.join(tdir, fpath)
if os.path.isfile(src_path) and not src_path.endswith('.txt'):
create_symlink(src_path, subdir)


#databases in sate-tools-linux holds the swissprot* files for mafft-homologs. They compressed to appease git so we have to extract them to use them.
searchDir = os.path.join(tools_bin_srcdir, 'databases')
for files in os.listdir(searchDir):
fullPath = os.path.join(searchDir, files)
if tar.endswith("tar.gz"):
tar = tarfiles.open(files, r:gz)
tar.extractall(searchDir)
tar.close()

setup(**param)