This page was generated on 2019-04-09 13:24:56 -0400 (Tue, 09 Apr 2019).
RTCA 1.35.1 Jitao David Zhang
Snapshot Date: 2019-04-08 17:01:18 -0400 (Mon, 08 Apr 2019) |
URL: https://git.bioconductor.org/packages/RTCA |
Branch: master |
Last Commit: d2a529f |
Last Changed Date: 2019-01-04 13:47:39 -0400 (Fri, 04 Jan 2019) |
| malbec2 | Linux (Ubuntu 18.04.2 LTS) / x86_64 | OK | OK | OK | | |
tokay2 | Windows Server 2012 R2 Standard / x64 | OK | OK | OK | OK | |
celaya2 | OS X 10.11.6 El Capitan / x86_64 | OK | OK | OK | OK | |
merida2 | OS X 10.11.6 El Capitan / x86_64 | OK | OK | [ OK ] | OK | |
R Under development (unstable) (2018-11-27 r75683) -- "Unsuffered Consequences"
Copyright (C) 2018 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin15.6.0 (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(RTCA)
Loading required package: Biobase
Loading required package: BiocGenerics
Loading required package: parallel
Attaching package: 'BiocGenerics'
The following objects are masked from 'package:parallel':
clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
clusterExport, clusterMap, parApply, parCapply, parLapply,
parLapplyLB, parRapply, parSapply, parSapplyLB
The following objects are masked from 'package:stats':
IQR, mad, sd, var, xtabs
The following objects are masked from 'package:base':
Filter, Find, Map, Position, Reduce, anyDuplicated, append,
as.data.frame, basename, cbind, colMeans, colSums, colnames,
dirname, do.call, duplicated, eval, evalq, get, grep, grepl,
intersect, is.unsorted, lapply, mapply, match, mget, order, paste,
pmax, pmax.int, pmin, pmin.int, rank, rbind, rowMeans, rowSums,
rownames, sapply, setdiff, sort, table, tapply, union, unique,
unsplit, which, which.max, which.min
Welcome to Bioconductor
Vignettes contain introductory material; view with
'browseVignettes()'. To cite Bioconductor, see
'citation("Biobase")', and for packages 'citation("pkgname")'.
Loading required package: RColorBrewer
Loading required package: gtools
>
>
> tl <- new("RTCAtimeline")
> timeUnit(tl) <- "hour"
> startTime(tl) <- Sys.time()-3e6
> show(tl)
RTCAtimeline
================================================
time action
0 start
================================================
Time unit: hour
RTCA-run start time: 2019-03-05 09:10:04
>
> tl2 <- addAction(tl, 1, "seeding")
> show(tl2)
RTCAtimeline
================================================
time action
0 start
1 seeding
================================================
Time unit: hour
RTCA-run start time: 2019-03-05 09:10:04
> stopifnot(getAction(tl2, 0)=="start")
> stopifnot(is.null(getAction(tl2, -1)))
>
> rmAction(tl2, 0)
RTCAtimeline
================================================
time action
1 seeding
================================================
Time unit: hour
RTCA-run start time: 2019-03-05 09:10:04
> rmAction(tl2, 1)
RTCAtimeline
================================================
time action
0 start
================================================
Time unit: hour
RTCA-run start time: 2019-03-05 09:10:04
> rmAction(tl2, -1)
RTCAtimeline
================================================
time action
0 start
1 seeding
================================================
Time unit: hour
RTCA-run start time: 2019-03-05 09:10:04
>
> updateAction(tl2, 1, "not seeding")
RTCAtimeline
================================================
time action
0 start
1 not seeding
================================================
Time unit: hour
RTCA-run start time: 2019-03-05 09:10:04
> updateAction(tl2, -1,"not seeding")
RTCAtimeline
================================================
time action
-1 not seeding
0 start
1 seeding
================================================
Time unit: hour
RTCA-run start time: 2019-03-05 09:10:04
> updateAction(tl2, -1,"not seeding", ifnotfound="ignore")
RTCAtimeline
================================================
time action
0 start
1 seeding
================================================
Time unit: hour
RTCA-run start time: 2019-03-05 09:10:04
> startTime(tl2) <- as.POSIXct("2009-05-06 14:52:03")
> tl2
RTCAtimeline
================================================
time action
0 start
1 seeding
================================================
Time unit: hour
RTCA-run start time: 2009-05-06 14:52:03
>
> ofile <- system.file("/extdata/testOutput.csv", package="RTCA")
> x <- parseRTCA(ofile)
Read 245 items
>
> ## add actions to timeline
> x <- addAction(x, 22, "transfection")
> x <- addAction(x, 30, "change medium")
>
> xr <- ratioTransform(x, 35)
> xrs <- smoothTransform(xr)
> xi <- interpolationTransform(x)
> xd <- derivativeTransform(x)
> xrgr <- rgrTransform(x)
> #plotRTCA(xrgr, xlim=c(35, 80), ylim=c(-0.2, 0.2))
> plot(sliceRTCA(x,0, 80)[,c(11,13)], type="l", col="black", ylim=c(0, 1.5))
> abline(h=0, col=2, lty=5)
> plot(sliceRTCA(xrgr, 20, 80)[,c(11,13)], type="l", col="black")
> abline(h=0, col=2, lty=5)
>
> plotGridEffect(x)
> plotGridEffect(x, "col")
> plateView(sliceRTCA(x, 0, 80))
>
> proc.time()
user system elapsed
2.799 0.170 2.961