Skip to content

Skip hash table size estimation if already done #450

Open
kim-fehl wants to merge 2 commits intoDerrickWood:masterfrom
kim-fehl:master
Open

Skip hash table size estimation if already done #450
kim-fehl wants to merge 2 commits intoDerrickWood:masterfrom
kim-fehl:master

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.

kim-fehl added 2 commits May 16, 2021 15:00
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