Skip to content

Conversation

ccbaumler
Copy link
Contributor

I am making a bunch of ranktables and wanted them compressed to save on diskspace...

@@ -328,7 +335,11 @@ def pangenome_createdb_main(args):

# Chunk function to limit the memory used by the hash_count dict and list
def write_chunk(chunk, output_file):
with open(output_file, "a", newline="") as csvfile:
if output_file.endswith('.gz'):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks good - not sure you need the --gzip option after all? It doesn't seem to add much :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants