meta.retrieval {biomartr} | R Documentation |
Perform Meta-Genome Retrieval
Description
Download genomes, proteomes, cds, gff, rna, or assembly stats files of all species within a kingdom of life.
Usage
meta.retrieval(
db = "refseq",
kingdom,
group = NULL,
type = "genome",
restart_at_last = TRUE,
reference = FALSE,
combine = FALSE,
path = NULL
)
Arguments
db |
a character string specifying the database from which the genome shall be retrieved:
|
kingdom |
a character string specifying the kingdom of the organisms of interest, e.g.
Available kingdoms can be retrieved with |
group |
only species belonging to this subgroup will be downloaded.
Groups can be retrieved with |
type |
type of sequences that shall be retrieved. Options are:
|
restart_at_last |
a logical value indicating whether or not
|
reference |
a logical value indicating whether or not a genome shall be downloaded if it isn't marked in the database as either a reference genome or a representative genome. Options are:
|
combine |
just in case |
path |
path to the folder in which downloaded genomes shall be stored. By default the kingdom name is used to name the output folder. |
Details
This function aims to perform bulk retrieval of the genomes, proteomes, cds, etc. of species that belong to the same kingdom of life or to the same subgroup.
Value
a character vector storing the file paths of the retrieved files.
Author(s)
Hajk-Georg Drost
See Also
Other meta_retrival:
meta.retrieval.all()
Examples
## Not run:
# get all available kingdoms for refseq
getKingdoms(db = "refseq")
# download all vertebrate genomes from refseq
meta.retrieval(kingdom = "vertebrate_mammalian",
db = "refseq",
type = "genome")
# get all available kingdoms for genbank
getKingdoms(db = "genbank")
# download all vertebrate genomes from genbank
meta.retrieval(kingdom = "vertebrate_mammalian",
db = "genbank",
type = "genome")
# In case users do not wish to retrieve genomes from an entire kingdom,
# but rather from a subgoup (e.g. from species belonging to the
# Gammaproteobacteria class, a subgroup of the bacteria kingdom),
# they can use the following workflow"
# First, users can again consult the getKingdoms() function to retrieve
# kingdom information.
getKingdoms(db = "refseq")
# In this example, we will choose the bacteria kingdom.
# Now, the getGroups() function allows users to obtain available
# subgroups of the bacteria kingdom.
getGroups(db = "refseq", kingdom = "bacteria")
# Now we choose the group Gammaproteobacteria and specify
# the group argument in the meta.retrieval() function
meta.retrieval(kingdom = "bacteria",
roup = "Gammaproteobacteria",
db = "refseq",
type = "genome")
## End(Not run)