Skip to content

Commit

Permalink
Reduce size of /annot/gene/eggnog
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Minot committed May 29, 2020
1 parent 221a0f7 commit fd16fc6
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions modules/general.nf
Original file line number Diff line number Diff line change
Expand Up @@ -880,10 +880,22 @@ gene_annot = gene_annot.assign(
with pd.HDFStore("${results_hdf}", "a") as store:
# Write eggnog results to HDF5
eggnog_df.reset_index().to_hdf(
eggnog_df.reset_index().reindex(
columns = [
'query_name',
'seed_eggNOG_ortholog',
'best_tax_level',
'GOs',
'EC',
'KEGG_ko',
'best eggNOG OG',
'COG Functional cat.',
'eggNOG free text desc.'
]
).to_hdf(
store,
"/annot/gene/eggnog",
format = "table",
format = "fixed",
dtype=str,
)
Expand Down

0 comments on commit fd16fc6

Please sign in to comment.