Title: | Interact with BioUML Server |
---|---|
Description: | Functions for connecting to BioUML server, querying BioUML repository and launching BioUML analyses. |
Authors: | Ivan Yevshin [aut, cre], Tagir Valeev [aut] |
Maintainer: | Ivan Yevshin <[email protected]> |
License: | GPL-2 |
Version: | 1.11 |
Built: | 2025-01-31 03:08:01 UTC |
Source: | https://github.com/cran/rbiouml |
Run BioUML analysis optionaly tracking progress
biouml.analysis(analysisName, parameters=list(), wait=T, verbose=T)
biouml.analysis(analysisName, parameters=list(), wait=T, verbose=T)
analysisName |
name of BioUML analysis to run, use |
parameters |
list of parameters to BioUML analysis, use |
wait |
whether to wait for analysis completion or return immediately |
verbose |
print messages and progress from BioUML analysis, only meaningful if |
Job id that can be passed to biouml.job.info
and biouml.job.wait
biouml.analysis.list
fetches list of available analyses from current BioUML server
biouml.analysis.list()
biouml.analysis.list()
A data frame (data.frame
) with two column 'Group' and 'Name'.
Get BioUML analysis parameters names and description
biouml.analysis.parameters(analysisName)
biouml.analysis.parameters(analysisName)
analysisName |
name of BioUML analysis, , use |
A data frame (data.frame
) with row.names corresponding to parameter names and one column 'description' with parameter description
biouml.export
exports data from BioUML server to local file in given format
biouml.export(path, exporter="Tab-separated text (*.txt)", exporter.params=list(), target.file="biouml.out")
biouml.export(path, exporter="Tab-separated text (*.txt)", exporter.params=list(), target.file="biouml.out")
path |
path in BioUML repository |
exporter |
character string specifying format, |
exporter.params |
list of parameters to exporter |
target.file |
a character string naming a file to export to |
None (invisible NULL
).
Get BioUML export parameters
biouml.export.parameters(path, exporter)
biouml.export.parameters(path, exporter)
path |
path to data element in BioUML repository to export |
exporter |
name of BioUML exporter, use |
A data frame (data.frame
) with row.names corresponding to parameter names and one column 'description' with parameter description
biouml.exporters
fetches the list of exporters from BioUML server, these exporters can be used in biouml.export
function
biouml.exporters()
biouml.exporters()
Character vector of BioUML exporters.
biouml.get
fetches table data from BioUML server
biouml.get(path)
biouml.get(path)
path |
Path to table in BioUML repository |
A data frame (data.frame
) representation of BioUML table from path
.
## Not run: ## fetch table from public BioUML server biouml.login("https://ict.biouml.org") x <- biouml.get("data/Examples/Optimization/Data/Experiments/exp_data_1") head(x) biouml.logout() ## End(Not run)
## Not run: ## fetch table from public BioUML server biouml.login("https://ict.biouml.org") x <- biouml.get("data/Examples/Optimization/Data/Experiments/exp_data_1") head(x) biouml.logout() ## End(Not run)
biouml.import
imports file to BioUML repository
biouml.import(file, parentPath, importer, importer.params=list())
biouml.import(file, parentPath, importer, importer.params=list())
file |
The name of file to import |
parentPath |
Path to folder in BioUML repository |
importer |
character string specifying format, |
importer.params |
list of parameters to exporter |
Resulting path in BioUML repository
Get BioUML import parameters
biouml.import.parameters(path, importer)
biouml.import.parameters(path, importer)
path |
path to data element in BioUML repository to import |
importer |
name of BioUML importer, use |
A data frame (data.frame
) with row.names corresponding to parameter names and one column 'description' with parameter description
biouml.importers
fetches the list of importers from BioUML server, these importers can be used in biouml.import
function
biouml.importers()
biouml.importers()
Character vector of BioUML importers.
biouml.job.info
fetches info about BioUML job
biouml.job.info(jobID)
biouml.job.info(jobID)
jobID |
ID of job usually returned from biouml.analysis |
A list with following entries
status |
job status, one of 'CREATED','RUNNING', 'PAUSED', 'COMPLETED', 'TERMINATED_BY_REQUEST', 'TERMINATED_BY_ERROR' |
results |
a list of resulting paths in BioUML repository |
values |
character vector of messages from job |
percent |
percent complete |
biouml.job.wait
waits for BioUML job completion
biouml.job.wait(jobID, verbose=T)
biouml.job.wait(jobID, verbose=T)
jobID |
ID of job usually returned from biouml.analysis |
verbose |
print messages and progress from BioUML job |
A list with following entries
status |
job status, one of 'CREATED','RUNNING', 'PAUSED', 'COMPLETED', 'TERMINATED_BY_REQUEST', 'TERMINATED_BY_ERROR' |
results |
a list of resulting paths in BioUML repository |
values |
character vector of messages from job |
percent |
percent complete |
Login to BioUML server. The connection will be saved in global options under name biouml_connection for future reuse.
biouml.login(url='http://localhost:8080/biouml', user='', pass='')
biouml.login(url='http://localhost:8080/biouml', user='', pass='')
url |
URL of running biouml server |
user |
BioUML user, empty string for anonymous login |
pass |
password |
Invisible connection to BioUML server, connection is a list with following items:
user |
the name of user used for connection |
pass |
password in plain text |
url |
URL of biouml server |
sessionId |
session id returned by BioUML server |
## Not run: ## connect to public BioUML server at https://ict.biouml.org biouml.login("https://ict.biouml.org") getOption("biouml_connection") biouml.logout() ## End(Not run)
## Not run: ## connect to public BioUML server at https://ict.biouml.org biouml.login("https://ict.biouml.org") getOption("biouml_connection") biouml.logout() ## End(Not run)
Logouts from BioUML server
biouml.logout()
biouml.logout()
biouml.ls
lists children data elements by path in BioUML repository
biouml.ls(path, extended=F)
biouml.ls(path, extended=F)
path |
Path to data collection in BioUML repository |
extended |
whether to return additional attributes for each children |
If extended is FALSE a character vector with child names, otherwise a data frame (data.frame
) with row.names corresponding to child names and columns hasChildren and type.
## Not run: ## list databases available in public BioUML server biouml.login("https://ict.biouml.org") biouml.ls("databases") biouml.logout() ## End(Not run)
## Not run: ## list databases available in public BioUML server biouml.login("https://ict.biouml.org") biouml.ls("databases") biouml.logout() ## End(Not run)
biouml.put
stores data.frame in BioUML repository
biouml.put(path, value)
biouml.put(path, value)
path |
Path in BioUML repository |
value |
data.frame to store |
## Not run: ## put data.frame into BioUML repository x <- data.frame(A=1:10,B=LETTERS[1:10]) biouml.login("https://ict.biouml.org") biouml.put("data/Collaboration/Demo/Data/Rtest/test_df", x) biouml.logout() ## End(Not run)
## Not run: ## put data.frame into BioUML repository x <- data.frame(A=1:10,B=LETTERS[1:10]) biouml.login("https://ict.biouml.org") biouml.put("data/Collaboration/Demo/Data/Rtest/test_df", x) biouml.logout() ## End(Not run)
Run BioUML workflow optionaly tracking progress
biouml.workflow(path, parameters=list(), wait=T, verbose=T)
biouml.workflow(path, parameters=list(), wait=T, verbose=T)
path |
path to BioUML workflow |
parameters |
list of parameters to BioUML workflow |
wait |
whether to wait for workflow completion or return immediately |
verbose |
print messages and progress from BioUML workflow, only meaningful if |
Job id that can be passed to biouml.job.info
and biouml.job.wait