Usage
"slice1T"(dc, tname, gtf, control=FALSE, input_method="-", concatenate=T, stranded=T, treads_norm=T, nbins=0, bin_method="mean")
"sliceNT"(dc, tnames, gtf, toRle=FALSE, control=FALSE, input_method="-", concatenate=T, stranded=T, treads_norm=T, nbins=0, bin_method="mean")
Arguments
dc
Source DensityContainer object
tname,tnames
A character string or a character vector with matching identifiers of the provided gtf
gtf
A GRanges object with a meta data column transcript_id and exon_id like e.g. from gtf2gr
.
toRle
The return values will be converted to a RleList
.
control
An optional DensityContainer which will used as control and by default subtracted from dc
.
input_method
Defines the handling of the optional control DensityContainer. - will subtract the control from the actual data and / will return log2 fold change ratios with an added pseudo count of 1 read.
concatenate
Logical that determines whether exons will be concatenated to one numeric vector (default) or returned as a list of vectors per exon.
stranded
If TRUE, the resulting vector will be reversed for reads on the reverse strand.
treads_norm
If TRUE
, the input densities are normalized to the read counts of the data set. Should not be used if one of the DensityContainer
objects does not contain the whole amount of reads by e.g. placing a filter in parseReads
.
nbins
If all input regions have equal length and nbins greater than 0, all densities will be summarized using the method specified by bin_method into nbins windows of approximately equal size.
bin_method
Character string that specifies the function used to summarize or expand the bins specified by nbins. Valid methods are max, mean or median.