Skip to content

Commit

Permalink
explicit type definition for Python3 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Simkovic committed Jun 27, 2017
1 parent 0e9a874 commit 492774b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conkit/core/sequencefile.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ def filter(self, min_id=0.3, max_id=0.9, inplace=False):
throw = set()
for i in np.arange(len(self)):
ident = 1 - scipy.spatial.distance.cdist([msa_mat[i]], msa_mat[i+1:], metric='hamming')[0]
throw.update(1 + i + np.argwhere((ident < min_id) | (ident > max_id)).flatten())
throw.update((1 + i + np.argwhere((ident < min_id) | (ident > max_id)).flatten()).tolist())
# Throw the previously selected sequences
sequence_file = self._inplace(inplace)
for i in reversed(list(throw)):
Expand Down

0 comments on commit 492774b

Please sign in to comment.