Learn R Programming

kmeRtone (version 1.0)

downloadUCSCgenome: Function downloads chromosome-separated fasta genome sequences from the UCSC database. Users can specify a genome name, an output folder, and a specific chromosome or chromosomes. There's an option to choose the download method as well.

Description

Function downloads chromosome-separated fasta genome sequences from the UCSC database. Users can specify a genome name, an output folder, and a specific chromosome or chromosomes. There's an option to choose the download method as well.

Usage

downloadUCSCgenome(genome.name, output.path, chr.name, method = "curl")

Value

An output folder containing chromosome-separated fasta files.

Arguments

genome.name

Genome name (e.g., hg19, hg38, mm19).

output.path

Output folder for the downloaded sequences.

chr.name

Specific chromosome to download; defaults to all if unspecified.

method

Download method for the download.file function.