Usage
get.chr.lens(dir = NULL, build = NULL, autosomes = FALSE, len.fn = "humanChrLens.txt", mito = FALSE, names = FALSE, delete.after = FALSE, verbose = FALSE)
Arguments
dir
directory to retrieve/download the annotation from/to (defaults to current getwd())
if dir is NULL then will automatically delete the annotation text file from the local directory
after downloading
build
string, currently 'hg17','hg18' or 'hg19' to specify which annotation version to use.
Default is getOption("ucsc"). Will also accept integers 17,18,19,35,36,37 as alternative arguments.
autosomes
logical, if TRUE, only load the lengths for the 22 autosomes, else load X,Y,[MT] as well
len.fn
optional file name to keep the lengths in
mito
logical, whether to include the length of the mitochondrial DNA (will not include unless
autosomes is also FALSE)
names
logical, whether to name the chromosomes in the resulting vector
delete.after
logical, if TRUE then delete the text file that these lengths were downloaded to.
verbose
logical, if TRUE display extra information on progress of chromsome retrieval
If FALSE, then the file will be kept, meaning future lookups will be faster, and available offline.