shiftATACGranges: A function to shift GRanges fragments by 5/-4. This is useful...

View source: R/bamutils.R

shiftATACGrangesR Documentation

A function to shift GRanges fragments by 5/-4. This is useful when dealing with fragments coming from ATAC-seq.

Description

A function to shift GRanges fragments by 5/-4. This is useful when dealing with fragments coming from ATAC-seq.

Usage

shiftATACGranges(g, pos_shift = 4, neg_shift = 5)

Arguments

g

GRanges of ATAC-seq fragments

pos_shift

Integer. How many bases should fragments on direct strand be shifted by?

neg_shift

Integer. How many bases should fragments on negative strand be shifted by?

Value

A GRanges object containing fragments from the input .bam file.

Examples

data(bam_test)
shiftATACGranges(bam_test)

js2264/VplotR documentation built on Jan. 4, 2024, 7:49 p.m.