DNaseHiC | R Documentation |
Processing of BAM files for DNase Hi-C into index files
emptyGenome(bs)
# Deprecated
segmentGenome(bs)
# Deprecated
prepPseudoPairs(bam, param, file, dedup=TRUE, minq=NA, ichim=TRUE,
chim.span=1000, output.dir=NULL, storage=5000L)
bs |
a |
bam |
a character string containing the path to a name-sorted BAM file |
param |
a |
file |
a character string specifying the path to an output index file |
dedup |
a logical scalar indicating whether marked duplicate reads should be removed |
minq |
an integer scalar specifying the minimum mapping quality for each read |
ichim |
a logical scalar indicating whether invalid chimeras should be counted |
chim.span |
an integer scalar specifying the maximum span between a chimeric 3' end and a mate read |
output.dir |
a character string specifying a directory for temporary files |
storage |
an integer scalar specifying the maximum number of pairs to store in memory before writing to file |
DNase Hi-C uses DNase to randomly fragment the genome, rather than using restriction fragments.
This requires some care to handle in diffHic, as most functions rely on fragment assignments in many functions.
To specify that the data are from a DNase Hi-C experiment, an empty GRanges object should be supplied as the fragments
in pairParam
.
Most functions will automatically recognise that the data are DNase Hi-C and behave appropriately.
This reflects the fact that no restriction fragments are involved in this analysis.
Genome information will instead be extracted from the seqlengths
of the GRanges object.
prepPseudoPairs
and segmentGenome
are deprecated in favour of preparePairs
and emptyGenome
, respectively.
In the case of preparePairs
, it will automatically detect if the BAM file is to be treated as DNase Hi-C based on param$fragments
.
For emptyGenome
, an empty GRanges object is produced containing the sequence names and lengths.
Aaron Lun
preparePairs
,
cutGenome
require(BSgenome.Ecoli.NCBI.20080805)
emptyGenome(Ecoli)
emptyGenome(c(chrA=100, chrB=200))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.