View source: R/process_chip_data.R
count_normalize_chip | R Documentation |
Counts ChIP-seq read coverage for each BAM file
using the coverage
function from bedtools
.
Then normalizes the read counts
by scaling to the reference ChIP-seq library size,
and transforms the ChIP-seq read counts.
count_normalize_chip( sites, chip_bam_files, chip_idxstats_files, chrom_size_file, ref_size = 2e+07, transform = c("none", "asinh", "log2", "sqrt"), bedtools_path = "bedtools" )
sites |
A data frame containing the candidate sites. |
chip_bam_files |
ChIP-seq BAM files (may include multiple replicates). |
chip_idxstats_files |
ChIP-seq |
chrom_size_file |
Chromosome size file. |
ref_size |
Scales to ChIP-seq reference library size (Default: 2e7) |
transform |
Transformation for ChIP-seq read counts. Options are ‘none’ (no transformation), ‘asinh’, ‘log2’, and ‘'sqrt'’. |
bedtools_path |
Path to |
A data frame of candidate sites and normalized (and transformed) ChIP-seq read counts around each candidate site.
## Not run: sites_chip <- count_normalize_chip(sites, chip_bam_files=c('ChIPseq.rep1.bam', 'ChIPseq.rep2.bam'), chrom_size_file='hg38.chrom.sizes', ref_size=2e7) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.