Skip to content

Commit 91c1f7a

Browse files
committed
Add RNACentral to DB downloader
1 parent e049d3e commit 91c1f7a

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

data/workflow/databases.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,14 @@ case "${SELECTION}" in
285285
push_back "${TMP_PATH}/silva.fasta.gz"
286286
INPUT_TYPE="FASTA_LIST"
287287
;;
288+
"RNAcentral")
289+
if notExists "${TMP_PATH}/rnacentral.fasta.gz"; then
290+
downloadFile "https://ftp.ebi.ac.uk/pub/databases/RNAcentral/releases/${RNACENTRAL_REL}/release_notes.txt" "${TMP_PATH}/version"
291+
downloadFile "https://ftp.ebi.ac.uk/pub/databases/RNAcentral/releases/${RNACENTRAL_REL}/sequences/rnacentral_species_specific_ids.fasta.gz" "${TMP_PATH}/rnacentral.fasta.gz"
292+
fi
293+
push_back "${TMP_PATH}/rnacentral.fasta.gz"
294+
INPUT_TYPE="FASTA_LIST"
295+
;;
288296
"Kalamari")
289297
if notExists "${TMP_PATH}/kalamari.tsv"; then
290298
printf "3.7 %s\n" "$(date "+%s")" > "${TMP_PATH}/version"

src/workflow/Databases.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,13 @@ std::vector<DatabaseDownload> downloads = {{
157157
"https://www.arb-silva.de",
158158
true, Parameters::DBTYPE_NUCLEOTIDES, databases_sh, databases_sh_len,
159159
{ { "SILVA_REL", "138" } }
160+
}, {
161+
"RNAcentral",
162+
"RNAcentral is a comprehensive database of non-coding RNA sequences that aggregates data from multiple expert databases.",
163+
"RNAcentral Consortium: RNAcentral 2021: secondary structure integration, improved sequence search and new member databases. Nucleic Acids Res 49(D1), D212-D220 (2021)",
164+
"https://rnacentral.org",
165+
false, Parameters::DBTYPE_NUCLEOTIDES, databases_sh, databases_sh_len,
166+
{ { "RNACENTRAL_REL", "26.0" } }
160167
}, {
161168
"Resfinder",
162169
"ResFinder is a database that captures antimicrobial resistance genes from whole-genome data sets.",

0 commit comments

Comments
 (0)