bed2dyad: Convert a bed file to nucleosome dyad coverage

Description Usage Arguments Details Value

View source: R/nucleosomes.R

Description

Single reads will be shifted towards the dyad position assuming an end-localisation of the read For paired reads the fragment mid points will be considered dyad position

Usage

1
bed2dyad(file.id, type = c("SINGLE", "PAIRED"), width = 1)

Arguments

file.id

path of the bed file

type

sequencing library type "SINGLE" or "PAIRED"

width

width of the dyad, default 1

Details

the bed files for SINGLE should have columns 1) chromosome 2) start 3) end 4) strand the bed files for PAIRED should have columns 1) chromosome 2) start 3) end

Value

a coverage object (RleList as returned by coverage)


musikutiv/tsTools documentation built on Dec. 9, 2017, 4:13 p.m.