gdb.create_genome: Create and Load a Genome Database

View source: R/db.R

gdb.create_genomeR Documentation

Create and Load a Genome Database

Description

This function downloads, extracts, and loads a misha genome database for the specified genome.

Usage

gdb.create_genome(genome, path = getwd(), tmpdir = tempdir())

Arguments

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.

Details

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.

Value

None.

Examples

## Not run: 
gdb.create_genome("mm10", path = "/path/to/genome")

## End(Not run)


tanaylab/misha.ext documentation built on Sept. 18, 2024, 2:53 a.m.