Skip to content

Commit 44ea5ba

Browse files
committed
A minor fix, on counting results organization
1 parent 78faf7f commit 44ea5ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

recognizer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1019,6 +1019,7 @@ def organize_results(
10191019
'qseqid', 'DB ID']) # intialize with these columns so, if it has no rows, at least it has the columns to groupby
10201020
for db in databases:
10211021
print(f'[{i}/{len(databases)}] Handling {db} annotation')
1022+
i += 1
10221023
len_reports = len(glob(f'{output}/blast/{db}_*_aligned.blast'))
10231024
if len_reports == 0: # no results
10241025
continue
@@ -1040,7 +1041,6 @@ def organize_results(
10401041
if len(report) > 0:
10411042
all_reports = pd.concat([all_reports, report])
10421043
multi_sheet_excel(xlsx_report, report, sheet_name=db)
1043-
i += 1
10441044
if len(all_reports) == 0:
10451045
raise RuntimeError(f"reCOGnizer report is empty! Something likely went haywire!")
10461046
all_reports.sort_values(by=['qseqid', 'DB ID']).to_csv(f'{output}/reCOGnizer_results.tsv', sep='\t', index=False)

0 commit comments

Comments
 (0)