generateObject: Load data

Description Usage Arguments Value Examples

View source: R/loadfun.R

Description

Load data

Usage

1
2
generateObject(experimentDesign = NULL,nstates = 3, rigidity=NULL,
seqlengths = NULL, verbose = TRUE)

Arguments

experimentDesign

a data Frame that contains minimum a column with the files direction (name of the column files) and another with a shorter name to be used inside the function.

nstates

the number of states to be fitted in the model. A standard setting would use 3 states (Homozygous1, Heterozygous, and Homozygous2).

rigidity

an integer number specifying the rigidity parameter to be used.

seqlengths

a named vector with the chromosome lenghts of the organism that the user is working with.

verbose

logical value. Whether to print info messages.

Value

RTIGER object

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
data("ATseqlengths")
path = system.file("extdata",  package = "RTIGER")
files = list.files(path, full.names = TRUE)
nam = sapply(list.files(path ), function(x) unlist(strsplit(x, split = "[.]"))[1])
expDesign = data.frame(files = files, name = nam)
names(ATseqlengths) = paste0("Chr", 1:5)
myres = generateObject(experimentDesign = expDesign,
              seqlengths = ATseqlengths,
              rigidity = 10
)

RTIGER documentation built on April 27, 2021, 9:06 a.m.