From 834c2908d2f4bafd1d5b858e6f7aaf082b005a8d Mon Sep 17 00:00:00 2001 From: Woosub-Kim Date: Tue, 10 Aug 2021 16:13:51 +0900 Subject: [PATCH] remove progress bar --- probeit.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/probeit.py b/probeit.py index 4fcd4ab..80491aa 100644 --- a/probeit.py +++ b/probeit.py @@ -217,9 +217,12 @@ def deduplicate(kmers): newKmers.append(k) return '|'.join(newKmers) - def progressBar(done, total): - i = int(done / total * 20) - print('[INFO] Deduplicating Genmap Result: [' + '=' * i + ('>'if i<20 else '') + ' ' * (19 - i) + ']', end="\r") + # def progressBar(done, total): + # i = int(done / total * 20) + # print( + # '[INFO] Deduplicating Genmap Result: [' + '=' * i + ('>'if i<20 else '') + ' ' * (19 - i) + ']', + # end="\r" + # ) df = pd.read_csv(inputCSV, sep=';') df.columns = ['repKmer', 'kmers'] @@ -234,7 +237,7 @@ def progressBar(done, total): maskingKmers = set() p = re.compile('[0-9]+,[0-9]+') for i in range(len(kmerLists)): - progressBar(i + 1, len(kmerLists)) + # progressBar(i + 1, len(kmerLists)) kmerList = kmerLists[i] kmerSet = set(p.findall(kmerList)) newKmerLists += [None] if kmerSet & maskingKmers else [kmerList]