View source: R/download_accessions.R
download_accessions | R Documentation |
This is a necessary step for all samples utilizing NCBI and SILVA databases
in the MetaScope pipeline. As specified by the user,
download_accessions
will automatically download the NCBI accessions
database, the SILVA taxonomy database, and or the NCBI Blast 16S database and
prepare consolidated databases for downstream use with the MetaID and
MetaBLAST modules. This package relies on the taxonomizr
package.
download_accessions(
ind_dir,
tmp_dir = file.path(ind_dir, "tmp"),
remove_tmp_dir = TRUE,
NCBI_accessions_database = TRUE,
NCBI_accessions_name = "accessionTaxa",
silva_taxonomy_database = TRUE,
silva_taxonomy_name = "all_silva_headers",
blast_16S_database = TRUE,
blast_16S_name = "16S_ribosomal_RNA"
)
ind_dir |
Character string. Directory filepath where indices should be saved. Required. |
tmp_dir |
Character path to directory for storing temp files. (Useful
to avoid redownloading) Defaults to |
remove_tmp_dir |
Delete tmp_dir after downloads are complete? Defaults
to |
NCBI_accessions_database |
Logical. Download taxonomizr NCBI accessions
database? Defaults to |
NCBI_accessions_name |
Character string. Filename (with or without
extension) to save taxonomizr NCBI accessions database. Defaults to
|
silva_taxonomy_database |
Logical. Download SILVA taxonomy database?
Defaults to |
silva_taxonomy_name |
Character string. Filename (with or without
extension) to save SILVA taxonomy database.
Defaults to the file supplied with the package,
|
blast_16S_database |
Download NCBI 16S Blast database? Defaults to
|
blast_16S_name |
Character string. Filename (without extension) to save
SILVA taxonomy database. Defaults to |
Exports database(s) with names and to location specified by the user.
## Not run:
download_accessions(
ind_dir = "C:/Users/JohnSmith/Research",
tmp_dir = file.path(ind_dir, "tmp"),
remove_tmp_dir = TRUE,
NCBI_accessions_database = TRUE,
NCBI_accessions_name = "accessionTaxa.sql",
silva_taxonomy_database = TRUE,
silva_taxonomy_name = "all_silva_headers.rds",
blast_16S_database = TRUE,
blast_16S_name = "16S_ribosomal_RNA")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.