Description Usage Arguments Value See Also Examples
This function creates an RoarDataset
object from two lists of
of GAlignments
and a GRanges
containing a suitable annotation of
alternative APA sites.
1 2 | RoarDataset(treatmentGappedAlign, controlGappedAlign, gtfGRanges)
|
treatmentGappedAlign |
A list of |
controlGappedAlign |
A list of |
gtfGRanges |
A |
A RoarDataset
object ready to be analyzed via the other methods.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | library(GenomicAlignments)
gene_id <- c("A_PRE", "A_POST", "B_PRE", "B_POST")
features <- GRanges(
seqnames = Rle(c("chr1", "chr1", "chr2", "chr2")),
strand = strand(rep("+", length(gene_id))),
ranges = IRanges(
start=c(1000, 2000, 3000, 3600),
width=c(1000, 900, 600, 300)),
DataFrame(gene_id)
)
rd1 <- GAlignments("a", seqnames = Rle("chr1"), pos = as.integer(1000), cigar = "300M", strand = strand("+"))
rd2 <- GAlignments("a", seqnames = Rle("chr1"), pos = as.integer(2000), cigar = "300M", strand = strand("+"))
rd3 <- GAlignments("a", seqnames = Rle("chr2"), pos = as.integer(3000), cigar = "300M", strand = strand("+"))
rds <- RoarDataset(list(c(rd1,rd2)), list(rd3), features)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.