Description Usage Arguments Value Author(s) References Examples
The function creates the BigWig formatted summed input from aligned input experiments in BAM format. The first two step of BEADS normalization, i.e. GC normalization and mappability correction are performed independently on all input experiments. Further, the obtain signals are summed. The tracks are normalized for tag count, so each experiment contribute in equally to summed input. It is important to select only good quality run for summed input preparation. FastQC is a good program for sequencing experiment quality assessment. It is important to create the summed input with the same parameters as will be used for future BEADS runs.
1 2 3 4 |
bam.controls |
The character vector containing paths to control (input) alignment files in BAM format |
bw.mappability |
The path to mappability track in BigWiggle format (accepts |
genome |
The path reffrence genome FASTA or UCSC identifier fo installed |
out_name |
The prefix for exported BigWiggle, full name |
uniq |
If TRUE the alignemnt will be uniqued, i.e. only one of non-unique reads will be used |
insert |
The expected insert size in base pairs. |
mapq_cutoff |
The cutoff parameter used to filter BAM alignments for low mapping quality reads. |
quickMap |
If TRUE the quick mappability processing be used, otherwise the mappability track will be processed by running mean smoothing |
bin |
The desired binning window. 1L disables binning. It is recommended to set it >1L, as it greatly reduces the size of the output BW files and speeds up further BEADS runs. |
BigWigFile
class containing connection to summed input BigWig file.
Przemyslaw Stempor
http://beads.sourceforge.net/
http://www.ncbi.nlm.nih.gov/pubmed/21646344
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # Get the paths of example files
input_bam <- system.file("extdata", "Input_fE3_AA169.bam", package="rbeads")
map_bw <- system.file("extdata", "ce10_mappability_chrI_100Kb_sample.bw", package="rbeads")
ref_fa <- system.file("extdata", "ce10_chrI_100Kb_sample.fa", package="rbeads")
# Set the directory where the output files will be crated
setwd(tempdir())
# Calculate summed input; in this example we will pretend that we have 3 test input files,
# in real applications these should be different experiments
out1 <- sumBAMinputs(c(input_bam, input_bam, input_bam), map_bw, ref_fa)
# Sanity check: The mean signal ratio between previous example (using 3 identical inputs)
# and single normalized input should be very close to 3
# (limited by binning function and BigWig summary numerical precision)
out2 <- sumBAMinputs(input_bam, map_bw, ref_fa)
rtracklayer::summary(out1)[[1]]$score / rtracklayer::summary(out2)[[1]]$score
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.