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

Skip hash table size estimation if already done #450

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kim-fehl
Copy link

  • The estimated hash table size ($required_capacity variable) is now stored in file required_capacity.txt.
    If estimation was done at the machine with insufficient RAM, the user can now restart building the database skipping the estimation step (which can take hours alone if the data order is hundreds of Gb)

  • find library/added/ -name 'prelim_map_*.txt' | xargs cat > library/added/prelim_map.txt has been moved under if statement (if file exists, this step is not nessecary)

In the future probably we should add some '--force' option so user can rebuild the database from scratch if they want to without manually deleting files required_capacity.txt and seqid2taxid.map (in case of adding some files to library/added folder, for instance).

The changes were tested with a small Archaea subset of standard kraken2-RefSeq database.

Save estimated size into the file required_capacity.txt
The estimated hash table size ($required_capacity variable) is now stored in file `required_capacity.txt`. 
If estimation was done at the machine with insufficient RAM, the user can now restart building the database skipping the estimation step (which can take hours alone if the data order is hundreds of Gb)
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