fragmentoverlapcount | R Documentation |
Count Overlap of ATAC-seq Fragments
fragmentoverlapcount(
file,
targetregions,
excluderegions = NULL,
targetbarcodes = NULL,
Tn5offset = c(1, 0),
barcodesuffix = NULL,
dobptonext = FALSE
)
file |
Filename of the file for ATAC-seq fragments.
The file must be block gzipped (using the |
targetregions |
GRanges object for the regions where overlaps are counted.
Usually all of the autosomes.
If there is memory problem, split a chromosome into smaller chunks,
for example by 10 Mb.
The function loads each element of |
excluderegions |
GRanges object for the regions to be excluded.
Simple repeats in the genome should be listed here,
because repeats can cause false overlaps.
A fragment is discarded if its 5' or 3' end is located in |
targetbarcodes |
Character vector for the barcodes of cells to be analyzed,
such as those passing quality control.
If |
Tn5offset |
Numeric vector of length two.
The enzyme for ATAC-seq is a homodimer of Tn5.
The transposition sites of two Tn5 proteins are 9 bp apart,
and the (representative) site of accessibility is in between.
If the start and end position of your input file is taken from BAM file,
set the paramater to |
barcodesuffix |
Add suffix to barcodes per targetregions. |
dobptonext |
(experimental feature) Whether to compute smoothed distance to the next fragment (irrelevant to BC) as bptonext, which is the inverse of chromatin accessibility, and append as 9th to 14th columns. |
A tibble with each row corresponding to a cell.
For each cell, its barcode, the total count of the fragments nfrag
,
and the count distinguished by overlap depth are given.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.