R/split.R

Defines functions splitPooled splitByStrand

splitByStrand <- function(object) {
	split(object, strand(object))
}

splitPooled <- function(object){
	# Checks never done inside...

	# Split by strand
	o <- splitByStrand(object)

	# Calculate coverage
	o <- lapply(o, coverage, weight="score")

	# Round to handle floating point errors
	o <- lapply(o, round, digits=getOption("CAGEfightR.round"))

	# Return
	o
}

Try the CAGEfightR package in your browser

Any scripts or data that you put into this service are public.

CAGEfightR documentation built on Nov. 8, 2020, 5:42 p.m.