Description Usage Arguments Details Value Note Author(s) See Also Examples
Generates allele-specific read count data from each BAM ChIP-seq dataset for each variant.
1 2 3 4 | alleleCounts(.Object, min_base_quality = 10, min_mapq = 15, verbose = TRUE)
## S4 method for signature 'BaalChIP'
alleleCounts(.Object, min_base_quality = 10, min_mapq = 15, verbose = TRUE)
|
.Object |
An object of the |
min_base_quality |
A numeric value indicating the minimum read base quality below which the base is ignored when summarizing pileup information (default 10). |
min_mapq |
A numeric value indicating the minimum mapping quality (MAPQ) below which the entire read is ignored (default 15). |
verbose |
logical. If TRUE reports extra information on the process |
Utilizes the information within the samples
slot of a BaalChIP object. Will primarily find all variants overlapping peaks. Then, for each variant, computes the number of reads carrying the reference (REF) and alternative (ALT) alleles.
An updated BaalChIP
object with the slot alleleCounts
containing a list of GRanges objects.
BaalChIP computes allelic counts at each variant position with Rsamtools pileup function. The algorithm follows pileup::Rsamtools by automatically excluding reads flagged as unmapped, secondary, duplicate, or not passing quality controls.
Ines de Santiago
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | samplesheet <- system.file("test", "exampleChIP.tsv", package = "BaalChIP")
hets <- c("MCF7"= system.file("test", "MCF7_hetSNP.txt", package = "BaalChIP"),
"GM12891"= system.file("test", "GM12891_hetSNP.txt", package = "BaalChIP"))
res <- BaalChIP(samplesheet=samplesheet, hets=hets)
res <- alleleCounts(res, min_base_quality=10, min_mapq=15)
#retrieve alleleCounts:
counts <- BaalChIP.get(res, 'alleleCountsPerBam')
#alleleCounts are grouped by bam_name and group_name:
names(counts)
names(counts[['MCF7']])
#check out the result for one of the bam files:
counts[['MCF7']][[1]]
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.