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

Fix: Update src/create_fasta.py #296

Merged
merged 1 commit into from
Mar 8, 2024
Merged

Fix: Update src/create_fasta.py #296

merged 1 commit into from
Mar 8, 2024

Conversation

jakobnissen
Copy link
Member

In 15638ff, binsplitting was refactored. This change removed the minsize keyword from vambtools.write_bins, which src/create_fasta.py relies on, breaking the script.
Fix this, by making the following changes:

  • Read in the FASTA in two passes, one to figure out which sequences to store in memory, and one which stored them
  • Filter the bins in the script before calling write_bins
  • Change the default max bins from the overly conservative 250 to 1000.

In 15638ff, binsplitting was refactored. This change removed the minsize keyword
from vambtools.write_bins, which src/create_fasta.py relies on, breaking the
script.
Fix this, by making the following changes:
* Read in the FASTA in two passes, one to figure out which sequences to store in
  memory, and one which stored them
* Filter the bins in the script before calling write_bins
* Change the default max bins from the overly conservative 250 to 1000.
@jakobnissen jakobnissen merged commit 8a9d061 into master Mar 8, 2024
6 checks passed
@jakobnissen jakobnissen deleted the writebins branch March 8, 2024 10:38
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