Learn R Programming

kmeRtone (version 1.0)

loadGenome: Build Genome object.

Description

The Genome object is capable of loading chromosome sequence on demand. UCSC Genomes are included in this kmeRtone package. Their specific chromosome sequence will be downloaded on demand once.

Usage

loadGenome(
  genome.name,
  fasta.style,
  mask = "none",
  fasta.path,
  ncbi.db,
  ncbi.asm,
  use.UCSC.name = FALSE,
  load.limit = 1
)

Value

A UCSC_Genome or NCBI_Genome object.

Arguments

genome.name

A genome name. UCSC and NCBI genome is included with kmeRtone. Input their name e.g. hg19 or GRCh37.

fasta.style

FASTA version: "UCSC" or "NCBI".

mask

Genome mask: "none", "soft", or "hard". Default is "none".

fasta.path

Path to a directory of user-provided genome FASTA files or the destination to save the NCBI/UCSC downloaded reference genome files.

ncbi.db

NCBI database: "refseq" or "genbank".

ncbi.asm

NCBI assembly table.

use.UCSC.name

For NCBI Genome, use UCSC-style chromosome name? Default is FALSE.

load.limit

Maximum chromosome sequences loaded. Default is 1.