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

Reduce memory usage in plot_alleles_table #96

Closed
wants to merge 0 commits into from

Conversation

Colelyman
Copy link
Collaborator

This PR moves the prep_alleles_table function out of the plot_alleles_table function to minimize the amount of data copied over to other parallel processes. This makes it possible to analyze datasets with a large number of alleles with less memory.

@kclem there are some other places that we could make this change, namely in https://github.com/edilytics/CRISPResso2/blob/master/CRISPResso2/CRISPRessoCompareCORE.py#L409 but we don't use multiprocessing here, so it wouldn't change how much memory is used. Do you think we should refactor this as well?

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.

1 participant