View source: R/ChIPseqSpikeInFree.R
CountRawReads | R Documentation |
This function counts raw reads for each bin.
CountRawReads( bamFiles, chromFile = "hg19", prefix = "test", singleEnd = TRUE, binSize = 1000 )
bamFiles |
a vector of bam filenames. |
chromFile |
a chrom.size file. Given "hg19","mm10","mm9" or "hg38", will load chrom.size file from package folder. Otherwise, give a your own chrom.size |
prefix |
prefix of output file name |
singleEnd |
To count paired-end reads, set argument singleEnd=FALSE |
binSize |
size of bins (bp). Recommend a value bwteen 200 and 10000 |
a data.frame of raw counts for each bin
## 1.count reads using mm9 bams # bams <- c("your/path/ChIPseq1.bam","your/path/ChIPseq2.bam") # rawCountDF <- CountRawReads(bamFiles=bams,chromFile="mm9", # prefix="your/path/test",singleEnd=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.