Description Usage Arguments Objects from the Class Slots Methods Author(s) See Also Examples
Represents counts of (possibly extended) reads for each strand of the genome.
1 |
counts |
A list of read counts. Each component is a two column matrix of strand specific read counts for a chromosome. |
names |
Character vector of chromosome names. If this is |
compress |
Logical indicating whether read counts should be compressed. |
Objects can be created by calls of the form ReadCounts(counts, names, compress=FALSE)
or by calls
to strandPileup
.
counts
:Object of class "list"
with one component per chromosome, containing a matrix of read counts (one column per strand).
signature(x = "ReadCounts", i = "ANY", j = "missing")
: Replace read counts for chromosomes indicated by i
.
signature(x = "ReadCounts", i = "ANY", j = "missing", drop = "missing")
: Returns list of read counts for chromosomes indicated by i
.
signature(x = "ReadCounts", i = "ANY", j = "missing")
: Replace read counts for chromosome i
.
signature(x = "ReadCounts", i = "ANY", j = "missing")
: Returns read counts for chromosome i
.
signature(x = "ReadCounts")
: Replace read counts for chromosome i
(by name).
signature(x = "ReadCounts")
: Returns read counts for chromosome i
(by name).
signature(data = "ReadCounts")
: Predict bindingsites from read counts.
signature(x = "ReadCounts", subset = "ANY")
: Returns length of all chromosomes represented in x
.
signature(X = "ReadCounts")
: Apply function to read counts for each chromosome.
signature(x = "ReadCounts")
: Change the number of chromosomes represented by x
to value
.
signature(x = "ReadCounts")
: Number of chromosomes represented by x
.
signature(x = "ReadCounts", value = "ANY")
: Change names of chromosomes.
signature(x = "ReadCounts")
: Chromosome names.
signature(x = "ReadCounts", byStrand = "Logical", subset = "ANY")
: Returns the number of reads on each chromosome, split by strand (if byStrand
is TRUE
).
signature(X = "ReadCounts")
: Apply function to read counts for each chromosome.
Peter Humburg
BindScore
, strandPileup
, compress
, decompress
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | showClass("ReadCounts")
## generate some very simple artificial read data
set.seed(1)
fwd <- sample(c(50:70, 250:270), 30, replace=TRUE)
rev <- sample(c(197:217, 347:417), 30, replace=TRUE)
## create data.frame with read positions as input to strandPileup
reads <- data.frame(chromosome="chr1", position=c(fwd, rev),
length=25, strand=factor(rep(c("+", "-"), times=c(30, 30))))
## create object of class ReadCounts
readPile <- strandPileup(reads, chrLen=500, extend=1, plot=FALSE, compress=FALSE)
names(readPile)
length(readPile)
sapply(readPile, sum)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.