Skip to content

Commit

Permalink
Merge pull request #3 from bebatut/diamond
Browse files Browse the repository at this point in the history
Use diamond installed with conda
  • Loading branch information
wdingx committed Dec 8, 2017
2 parents c3b69ae + e422c75 commit 89d2143
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/sf_cluster_protein.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os, sys, time, glob
from distutils.spawn import find_executable
from collections import defaultdict, Counter
from sf_miscellaneous import times, read_fasta, load_pickle, write_pickle

Expand All @@ -7,9 +8,8 @@ def diamond_run(output_path, dmd_ref_file, threads,
diamond_query_cover, diamond_subject_cover, diamond_path, diamond_no_self_hits=0):
""" run diamond using sensitive alignment mode """
if diamond_path=='':
diam= ''.join([os.path.dirname(os.path.realpath(__file__)), '/../tools/diamond'])
else:
diam=diamond_path
diamond_path=find_executable('diamond')
diam=diamond_path
print 'diamond inputfile:', dmd_ref_file
input_prefix= dmd_ref_file.split('.faa')[0]
if input_prefix=='reference':
Expand Down
Binary file removed tools/diamond
Binary file not shown.

0 comments on commit 89d2143

Please sign in to comment.