Skip to content

Commit

Permalink
working on fixing XLSX writing
Browse files Browse the repository at this point in the history
  • Loading branch information
iskandr committed May 9, 2024
1 parent 9871df7 commit fd57d67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vaxrank/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ def make_minimal_neoepitope_report(

if len(rows) > 0:
df = pd.DataFrame.from_dict(rows)
writer = pd.ExcelWriter(excel_report_path, engine='xlsxwriter')
writer = pd.ExcelWriter(excel_report_path, engine='openpyxl')
df.to_excel(writer, sheet_name='Neoepitopes', index=False)

# resize columns to be not crappy
Expand Down Expand Up @@ -576,7 +576,7 @@ def make_csv_report(
logger.info('Wrote CSV report file to %s', csv_report_path)

if excel_report_path:
writer = pd.ExcelWriter(excel_report_path, engine='xlsxwriter')
writer = pd.ExcelWriter(excel_report_path, engine='openpyxl')

# copy the variant rank column to position 0, make first sheet called "All"
all_dfs[''] = all_dfs['variant_rank']
Expand Down

0 comments on commit fd57d67

Please sign in to comment.