bt.shift: Shift each feature by requested number of base pairs.

View source: R/bt.shift.R

bt.shiftR Documentation

Shift each feature by requested number of base pairs.

Description

Shift each feature by requested number of base pairs.

Usage

bt.shift(
  i,
  g,
  s = NULL,
  p = NULL,
  m = NULL,
  pct = NULL,
  header = NULL,
  output = NULL
)

Arguments

i

<bed/gff/vcf>

g

<genome>

s

Shift the BED/GFF/VCF entry -s base pairs. - (Integer) or (Float, e.g. 0.1) if used with -pct.

p

Shift features on the + strand by -p base pairs. - (Integer) or (Float, e.g. 0.1) if used with -pct.

m

Shift features on the - strand by -m base pairs. - (Integer) or (Float, e.g. 0.1) if used with -pct.

pct

Define -s, -m and -p as a fraction of the feature's length. E.g. if used on a 1000bp feature, -s 0.50, will shift the feature 500 bp "upstream". Default = false.

header

Print the header from the input file prior to results.

output

Output filepath instead of returning output in R.


PhanstielLab/bedtoolsr documentation built on Aug. 29, 2024, 5:37 p.m.