Add RNAcentral databases and download caching to mmseqs databases#5
Open
antonvnv wants to merge 3 commits into
Open
Add RNAcentral databases and download caching to mmseqs databases#5antonvnv wants to merge 3 commits into
antonvnv wants to merge 3 commits into
Conversation
Building a nucleotide database from a FASTA file previously required manually chaining createdb, splitsequence, makepaddedseqdb, and createindex with the right flags. Now a single command does it: mmseqs databases ./input.fasta.gz outdb tmp Both relative (./...) and absolute (/...) paths work — any argument containing '/' that isn't a known database name is treated as a local file. Protein inputs are rejected with a clear error since the indexing pipeline is nucleotide-specific. This keeps `databases` as the single entry point to maintain indexing requirements, and makes it suitable for reindexing external or already manually downloaded databases.
Add a --download-dir parameter (default: "downloads") that provides a persistent cache directory for downloaded files. This avoids re-downloading large files across runs. The directory is resolved to an absolute path and created if it does not exist. The shell script receives it as DOWNLOAD_DIR environment variable.
Add RNAcentral active sequences as downloadable databases: - RNAcentral_current: latest release (non-deterministic) - RNAcentral_26_0: pinned release 26.0 (deterministic) Both use the LOCAL_FASTA pipeline for nucleotide indexing and store downloads under <download-dir>/<dbname>/ subdirectories.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add RNAcentral databases and download caching to mmseqs databases
Based on PR #4 which adds local nucleotide database indexing via
mmseqs databases ./file.fasta.gz db tmpChanges
Adds a persistent download cache directory (default: downloads/) so that large files are not re-downloaded across runs. When the file already exists in the cache, the download is skipped. Only active for named
databases — local file paths do not create the directory.
Adds two new named databases:
Both download rnacentral_active.fasta.gz and index it using the nucleotide pipeline (createdb → splitsequence → makepaddedseqdb → createindex). Downloads are stored under // subdirectories.
Usage