Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speedup packing #45

Merged
merged 7 commits into from
Aug 5, 2024
Merged

Speedup packing #45

merged 7 commits into from
Aug 5, 2024

Conversation

scanon
Copy link
Contributor

@scanon scanon commented Jul 29, 2024

These changes are actually from me.

The packaging step was very inefficient especially for metagenomes
that have a lot of MAGs. This was because the process was
serialized and each one has to read through the input files over
and over. This changes it so each file is open and read once
and the output is multiplexed to the various outputs files.
It also parallelizes the tar file generation.

For one test case the previous way was taking 6-7 hours and it nows
runs in a few minutes.

Michal Babinski added 3 commits July 29, 2024 14:33
The packaging step was very inefficient especially for metagenomes
that have a lot of MAGs.  This was because the process was
serialized and each one has to read through the input files over
and over.  This changes it so each file is open and read once
and the output is multiplexed to the various outputs files.
It also parallelizes the tar file generation.

For one test case the previous way was taking 6-7 hours and it nows
runs in a few minutes.
- Fix KO naming
- Cleanup log output a bit
@mbthornton-lbl mbthornton-lbl self-requested a review July 30, 2024 15:45
@chienchi chienchi linked an issue Jul 30, 2024 that may be closed by this pull request
Copy link

@mbthornton-lbl mbthornton-lbl left a comment

Choose a reason for hiding this comment

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

There are a few errors with undefined variables that need to be addressed.

Docker/Dockerfile_vis Outdated Show resolved Hide resolved
Docker/create_tarfiles.py Show resolved Hide resolved
Docker/create_tarfiles.py Outdated Show resolved Hide resolved
Docker/create_tarfiles.py Outdated Show resolved Hide resolved
@scanon
Copy link
Contributor Author

scanon commented Jul 31, 2024

I think all the comments have been addressed.

Docker/Dockerfile_vis Outdated Show resolved Hide resolved
Docker/Dockerfile_vis Show resolved Hide resolved
@chienchi
Copy link
Collaborator

chienchi commented Aug 5, 2024

I think we need to update the version to 0.6.0 in Dockerfile_vis and rebuild it. In addition, the version of the docker string in the main WDL file, mbin_nmdc.wdl line 25 for this merge.

@chienchi chienchi self-requested a review August 5, 2024 18:36
@scanon
Copy link
Contributor Author

scanon commented Aug 5, 2024

Let's merge this, then we can do as @chienchi suggested to rebuild the image and then update the WDL.

@chienchi chienchi merged commit b6d75e8 into master Aug 5, 2024
1 check passed
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.

Speed up packaging
3 participants