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

Flag to remove intermediate files #27

Open
bstamps opened this issue Aug 22, 2020 · 4 comments
Open

Flag to remove intermediate files #27

bstamps opened this issue Aug 22, 2020 · 4 comments

Comments

@bstamps
Copy link

bstamps commented Aug 22, 2020

Hello,

Is there a flag/option to remove intermediate files (SAM, and the .glue files specifically) during a run of the pipeline? I'm running a large assembly and the folder is > 5 TB at the moment. I didn't see any options in the help or in this repo.

@harish0201
Copy link

You can always remove the *hd5 files if your contig assemblies have finished ;)

Ofcourse I'm assuming this since you have reached the mapping stage.

I also tend to remove the glue files.

@bstamps
Copy link
Author

bstamps commented Sep 1, 2020

Yes, I do as well. I suppose it's a suggestion as an enhancement to the pipeline. During large assemblies where you aren't watching when to remove the files you may saturate a filesystem and cause the run to fail.

@soungalo
Copy link

I had the same issue and created a modified version that has a --cleanup flag that removes *.h5 and glu files after each iteration.
If one of the developers wants to review the code, I can make a PR. Otherwise I can just share the script if somebody ever needs it.

@bstamps
Copy link
Author

bstamps commented Jan 18, 2022

The script would be appreciated on my end, obviously I can't speak for the devs but it does seem like the ability to clean those files after each iteration would be highly desirable when assembling very large datasets.

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

No branches or pull requests

3 participants