From 7b2f2ee1f215c5103635ae61edb1759489945f5f Mon Sep 17 00:00:00 2001 From: wlokhorst Date: Thu, 4 Feb 2021 11:09:29 +0100 Subject: [PATCH] Fixed inconsistent use of tabs and spaces in indentation in drisee.py --- drisee.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drisee.py b/drisee.py index 2c04931..2797ec1 100755 --- a/drisee.py +++ b/drisee.py @@ -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)