sigtools_autocorrelation: Plots the autocorrelation of several signals

Description Usage Arguments Examples

View source: R/sigtools_autocorrelation.R View source: R/autocorrelation.R

Description

Plots the autocorrelation of several signals

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
sigtools_autocorrelation(
  path_mulColBedG,
  outdir = "autocorrelation",
  header = FALSE,
  prefix = "s",
  sep = "\t",
  resolution = 200L,
  lag = 50L,
  mode = "bins",
  x_label = NA,
  y_label = NA,
  img_title = NA,
  img_width = 10,
  img_height = 10,
  fontSize = 20
)

Arguments

path_mulColBedG

The path to the input file of multi-column bedgraph

outdir

Name of the output directory [default:autocorrelation]

header

Does your file include headers? [default:FALSE]

prefix

Your preferred prefix for naming the signals [default:'s']

sep

Your field separator character [default:'\t']

resolution

The bin size of the input file [default:200]

lag

The number of demanded shifts [default:50]

mode

If set to 'regions', the autocorrelation is calculated over adjacent elements mentioned in the additional bed file [default:bins] [options:'bins' or 'regions']

x_label

Label for the X axis

y_label

label for the Y axis

img_title

Title of the graph

img_width

Width of the saved image (cm) [default:10]

img_height

Height of the saved image (cm) [default:10]

fontSize

The font size of the saved image [default:20]

Examples

1
sigtools_autocorrelation("./test_data/E003-assays_chr21_bin200_bwtool.mcBedGraph", outdir = "autocorrelation", header = TRUE, prefix = 's', sep = '\t', resolution = 200L, lag = 50L, img_height = 10, img_width = 20)

shohre73/sigtools documentation built on April 2, 2021, 4:52 a.m.