Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
fixed problem with top parameter
  • Loading branch information
ahtosalumets authored Jan 22, 2019
1 parent 8e00af8 commit fb3442c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def read_file(file, top):
with open(file, 'r') as f:
content = f.readlines()
n_seqs = len(content) // 2
if top < n_seqs:
if top != 'all' and top < n_seqs:
n_seqs = top
for i in range(0, 2*n_seqs-1, 2):
seq_name = content[i].strip().replace('>', '')
Expand Down

0 comments on commit fb3442c

Please sign in to comment.