Skip to content

Commit

Permalink
remove progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
Woosub-Kim committed Aug 10, 2021
1 parent 0688000 commit 834c290
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions probeit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand All @@ -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]
Expand Down

0 comments on commit 834c290

Please sign in to comment.