average_fragment_length: Define the average fragment length

Description Usage Arguments Value Examples

Description

A function to get average fragment length from a ChIP-Seq experiment

Usage

1
average_fragment_length(bam.files, plot = TRUE, max.dist = 550)

Arguments

bam.files

a vector of BAM files locations

plot

logical. Should a plot be generated?

max.dist

numeric. Maximum fragment length accepted. Default=550

Value

nothing

Examples

1
2
3
4
5
6
7
library(vulcandata)
sheetfile<-'deleteme.csv'
vulcandata::vulcansheet(sheetfile)
a<-read.csv(sheetfile,as.is=TRUE)
bams<-a$bamReads
unlink(sheetfile)
average_fragment_length(bams,plot=TRUE)

federicogiorgi/vulcan documentation built on May 27, 2019, 7:25 a.m.