Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
9b563e1
Merge pull request #42 from pepkit/tximeta
stolarczyk Oct 22, 2020
016eef8
add Project method for piface path determination
stolarczyk Oct 22, 2020
e99bfad
add pipeline outputs retrieval
stolarczyk Oct 22, 2020
2385a27
bump version
stolarczyk Oct 22, 2020
f9494a2
add piface vignette
stolarczyk Oct 22, 2020
abcc608
add dependancies
stolarczyk Oct 22, 2020
3e857e0
udpate piface
stolarczyk Oct 22, 2020
6313dab
enhance update_examples bash script
stolarczyk Oct 23, 2020
ab98130
update piface vignette
stolarczyk Oct 23, 2020
1b5424e
add bioc section sourcing from piface
stolarczyk Oct 23, 2020
440dfec
abstract piface name verification away, use name no path in output lists
stolarczyk Oct 23, 2020
7f3d2fb
docs
stolarczyk Oct 23, 2020
5c0b264
add tests
stolarczyk Oct 25, 2020
4eead31
Merge branch 'piface' into fix
stolarczyk Nov 2, 2020
f7cf5e6
Merge pull request #43 from pepkit/fix
stolarczyk Nov 2, 2020
ce7c11c
small changes to tximeta vignette
mikelove Nov 3, 2020
afc6226
fix multi funcArgs issue
stolarczyk Nov 5, 2020
3ba63f4
add path populating functions; follow new schema format
stolarczyk Jan 8, 2021
3a43f43
enable project context in path templates populating
stolarczyk Jan 8, 2021
89b4463
update user facing schema methods
stolarczyk Jan 8, 2021
14876a6
coerce to char after glueing, docs
stolarczyk Jan 11, 2021
928754c
preserve output IDs in outputs list
stolarczyk Jan 11, 2021
b8471e2
store path-like keys in const
stolarczyk Jan 12, 2021
f010a86
add/update example package data
stolarczyk Jan 12, 2021
d88246c
update piface vignette
stolarczyk Jan 12, 2021
a3f1b05
Merge pull request #44 from mikelove/master
stolarczyk Jun 3, 2021
0a8643b
add docs deployment gh action
stolarczyk Jun 3, 2021
da0922b
fix docs
stolarczyk Jun 4, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/pkgdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
on:
push:
branches:
- dev
- master

name: Deploy-package-documentation

jobs:
pkgdown:
runs-on: macos-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2

- uses: r-lib/actions/setup-r@v1

- uses: r-lib/actions/setup-pandoc@v1

- name: Query dependencies
run: |
install.packages('remotes')
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
shell: Rscript {0}

- name: Restore R package cache
uses: actions/cache@v2
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-

- name: Install dependencies
run: |
remotes::install_deps(dependencies = TRUE)
install.packages("pkgdown", type = "binary")
shell: Rscript {0}

- name: Install package
run: R CMD INSTALL .

- name: Deploy package documentation
run: |
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE, commit_message="deploy docs with a github action")'
7 changes: 4 additions & 3 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: BiocProject
Title: Bioconductor Management with Portable Encapsulated Project (PEP) Objects
Version: 0.2.1
Version: 0.3.0
Authors@R: c(person("Michal", "Stolarczyk", email = "mjs5kd@virginia.edu",role = c("aut", "cre")),
person("Nathan", "Sheffield", email = "nathan@code.databio.org",role = c("aut")))
Description: A Bioconductor-oriented project management class. It wraps the
Expand All @@ -9,8 +9,9 @@ Description: A Bioconductor-oriented project management class. It wraps the
License: BSD_2_clause + file LICENSE
Encoding: UTF-8
LazyData: true
Depends: S4Vectors, pepr, methods
Suggests: testthat, yaml, BiocFileCache, simpleCache, GenomicRanges, knitr, BiocStyle, rmarkdown
Depends: S4Vectors, pepr
Imports: methods, glue, RCurl, yaml, stats, pryr
Suggests: testthat, BiocFileCache, simpleCache, GenomicRanges, knitr, BiocStyle, rmarkdown
biocViews: DataImport, DataRepresentation
RoxygenNote: 7.1.1
URL: https://github.com/pepkit/BiocProject
Expand Down
14 changes: 14 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,13 +1,27 @@
# Generated by roxygen2: do not edit by hand

export(.insertPEP)
export(.pyToR)
export(.setShowMethod)
export(.unionList)
export(BiocProject)
export(gatherPipelineInterfaces)
export(getOutputsBySample)
export(getProjectOutputs)
export(pipelineInterfacesBySample)
export(readSchema)
exportMethods(config)
exportMethods(getProject)
exportMethods(is)
exportMethods(sampleTable)
import(S4Vectors)
import(methods)
import(pepr)
importFrom(RCurl,getURLContent)
importFrom(glue,glue)
importFrom(methods,new)
importFrom(pepr,checkSection)
importFrom(pepr,config)
importFrom(pryr,partial)
importFrom(stats,setNames)
importFrom(yaml,yaml.load_file)
13 changes: 12 additions & 1 deletion R/constants.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,15 @@
BIOC_SECTION = "bioconductor"
FUNCTION_ARGS = "funcArgs"
FUNCTION_PATH = "readFunPath"
FUNCTION_NAME = "readFunName"
FUNCTION_NAME = "readFunName"

# other constants
PIP_TYPE_KEY = "pipeline_type"
PIP_NAME_KEY = "pipeline_name"
OUTPUT_SCHEMA_SECTION = "output_schema"
LOOPER_SECTION = "looper"
PIP_IFACE_NAME = "pipeline_interfaces"
PIP_IFACE_KEY = "pipeline_interfaces_key"
SCHEMA_SAMPLE_OUTS = c("properties", "samples", "items", "properties")
PATH_LIKE_KEYS = c("path", "thumbnail_path")
PIP_IFACE_SECTION = c(LOOPER_SECTION, PIP_IFACE_NAME)
14 changes: 9 additions & 5 deletions R/functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@
#' the \code{bioconductor} section in the config file.
#' @param autoLoad a logical indicating whether the data should be loaded
#' automatically. See \code{Details} for more information.
#' @param projectLevel logical indicating whether a only project-level pifaces
#' should be considered. Otherwise, only sample-level ones are.
#'
#' @return an object of \code{\link[S4Vectors]{Annotated-class}} that is
#' returned by the user provided function with
Expand All @@ -81,8 +83,8 @@
#' @seealso \url{https://pepkit.github.io/}
#' @import pepr
#' @export BiocProject
BiocProject = function(file, amendments = NULL, autoLoad = TRUE, func = NULL,
funcArgs = NULL) {
BiocProject = function(file, amendments = NULL, autoLoad = TRUE, func = NULL,
projectLevel = FALSE, funcArgs = NULL) {
p = pepr::Project(file=file, amendments = amendments)
# prevent PEP (Project object) input. This prevents BiocProject object
# failing when the user provides the Project object
Expand All @@ -96,13 +98,15 @@ BiocProject = function(file, amendments = NULL, autoLoad = TRUE, func = NULL,
}
}
args = append(list(p), funcArgs)
cfg = pepr::config(p)
cfg = .getBiocConfig(p, projectLevel)
if(is.null(cfg))
cfg = pepr::config(p)
if(pepr::.checkSection(cfg, c(BIOC_SECTION, FUNCTION_ARGS))){
args = .unionList(config(p)[[BIOC_SECTION]][[FUNCTION_ARGS]],args)
args = .unionList(config(p)[[BIOC_SECTION]][[FUNCTION_ARGS]], args)
argsNames = names(args)
project = args[[.findProjectInList(args)]]
argsNames = append("",argsNames[-.findProjectInList(args)])
args = append(list(p), args[[-.findProjectInList(args)]])
args = append(list(p), args[-.findProjectInList(args)])
names(args) = argsNames
}
if (!is.null(func)) {
Expand Down
Loading