resample_reads: Resample reads from 5' coverage vector

Description Usage Arguments Value

View source: R/transcript_archetypes.R

Description

Resample a vector of read coverage where each read only covers a single point.

Exports simulation annotations and data to bed and bigWig files respectively

Usage

1
2
3
4
5
6
7
8
9
resample_reads(x, size, replace = T, jitter = 0)

export_simulation(
  annotations,
  data,
  ta,
  directory = ".",
  simulation_id = "sim"
)

Arguments

x

a numeric or Rle vector

size

number of reads to sample

replace

to sample with replacement (default: TRUE)

jitter

amount by which reads can be shifted to the left or right (default: 0)

annotations

a GRanges object with a score column indicating abundances

data

a two element list containing a plus and minus RleList simulated from the simulate_data function

ta

a transcript_archetypes-class object

directory

directory to write output to

simulation_id

character string to name simulation outputs with

Value

A resampled numeric vector of 5' read counts

A resampled numeric vector of 5' read counts


CshlSiepelLab/nascentRNASim documentation built on Dec. 17, 2021, 3:08 p.m.