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

Fixed inconsistent use of tabs and spaces in indentation in drisee.py #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
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
10 changes: 5 additions & 5 deletions drisee.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,17 +429,17 @@ def main(args):
# bins_to_seq_count will contain a dictionary of each md5 in filtered set to a count of the number of seqs in that bin
bins_to_seq_count = {}
dhdl = open(opts.rep_file, 'rU')
try:
for line in dhdl:
(bid, sid) = line.split()
try:
for line in dhdl:
(bid, sid) = line.split()
if bid in bins:
bins_to_rep_ids[bid] = sid
if bid in bins_to_seq_count:
bins_to_seq_count[bid] += 1
else:
bins_to_seq_count[bid] = 1
finally:
dhdl.close()
finally:
dhdl.close()
# generate sequence file for list of sequence ids
rep_seqs_fasta = os.path.join(TMP_DIR, "rep_seqs.fasta")
get_sub_fasta(bins_to_rep_ids.values(), index_seq, in_seq, rep_seqs_fasta)
Expand Down