This page was generated on 2019-04-16 11:55:06 -0400 (Tue, 16 Apr 2019).
RTCA 1.34.1 Jitao David Zhang
Snapshot Date: 2019-04-15 17:01:12 -0400 (Mon, 15 Apr 2019) |
URL: https://git.bioconductor.org/packages/RTCA |
Branch: RELEASE_3_8 |
Last Commit: 791baeb |
Last Changed Date: 2019-01-04 13:47:41 -0400 (Fri, 04 Jan 2019) |
| malbec1 | Linux (Ubuntu 16.04.6 LTS) / x86_64 | OK | OK | OK | | |
merida1 | OS X 10.11.6 El Capitan / x86_64 | OK | OK | [ OK ] | OK | |
R version 3.5.3 (2019-03-11) -- "Great Truth"
Copyright (C) 2019 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, lengths, 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-12 09:12:14
>
> tl2 <- addAction(tl, 1, "seeding")
> show(tl2)
RTCAtimeline
================================================
time action
0 start
1 seeding
================================================
Time unit: hour
RTCA-run start time: 2019-03-12 09:12:14
> 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-12 09:12:14
> rmAction(tl2, 1)
RTCAtimeline
================================================
time action
0 start
================================================
Time unit: hour
RTCA-run start time: 2019-03-12 09:12:14
> rmAction(tl2, -1)
RTCAtimeline
================================================
time action
0 start
1 seeding
================================================
Time unit: hour
RTCA-run start time: 2019-03-12 09:12:14
>
> updateAction(tl2, 1, "not seeding")
RTCAtimeline
================================================
time action
0 start
1 not seeding
================================================
Time unit: hour
RTCA-run start time: 2019-03-12 09:12:14
> updateAction(tl2, -1,"not seeding")
RTCAtimeline
================================================
time action
-1 not seeding
0 start
1 seeding
================================================
Time unit: hour
RTCA-run start time: 2019-03-12 09:12:14
> updateAction(tl2, -1,"not seeding", ifnotfound="ignore")
RTCAtimeline
================================================
time action
0 start
1 seeding
================================================
Time unit: hour
RTCA-run start time: 2019-03-12 09:12:14
> 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.791 0.171 2.951