LibComplexQC | R Documentation |
The function calculate the nonredundant fraction of reads (NRF). Its definition is number of distinct uniquely mapping reads (i.e. after removing duplicates) / Total number of reads. The function also Calculate PCR Bottlenecking Coefficient 1 (PBC1) and PCR Bottlenecking Coefficient 2 (PBC2). PBC1=M1/M_DISTINCT and PBC2=M1/M2, where M1: number of genomic locations where exactly one read maps uniquely, M2: number of genomic locations where two reads map uniquely M_DISTINCT: number of distinct genomic locations to which some read maps uniquely.
atacLibComplexQC( atacProc, reportOutput = NULL, samInput = NULL, singleEnd = FALSE, subsampleSize = Inf, ... ) ## S4 method for signature 'ATACProc' atacLibComplexQC( atacProc, reportOutput = NULL, samInput = NULL, singleEnd = FALSE, subsampleSize = Inf, ... ) libComplexQC( samInput, reportOutput = NULL, singleEnd = FALSE, subsampleSize = Inf, ... )
atacProc |
|
reportOutput |
|
samInput |
|
singleEnd |
|
subsampleSize |
|
... |
Additional arguments, currently unused. |
The parameter related to input and output file path
will be automatically
obtained from ATACProc-class
object(atacProc
) or
generated based on known parameters
if their values are default(e.g. NULL
).
Otherwise, the generated values will be overwrited.
If you want to use this function independently,
you can use libComplexQC
instead.
An invisible libComplexQC
object scalar for downstream analysis.
Zheng Wei
atacBowtie2Mapping
bowtie2Mapping
library(R.utils) td <- tempdir() setTmpDir(td) sambzfile <- system.file(package="esATAC", "extdata", "Example.sam.bz2") samfile <- file.path(td,"Example.sam") bunzip2(sambzfile,destname=samfile,overwrite=TRUE,remove=FALSE) atacproc<-libComplexQC(samInput = samfile)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.