determineTSR {TSRchitect} | R Documentation |
determineTSR
Identifies TSRs from
entire TSS datasets as specified.
determineTSR(experimentName, n.cores, tsrSetType, tssSet, tagCountThreshold, clustDist, writeTable = FALSE) ## S4 method for signature ## 'tssObject,numeric,character,character,numeric,numeric,logical' determineTSR(experimentName, n.cores = 1, tsrSetType = c("replicates", "merged"), tssSet = "all", tagCountThreshold = 1, clustDist = 20, writeTable = FALSE)
experimentName |
an object of class tssObject containing information in slot @tssTagData |
n.cores |
the number of cores to be used for this job. ncores=1 means serial execution of function calls (numeric) |
tsrSetType |
specifies the set to be clustered. Options are "replicates" or "merged". (character) |
tssSet |
default is "all"; if a single TSS dataset is desired, specify tssSet number (character) |
tagCountThreshold |
the number of TSSs required at a given position for it to be considered in TSR identification. (numeric) |
clustDist |
the maximum distance of TSSs between two TSRs in base pairs. (numeric) |
writeTable |
specifies whether the output should be written to a table. (logical) |
creates a list of GenomicRanges-containing TSR positions in slot @tsrData of the returned tssObject object
An example similar to this one can be found in the vignette (/inst/doc/TSRchitect.Rmd)
load(system.file("extdata", "tssObjectExample.RData", package="TSRchitect")) tssObjectExample <- determineTSR(experimentName=tssObjectExample, n.cores=1, tsrSetType="replicates", tssSet="1", tagCountThreshold=25, clustDist=20, writeTable=FALSE)