bt.makewindows: Makes adjacent or sliding windows across a genome or BED...

View source: R/bt.makewindows.R

bt.makewindowsR Documentation

Makes adjacent or sliding windows across a genome or BED file.

Description

Makes adjacent or sliding windows across a genome or BED file.

Usage

bt.makewindows(
  g = NULL,
  b = NULL,
  w = NULL,
  s = NULL,
  n = NULL,
  reverse = NULL,
  i = NULL,
  output = NULL
)

Arguments

g

<genome> OR

b

<bed>

w

<window_size> OR

s

<step_size> Step size: i.e., how many base pairs to step before creating a new window. Used to create "sliding" windows. - Defaults to window size (non-sliding windows).

n

<number of windows>

reverse

Reverse numbering of windows in the output, i.e. report windows in decreasing order

i

src|winnum|srcwinnum The default output is 3 columns: chrom, start, end . With this option, a name column will be added. "-i src" - use the source interval's name. "-i winnum" - use the window number as the ID (e.g. 1,2,3,4...). "-i srcwinnum" - use the source interval's name with the window number. See below for usage examples.

output

Output filepath instead of returning output in R.


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