Description Usage Arguments Value See Also Examples
This function creates an RoarDatasetMultipleAPA
object from two lists of
of GAlignments
and a GRanges
containing a suitable annotation of
alternative APA sites and gene exon structure.
A MultipleAPA analysis computes several roar values and p-values for each gene: one
for every possible combination of APA-canonical end of a gene (i.e. the
end of its last exon). This is more efficient than performing several different “standard” roar analyses
choosing the PRE and POST portions corresponding to different APAs because reads overlaps are computed only once.
1 2 | RoarDatasetMultipleAPA(treatmentBamsGenomicAlignments, controlBamsGenomicAlignments, gtfGRanges)
|
treatmentBamsGenomicAlignments |
A list of |
controlBamsGenomicAlignments |
A list of |
gtfGRanges |
A |
A RoarDatasetMultipleAPA
object ready to be analyzed via the other methods.
RoarDatasetMultipleAPAFromFiles
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
library(GenomicAlignments)
gene <- c("A", "B", NA, NA)
type <- c("gene","gene","apa", "apa")
apa <- c(NA, NA, "apa1_A", "apa2_B")
features <- GRanges(
seqnames = Rle(c("chr1", "chr2", "chr1", "chr2")),
strand = strand(rep("+", length(gene))),
ranges = IRanges(
start=c(1000, 2000, 1300, 2050),
width=c(500, 900, 1, 1)),
DataFrame(gene, apa, type)
)
rd1 <- GAlignments("a", seqnames = Rle("chr1"), pos = as.integer(1000), cigar = "300M", strand = strand("+"))
rds <- RoarDatasetMultipleAPA(list(c(rd1,rd1)), list(c(rd1,rd1)), features)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.