readFilesAsGRangesList: readFilesAsGRangesList

Description Usage Arguments Value Examples

View source: R/utilities.R

Description

Takes in input the path of bam/bed files to process and stores them in a GRangesList object, named with filePath/filenames. (for lazy people)

Usage

1
2
3
readFilesAsGRangesList(filePath, fileType = c("bam", "bed", "bed.zip"),
  genomeName = NULL, onlyStdChrs = TRUE, arePeaks = TRUE,
  verbose = TRUE)

Arguments

filePath

the path of input files.

fileType

the type of the files (bam/bed/bed.zip).

genomeName

the genome code to associate to the files. (reccommended) (i.e. "mm9", "hg17")

onlyStdChrs

a flag to keep only standard chromosomes.

arePeaks

a flag indicating if the files contain peaks.

verbose

verbose output flag.

Value

a GRangesList object

Examples

1
2
3
4
5
6
7
files.path <- system.file("extdata/bam", package="DEScan2")
grl <- readFilesAsGRangesList(filePath=files.path, fileType="bam",
                                genomeName="mm9", onlyStdChrs=TRUE,
                                verbose=TRUE)
class(grl)
names(grl)
grl

DEScan2 documentation built on Nov. 8, 2020, 5:01 p.m.