fitfunc: Fit a curve of a dynamic pattern

Description Usage Arguments Details Value Author(s) Examples

View source: R/DynaMO.R

Description

Take a vector of values and a vector of time and output the fitted curve, max and max derivative time.

Usage

1
fitfunc(expr,time)

Arguments

expr

A vector of expression value.

time

A vector of time.

Details

This function takes a vector of values and a vector of time and output the fitted curve, max and max derivative time.

Value

A list containing the max and max derivative time, fitted value and original value in two data.frames with 2 columns. The first is time and the second is fitted values.

Author(s)

Zheng Kuang

Examples

1
2
3
readfile<-system.file("extdata","motif_filter_reads_cluster.txt",package="DynaMO",mustWork=TRUE)
data<-read.table(as.character(file),sep="\t",header=T)
fitted<-fitfunc(data[1,1:4],1:4)

spo111/DynaMO documentation built on May 30, 2019, 7:59 a.m.