SharedJunc: Generate shared junctions dataset from multiple BED files

Description Usage Arguments Details Value Author(s) Examples

View source: R/SharedJunc.R

Description

Load multiple BED files and output a GRange object with junctions present in multiple samples.

Usage

1
  SharedJunc(juns, share_num = 2, ...)

Arguments

juns

a list of GRanges object which input from multiple VCF files using function InputVcf.

share_num

Junctions must occurs in this number of samples to be consider. Two options, percentage format or sample number.

...

additional arguments

Details

This function allows to limit junctions that are present in at least m out of n BED files.

Value

a GRange object that contains the shared junctions

Author(s)

Xiaojing Wang

Examples

1
2
3
4
5
path <- system.file("extdata/beds", package="customProDB")
bedFiles<- paste(path, '/', list.files(path, pattern="*bed$"), sep='')
juncs <- lapply(bedFiles, function(x) Bed2Range(x, skip=1, covfilter=5))
shared <- SharedJunc(juncs, share_num=2)
shared

customProDB documentation built on Nov. 8, 2020, 8:06 p.m.