Title: | Bioinformatics pipelines based on Rcwl |
---|---|
Description: | A collection of Bioinformatics tools and pipelines based on R and the Common Workflow Language. |
Authors: | Qiang Hu [aut, cre], Qian Liu [aut], Shuang Gao [aut] |
Maintainer: | Qiang Hu <[email protected]> |
License: | GPL-2 |
Version: | 1.23.0 |
Built: | 2024-11-05 06:16:06 UTC |
Source: | https://github.com/bioc/RcwlPipelines |
'cwlHub' class, constructor, and methods.
cwlHub(BFC) ## S4 method for signature 'cwlHub' mcols(x) ## S4 method for signature 'cwlHub' show(object) ## S4 method for signature 'cwlHub,ANY,ANY,ANY' x[value, ..., drop = TRUE] title(object) Command(object) Container(object) Type(object)
cwlHub(BFC) ## S4 method for signature 'cwlHub' mcols(x) ## S4 method for signature 'cwlHub' show(object) ## S4 method for signature 'cwlHub,ANY,ANY,ANY' x[value, ..., drop = TRUE] title(object) Command(object) Container(object) Type(object)
BFC |
A BiocFileCache created for 'RcwlRecipes'. |
x |
A 'cwlHub' object. |
object |
A 'cwlHub' object |
value |
The "BFC" ID to extract the subset. |
... |
Option from '['. |
drop |
Option from '['. |
cwlHub: a 'cwlHub' object with slots of 'rid' and 'cache' path.
mcols: a 'DataFrame' with information from the 'BicFileCache' object.
[: a subset of 'cwlHub' records.
title: the 'Rcwl' recipe names for tools or pipelines.
Command: The name of 'Rcwl' wrapped command line tools.
Container: the container name for the 'Rcwl' recipe if exist. Otherwise 'NA'.
Type: The type of the 'Rcwl' recipe, "pipeline" or "tool".
## Not run: tools <- cwlUpdate() t1 <- tools["BFC178"] title(t1) Command(t1) Container(t1) Type(t1) ## End(Not run)
## Not run: tools <- cwlUpdate() t1 <- tools["BFC178"] title(t1) Command(t1) Container(t1) Type(t1) ## End(Not run)
To source Rcwl scripts
cwlInstall(rname, bfc = NULL, env = .GlobalEnv)
cwlInstall(rname, bfc = NULL, env = .GlobalEnv)
rname |
The name or filepath of tool or pipeline to install ('rname' or 'fpath' column from the 'bfc' object returned from 'cwlSearch'). |
bfc |
The 'BiocFileCache' object for the recipes returned from 'cwlUpdate'. The default is NULL which automatically detect the "Rcwl" cache directory. |
env |
The R enviroment to export to. The default is '.GlobalEnv'. |
Note to developers that the dependent Rcwl scripts should be included in the recipe with '@include' tag.
## Not run: tls <- cwlSearch("bwa") tls$rname cwlInstall("tl_bwa") cwlInstall(tls$fpath[tls$rname == "tl_bwa"]) ## equivalent bwa ## End(Not run)
## Not run: tls <- cwlSearch("bwa") tls$rname cwlInstall("tl_bwa") cwlInstall(tls$fpath[tls$rname == "tl_bwa"]) ## equivalent bwa ## End(Not run)
To source Rcwl scripts
cwlLoad( rname, bfc = NULL, env = .GlobalEnv, cwlfile = NULL, dir = tempdir(), ... )
cwlLoad( rname, bfc = NULL, env = .GlobalEnv, cwlfile = NULL, dir = tempdir(), ... )
rname |
The name or filepath of tool or pipeline to install ('rname' or 'fpath' column from the 'bfc' object returned from 'cwlSearch'). It can also be a CWL url or a github repo. |
bfc |
The 'BiocFileCache' object for the recipes. The default is NULL which automatically detect the "Rcwl" cache directory. |
env |
The R enviroment to export to. The default is '.GlobalEnv'. |
cwlfile |
For github repo input, The relative path of a CWL file inside of the github repo. |
dir |
For github repo input, the directory to clone the repo. |
... |
More options from git2r::clone. |
Note to developers that the dependent Rcwl scripts should be included in the recipe with '@include' tag.
A 'cwlProcess' object. For pipelines, the dependent tools will also loaded.
## Not run: tls <- cwlSearch("bwa") title(tls) bwa <- cwlLoad("tl_bwa") bwa <- cwlLoad(tls$fpath[tls$rname == "tl_bwa"]) ## equivalent bwa ## End(Not run)
## Not run: tls <- cwlSearch("bwa") title(tls) bwa <- cwlLoad("tl_bwa") bwa <- cwlLoad(tls$fpath[tls$rname == "tl_bwa"]) ## equivalent bwa ## End(Not run)
Function to search Rcwl tools and pipelines.
cwlSearch(keyword, bfc = NULL, type = NULL, ...)
cwlSearch(keyword, bfc = NULL, type = NULL, ...)
keyword |
A (vector of) character string as keywords to search for tools or pipelines. Will be used to match patterns (case-insensitive) against 'rname', 'rpath', 'fpath', 'Command' and 'Container' column in the 'bfc' object. |
bfc |
The 'BiocFileCache' object for the recipes returned from 'cwlUpdate'. The default is NULL which automatically detect the "Rcwl" cache directory. |
type |
The 'Type' to filter the results, "pipeline" or "tool". |
... |
More options from the internal 'bfcquery' function. |
A BiocFileCache tibble.
## Not run: tls <- cwlSearch(c("bwa", "mem")) data.frame(tls) ## End(Not run)
## Not run: tls <- cwlSearch(c("bwa", "mem")) data.frame(tls) ## End(Not run)
Function to sync and get the most updated Rcwl recipes from the RcwlRecipes github
cwlUpdate(cachePath = "Rcwl", force = FALSE, branch = NULL)
cwlUpdate(cachePath = "Rcwl", force = FALSE, branch = NULL)
cachePath |
The cache path of the BiocFileCache object to store the Rcwl tools and pipelines recipes. |
force |
Whether to clean existing recipes cache. |
branch |
The branch of github recipes repository. It can be "master" and "dev". "force = TRUE" is recommended when swithing branch. |
## Not run: tools <- cwlUpdate() ## End(Not run)
## Not run: tools <- cwlUpdate() ## End(Not run)
A package for a collection of Rcwl pipelines. Currently four pipeplines have been collected in the package.
To search container images for a tool in certain repository from quay.io or dockerhub.
searchContainer(tool, repo = "biocontainers", source = c("quay", "dockerhub"))
searchContainer(tool, repo = "biocontainers", source = c("quay", "dockerhub"))
tool |
The tool to search. |
repo |
The repository to lookup. |
source |
The container server to search, quay.io or dockerhub. |
A DataFrame contains image tag names, updated dates and image sizes.
searchContainer("samtools")
searchContainer("samtools")