Description Usage Arguments Details Value Examples
bamToOE
computes the observed-over-expected (OE) scores for a set of samples. The input is a bamfile for each sample.
1 2 3 4 5 |
exp.name |
Character, used to create output file names. |
bam.dir |
Character, directory which contains the bamfiles. |
bam.fname |
Character vector, bamfile names for all samples. |
sample.name |
Character vector, (short) names for all samples. |
cell.count |
Integer vector, cell count for all samples. |
sig |
Character, string with initials and date used for output file names (eg LP170619). |
CHR |
Character vector, chromosome names to be used in the analysis. |
bin.size |
integer, 0 (each bin is entire chr length) or >0 specifying the width in bp of the bins used for computing the OE scores. |
fExp |
Numeric vector, length of twice the number of GATC fragments in
|
GATC.mpbl.reads |
GRanges object, granges specify genomic GATC fragments, mcols specifies whether forw/rev/both read count (0/1/2). |
OE.norm.factor |
Numeric vector, normalization factor per window/chromosome to normalize raw OE scores. |
outdir |
Character, specifies directory for output files. |
VERBOSE |
Logical, print diagnostic msgs [default = FALSE]. |
do.norm |
Logical, perform normalization [default = FALSE]. |
plot |
Logical, generate plots [default = TRUE]. |
addToName |
Character, a substrings which will be added in fromt of the chromsome names read from the bamfiles. This allows dealing with bamfiles which lack the 'chr' in the name. |
min.depth |
integer, minimal read depth per sample (samples with less reads are discarded) [default = 10000]. |
sample.depth |
integer, target read depth per sample (samples will be downsampled to target; must be >= |
extended description of function
List with 3 elements;
Numeric vector; normalization factor per window/chromosome to normalize raw OE scores
GRanges object; granges specify genomic GATC fragments, mcols specify normalized OE scores for each sample (ie each bamfile)
GRanges object; granges specify genomic GATC fragments, mcols specify raw OE scores for each sample (ie each bamfile)
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.