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.
downloadUCSCgenome(genome.name, output.path, chr.name, method = "curl")
An output folder containing chromosome-separated fasta files.
Genome name (e.g., hg19, hg38, mm19).
Output folder for the downloaded sequences.
Specific chromosome to download; defaults to all if unspecified.
Download method for the download.file
function.