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

generatePreloadedSessionR Documentation

Generate files for preloaded session from a session link.

Description

Generate files for preloaded session from a session link.

Usage

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

## Not run: 
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)

servePhantasus(preloadedDir=preloadedDir, openInBrowser=FALSE)
# open browser manually at http://0.0.0.0:8000/phantasus/index.html?preloaded=my_session

## End(Not run)

baba-beda/morpheusR documentation built on Oct. 10, 2024, 1:35 a.m.