gdb.create_genome | R Documentation |
This function downloads, extracts, and loads a misha genome database for the specified genome.
gdb.create_genome(genome, path = getwd(), tmpdir = tempdir())
genome |
A character string specifying the genome to download. Supported genomes are "mm10" and "hg38". |
path |
A character string specifying the directory where the genome will be extracted. Defaults to genome name in the current working directory. |
tmpdir |
A character string specifying the directory for storing temporary files. Defaults to the system's temporary directory. |
The function checks if the specified genome is available. If tmpdir, it constructs the download URL, downloads the genome file,
extracts it to the specified directory, and loads the genome database using gsetroot
. The function also calls gdb.reload
to reload the genome database.
None.
## Not run:
gdb.create_genome("mm10", path = "/path/to/genome")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.