RiboDiPA | R Documentation |
A wrapper function for the RiboDiPA pipeline, that will call PsiteMapping, DataBinning, and DPTest in order. This function is provided for users' convenience and requires BAM files (one per biological replicate), a GTF file, and a classlabel object describing what comparisons to make. The minimal output from the function is a list of genes with signficant differential patterns.
RiboDiPA(bam_file_list, gtf_file, classlabel, psite.mapping = "auto",
exon.binning = FALSE, bin.width = 0,zero.omit = FALSE,
bin.from.5UTR = TRUE, method = c("gtxr", "qvalue"), cores = NULL)
bam_file_list |
A vector of bam file names to be tested. Users should include path names if not located in the current working directory. Index files (.bai) will be generated if not already present. |
gtf_file |
Annotation file used to generate the BAM alignments. Note that a GTF file sourced from one organization (e.g. Ensembl) cannot be used with BAM files aligned with a GTF file sourced from another organization (e.g. UCSC). |
classlabel |
For matrix input: a DataFrame or data.frame with at least one column
named |
psite.mapping |
Rules for P-site offsets, to map a given read length of RPF to a P-site.
See |
exon.binning |
Logical indicator. If |
bin.width |
Binning width per bin. |
zero.omit |
If this parameter is |
bin.from.5UTR |
When the coding region length is not any integer multiple of binning
width, and if value of |
method |
2-component character vector specifies the multiplicity correction
method for codon/bin-level p-value adjustment. The default See
|
cores |
The number of cores to use for parallel execution. If not specified,
the number of cores is set to the value of |
bin |
A List object of codon/bin-level results. Each element of
list is of a gene, containing codon/bin results columns: |
gene |
A DataFrame object of gene-level results. It contains columns:
|
small |
Names of genes without sufficient reads |
classlabel |
The same as input |
data |
Tracks of binned data of all genes reported in |
method |
The same as input |
coverage |
A list object of matrices. Each element is a matrix representing the P-site footprints of a gene. Rows corrspond to replicates and columns corrspond to nucleotide location with reference to the total transcript. |
counts |
A matrix object of read counts. Rows corrspond to genes and columns corrspond to replicates. |
exons |
A List object of matrices. Each element contains the relative start and end positions of exons in the gene with reference to the total transcript |
psite.mapping |
The P-site mapping rule or A-site mapping rule used. |
psiteMapping, dataBinning,
diffPatternTest, diffPatternTestExon
library(BiocFileCache)
file_names <- c("WT1.bam", "WT2.bam", "MUT1.bam", "MUT2.bam", "eg.gtf")
url <- "https://github.com/jipingw/RiboDiPA-data/raw/master/"
bfc <- BiocFileCache()
bam_path <- bfcrpath(bfc,paste0(url,file_names))
classlabel <- data.frame(
condition = c("mutant", "mutant", "wildtype", "wildtype"),
comparison = c(2, 2, 1, 1)
)
rownames(classlabel) <- c("mutant1","mutant2","wildtype1","wildtype2")
result.pip <- RiboDiPA(bam_path[1:4], bam_path[5], classlabel, cores=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.