shiftATACGranges {VplotR}R 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)

[Package VplotR version 1.2.0 Index]