Learn R Programming

TSSi (version 1.18.0)

segmentizeCounts-methods: Segmentize methods

Description

Import sequence read count data and transform it into segments.

Usage

segmentizeCounts(counts, start, end=start, chr=rep(1L, length(start)), region=rep(1L, length(start)), strand=rep("*", length(start)), replicate=rep(1L, length(start)), annotation=NULL, ...)

Arguments

counts
Integer vector with the number of reads for each position in start.
start
Integer vector with the start positions of the reads.
end
Optional integer vector with the end positions of the reads. If not supplied the values of start will be used.
chr
Optional vector with the chromosomal locations of the reads. If not supplied all reads will are assumed to be located on one chromosome.
region
Optional vector with an assignment of each read to a separate region, for example based on additional annotation. If not supplied all reads will be part of one region.
strand
Optional vector with the strand location of each read.
replicate
Optional integer vector identifying the replicate each read was obtained from, in the case of data from multiple measurements.
annotation
Optional object containing meta data passed along it the analysis. This argument does not influence the analysis.
...
Optional arguments.

Value

An object of class TssData.

Methods

Import read data and transform it into segments:
segmentizeCounts:
signature(nReads="integer", start="integer")
segmentizeCounts(counts, start, ...)

Details

The segmentizeCounts method takes the raw data and breaks it into segments which will be analyzed separately in the subsequent steps. Segments are defined in a way such that any has a unique combination of the input arguments chr, region, and strand. In case any of these is not supplied it is assumed that all reads belong to one chromosome, region, or strand, respectively. Usage of the region argument is beneficial if the location of potential TSS can be constrained below the level of chromosomes and strands.

See Also

Classes: TssData, TssNorm, TssResult Methods: segmentizeCounts, normalizeCounts, identifyStartSites, get-methods, plot-methods, asRangedData-methods

Functions: subtract-functions

Data set: physcoCounts

Package: TSSi-package

Examples

Run this code
## load data set
example(physcoCounts)

## import and segmentize data
attach(physcoCounts)
x <- segmentizeCounts(counts=counts, start=start, chr=chromosome,
region=region, strand=strand)
detach(physcoCounts)

Run the code above in your browser using DataLab