Skip to content

Commit f6a5573

Browse files
author
Sherrie Wang
committed
rename columns in counts df
1 parent fbeee4f commit f6a5573

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/filter_best_alignments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def filter_alignments(output, blast_out, min_cov, min_id):
135135

136136
#parse blast results
137137
counts = blast_results['subtype'].value_counts().reset_index()
138-
counts=counts.rename(columns = {'count' : 'counts','index':'subtype'})
138+
counts.columns = ['subtype','counts']
139139
total=counts[['counts']].sum()
140140

141141
counts['prop'] = counts['counts']/total

0 commit comments

Comments
 (0)