readGR: Make GenomicRanges Object

Description Usage Arguments Value Examples

View source: R/readGR.R

Description

Creates a GenomicRanges file for a singular methclone ouput file

Usage

1
readGR(files, ids, n)

Arguments

files

A vector of files containing methcolone output

ids

A vector of sample ids for the files

n

The index of the file vector to be read

Value

A GenomicRanges object containing pdr, epipolymorphism, and Shannon entropy values for the nth file

Examples

1
2
3
4
5
6
files <- c(system.file("extdata","D-2238.chr22.region.methClone_out.gz",package = "epihet"),
system.file("extdata","D-2668.chr22.region.methClone_out.gz",package = "epihet"),
system.file("extdata","N-1.chr22.region.methClone_out.gz",package = "epihet"),
system.file("extdata","N-2.chr22.region.methClone_out.gz",package = "epihet"))
ids <- epihet::splitn(basename(files),"[.]",1)
GR.Object <- epihet::readGR(files = files, ids = ids, n = 3)

TheJacksonLaboratory/epihet documentation built on Dec. 22, 2020, 1:10 p.m.