Skip to content

Commit

Permalink
Intialize with these columns
Browse files Browse the repository at this point in the history
so if it has no rows, at least it has the columns to groupby
  • Loading branch information
iquasere committed Nov 8, 2023
1 parent f641ee1 commit d466aad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recognizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -848,7 +848,7 @@ def organize_results(file, output, resources_directory, databases, hmm_pgap, cdd
timed_message("Organizing annotation results")
i = 1
xlsx_report = pd.ExcelWriter(f'{output}/reCOGnizer_results.xlsx', engine='xlsxwriter')
all_reports = pd.DataFrame()
all_reports = pd.DataFrame(columns=['qseqid', 'DB ID']) # intialize with these columns so if it has no rows, at least it has the columns to groupby
for db in databases:
run_pipe_command(f'cat {output}/blast/{db}_*_aligned.blast', file=f'{output}/blast/{db}_aligned.blast')
print(f'[{i}/{len(databases)}] Handling {db} annotation')
Expand Down

0 comments on commit d466aad

Please sign in to comment.