R/bedHist.R

#' Plot a histogram of interval sizes in bed files
#'
#' \code{bedHist} plots histograms, density functions, or CDFs of interval sizes in bed files.
#'
#' @param bedFiles A character vector of paths to bed files.
#' @param threads A positive integer specifying how many beds to process simultaneously.

bedHist <-
function( bedFiles , sample=NULL , chrom = NULL , first = NULL , threads=getOption("threads",1L), ... ){
	options(scipen=9999)
	scores <- bedSizes(bedFiles, threads=threads, sample=sample, chrom=chrom, first=first)
	rageHist(scores, threads=threads, ... )
}
dvera/travis documentation built on June 5, 2019, 5:12 a.m.