generatePreloadedSession: Generate files for preloaded session from a session link.

Description Usage Arguments Value Examples

Description

Generate files for preloaded session from a session link.

Usage

1
generatePreloadedSession(sessionURL, preloadedName, preloadedDir)

Arguments

sessionURL

String with session link produced by phantasus.

preloadedName

String with name that should be assigned to the session.

preloadedDir

Path to the directory with preloaded datasets and sessions.

Value

Function produces two files (preloadedName.rda with ExpressionSet and preloadedName.json with session features) in preloadedDir folder.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
sessionURL <- "https://ctlab.itmo.ru/phantasus/?session=x063c1b365b9211" # link from 'Get dataset link...' tool in phantasus
newName <- "my_session" # user defined name
preloadedDir <- "./preloaded" # directory where files will be stored. In order too get access through phantasus web-app should be preloadedDir
dir.create(preloadedDir, showWarnings = FALSE)
generatePreloadedSession(sessionURL= sessionURL,
                         preloadedName = newName,
                         preloadedDir = preloadedDir)
## Not run: 
servePhantasus(preloadedDir=preloadedDir, openInBrowser=FALSE)
# open browser manually at http://0.0.0.0:8000/phantasus/index.html?preloaded=my_session

## End(Not run)

phantasus documentation built on Nov. 8, 2020, 6:39 p.m.