| Title: | systemPipeRdata: Workflow templates and sample data |
|---|---|
| Description: | systemPipeRdata complements the systemPipeR workflow management system (WMS) by offering a collection of pre-designed data analysis workflow templates. These templates are easily accessible and can be readily loaded onto a user's system with a single command. Once loaded, the WMS can immediately utilize these templates for efficient end-to-end analysis, serving a wide range of data analysis needs. |
| Authors: | Thomas Girke |
| Maintainer: | Thomas Girke <[email protected]> |
| License: | Artistic-2.0 |
| Version: | 2.16.0 |
| Built: | 2026-10-10 11:09:43 UTC |
| Source: | https://github.com/bioc/systemPipeRdata |
systemPipeRdata package
This function checks the workflow templates availability from systemPipeRdata package and
also from systemPipeR Organization on GitHub.
availableWF(github = FALSE)availableWF(github = FALSE)
github |
logical. If |
Internally, this function uses the GitHub API, and there is an access limit per hour.
For more details, please check: system("curl -i https://api.github.com/users/<username>").
Workflow templates are printed on the console, and also return an invisible list
with the names of the workflows templates availabe at systemPipeRdata
package. If github = TRUE, it will return an addicional data.frame
with current workflow templates available on systemPipeR Organization in
the list.
We are assuming that workflow templates repositories under systemPipeR Organization content the keyword "Workflow Template" on the Description section and "Topics" section, we expected "systempiper" and "release" or "development" words.
Daniela Cassol
availableWF() ## Not run: ## List Workflow Templates from \code{systemPipeR} Organization availableWF(github = TRUE) ## End(Not run)availableWF() ## Not run: ## List Workflow Templates from \code{systemPipeR} Organization availableWF(github = TRUE) ## End(Not run)
Generates workflow templates for systemPipeR package. The template environemts
contain a predifined directory structure along with run parameter files and sample data.
The strucutre of the workflow templates and the sample data are described in all
details in the Overview Vignette of the systemPipeR package.
genWorkenvir(workflow, mydirname=NULL, bam=FALSE)genWorkenvir(workflow, mydirname=NULL, bam=FALSE)
workflow |
|
mydirname |
Specifies the name of the workflow directory. The default |
bam |
If |
Check the output of \link{availableWF}() to the current workflow templates
available on systemPipeR Organization.
For an interactive() session, the readline() function provides the option
choose between proceeding or not, through options: yes or no.
For non-interactive use, if there is no package install, the option yes will be selected.
Workflow directory containing sample data and parameter files along with the following subdirectories:
param/ |
stores parameter files |
data/ |
stores input data |
results/ |
stores output results |
For more details, please consult the Overview Vignette (HTML) of the systemPipeR package (http://bioconductor.org/packages/systemPipeR).
Thomas Girke and Daniela Cassol
## Return location of sample data samplepaths <- pathList() ## Not run: ## Generate varseq workflow environment genWorkenvir(workflow="varseq", mydirname=NULL) setwd("varseq") ## End(Not run)## Return location of sample data samplepaths <- pathList() ## Not run: ## Generate varseq workflow environment genWorkenvir(workflow="varseq", mydirname=NULL) setwd("varseq") ## End(Not run)
Convenience wrapper around gert::git_clone() that clones a workflow
repository and enforces minimum package version requirements specified in
the workflow's manifest.yml file.
genWorkenvir_gh( url, mydirname, force_min_version = FALSE, cleanup_on_fail = TRUE, ... )genWorkenvir_gh( url, mydirname, force_min_version = FALSE, cleanup_on_fail = TRUE, ... )
url |
GitHub HTTPS URL of the workflow repository to clone. |
mydirname |
Target directory to clone into. |
force_min_version |
Logical; if |
cleanup_on_fail |
Logical; if |
... |
Additional arguments passed to |
If manifest.yml contains a block like:
systemPipeR: bioc_min: "2.17.1" systemPipeRdata: bioc_min: "2.15.4"
then the installed versions of the corresponding packages are checked.
By default, version mismatches cause an error and the cloned directory is removed to avoid leaving a partially initialized workflow.
Invisibly returns the normalized path of the cloned repository.
## Not run: ## Strict (default) genWorkenvir_gh( "https://github.com/systemPipeR/sprwf-new.git", "sprwf-new" ) ## Allow version mismatch (not recommended) genWorkenvir_gh( "https://github.com/systemPipeR/sprwf-new.git", "sprwf-new", force_min_version = TRUE ) ## End(Not run)## Not run: ## Strict (default) genWorkenvir_gh( "https://github.com/systemPipeR/sprwf-new.git", "sprwf-new" ) ## Allow version mismatch (not recommended) genWorkenvir_gh( "https://github.com/systemPipeR/sprwf-new.git", "sprwf-new", force_min_version = TRUE ) ## End(Not run)
Downloads a GitHub tag archive (.zip) for a data repository and installs
the contents of the data/ directory into the workflow repository (default
destination: "data").
getData_gh( data_repo = "ORG/cwl-data", dest = "data", tag = NULL, default_tag = "v1.0.0", source_subdir = "data", force = TRUE, mode = c("backup", "side_by_side", "ask", "abort", "overwrite"), quiet = FALSE )getData_gh( data_repo = "ORG/cwl-data", dest = "data", tag = NULL, default_tag = "v1.0.0", source_subdir = "data", force = TRUE, mode = c("backup", "side_by_side", "ask", "abort", "overwrite"), quiet = FALSE )
data_repo |
Data repository identifier. Either |
dest |
Destination directory in the workflow repository (default |
tag |
Git tag to install. If
|
default_tag |
Fallback tag used if no other tag source is available. |
source_subdir |
Subdirectory within the data repo archive to copy (default |
force |
Logical; only relevant when |
mode |
Behavior when |
quiet |
Logical; suppress progress messages. |
The data repository URL and tag are typically specified in the workflow repository's
manifest.yml under the data: block (keys repo and tag).
Versioned snapshots via Git tags:
This function installs files from a GitHub tag archive URL of the form
https://github.com/<ORG>/<REPO>/archive/refs/tags/<TAG>.zip.
To publish an updated parameter (or data) pack, developers must create and push
a new Git tag in the corresponding repository (and update the workflow manifest.yml
tag: field accordingly). Creating a GitHub Release for the tag is optional but
recommended for discoverability.
Users can override the tag without editing the manifest via the environment variable
PARAM_TAG (or DATA_TAG for sample data).
Invisibly returns a list with elements dest, tag, repo, backup, and mode.
## Not run: ## Run from inside a workflow repo that has manifest.yml: getData_gh() ## Developer workflow (run in param/data repo): ## git tag -a v1.2.0 -m "Update CWL params" ## git push --tags ## Then update manifest.yml in each workflow repo to tag: "v1.2.0" ## End(Not run)## Not run: ## Run from inside a workflow repo that has manifest.yml: getData_gh() ## Developer workflow (run in param/data repo): ## git tag -a v1.2.0 -m "Update CWL params" ## git push --tags ## Then update manifest.yml in each workflow repo to tag: "v1.2.0" ## End(Not run)
Downloads a GitHub tag archive (.zip) for a parameter repository and installs
the contents of a subdirectory (default: "param") into the workflow repository
(default destination: "param").
getParam_gh( param_repo = "ORG/cwl-params", dest = "param", tag = NULL, default_tag = "v1.0.0", source_subdir = "param", force = TRUE, mode = c("backup", "side_by_side", "ask", "abort", "overwrite"), quiet = FALSE )getParam_gh( param_repo = "ORG/cwl-params", dest = "param", tag = NULL, default_tag = "v1.0.0", source_subdir = "param", force = TRUE, mode = c("backup", "side_by_side", "ask", "abort", "overwrite"), quiet = FALSE )
param_repo |
Parameter repository identifier. Either |
dest |
Destination directory in the workflow repository (default |
tag |
Git tag to install. If
|
default_tag |
Fallback tag used if no other tag source is available. |
source_subdir |
Subdirectory within the parameter repo archive to copy (default |
force |
Logical; only relevant when |
mode |
Behavior when
|
quiet |
Logical; suppress progress messages. |
The parameter repository URL and tag are typically specified in the workflow repository's
manifest.yml under the param: block (keys repo and tag).
Versioned snapshots via Git tags:
This function installs files from a GitHub tag archive URL of the form
https://github.com/<ORG>/<REPO>/archive/refs/tags/<TAG>.zip.
To publish an updated parameter (or data) pack, developers must create and push
a new Git tag in the corresponding repository (and update the workflow manifest.yml
tag: field accordingly). Creating a GitHub Release for the tag is optional but
recommended for discoverability.
Users can override the tag without editing the manifest via the environment variable
PARAM_TAG (or DATA_TAG for sample data).
Invisibly returns a list with elements:
Normalized destination path where parameters were installed.
Resolved tag used for installation.
Resolved ORG/repo used for archive download.
Backup directory path (if a backup occurred), otherwise NA.
Effective mode used.
## Not run: ## Run from inside a workflow repo, usually generated by genWorkenvir_gh, ## that has manifest.yml: getParam_gh() ## Explicit repo and tag: getParam_gh(param_repo = "systemPipeR/sprwfcmp-param", tag = "v1.1.1") ## Safer install without touching existing param/: getParam_gh(mode = "side_by_side") ## Developer workflow (run in param/data repo): ## git tag -a v1.2.0 -m "Update CWL params" ## git push --tags ## Then update manifest.yml in each workflow repo to tag: "v1.2.0" ## End(Not run)## Not run: ## Run from inside a workflow repo, usually generated by genWorkenvir_gh, ## that has manifest.yml: getParam_gh() ## Explicit repo and tag: getParam_gh(param_repo = "systemPipeR/sprwfcmp-param", tag = "v1.1.1") ## Safer install without touching existing param/: getParam_gh(mode = "side_by_side") ## Developer workflow (run in param/data repo): ## git tag -a v1.2.0 -m "Update CWL params" ## git push --tags ## Then update manifest.yml in each workflow repo to tag: "v1.2.0" ## End(Not run)
Returns subsets of fastq files data based on specific mapping regions or list of genes or GRanges object.
getSubsetReads(args, geneList = NULL, gr = NULL, MappingRegion = 1:1e+05, sample_range = 90000:1e+05, truncate_refs = TRUE, id_read_number = TRUE, annotation = "data/tair10.gff", reference = "data/tair10.fasta", annot_outname = "tair10_sub.gff", ref_outname = "tair10_sub.fasta", outdir = "data/subset/", silent = FALSE )getSubsetReads(args, geneList = NULL, gr = NULL, MappingRegion = 1:1e+05, sample_range = 90000:1e+05, truncate_refs = TRUE, id_read_number = TRUE, annotation = "data/tair10.gff", reference = "data/tair10.fasta", annot_outname = "tair10_sub.gff", ref_outname = "tair10_sub.fasta", outdir = "data/subset/", silent = FALSE )
args |
object of class |
geneList |
selected genes list to retrieve the reads from the fastq file. |
gr |
an object containing genomic ranges to retrieve the reads from the fastq file. |
MappingRegion |
integers ranges of start and end of chromosome position to retrieve the reads from the fastq file. |
sample_range |
random range to subsetted the fastq file. |
truncate_refs |
logical. If TRUE it will generate reference genome and annotation subset file. |
id_read_number |
if fastq file contains sequence name with read number ( |
annotation |
path to annotation file. |
reference |
path to reference genome. |
annot_outname |
character name of the annotation output file. |
ref_outname |
character name of the reference genome output file. |
outdir |
path to output directory. |
silent |
if set to TRUE, all messages returned by the function will be suppressed. |
Workflow directory containing sample data and parameter files along with the following subdirectories:
param/ |
stores parameter files |
data/ |
stores input data |
results/ |
stores output results |
For more details, please consult the Overview Vignette (HTML) of the systemPipeR package (http://bioconductor.org/packages/systemPipeR).
Thomas Girke, Shiyuan Guo and Daniela Cassol
## Not run: getSubsetReads(args, MappingRegion = 1:900, sample_range = 800:900, outdir = "data/subset/", silent = FALSE) getSubsetReads(args, MappingRegion = 1:900, sample_range = NULL, outdir = "data/subset/", silent = FALSE) ## End(Not run)## Not run: getSubsetReads(args, MappingRegion = 1:900, sample_range = 800:900, outdir = "data/subset/", silent = FALSE) getSubsetReads(args, MappingRegion = 1:900, sample_range = NULL, outdir = "data/subset/", silent = FALSE) ## End(Not run)
Function to return paths to sample data provided by sytemPipeRdata package.
pathList()pathList()
list
Thomas Girke
samplepaths <- pathList()samplepaths <- pathList()