Skip to content

Commit

Permalink
Patch/fix ref (#129)
Browse files Browse the repository at this point in the history
* Fix ref to recently renamed function

* Update version

* Fix typo

* Revise return to be more useful

* Revise return structure
  • Loading branch information
anngvu authored Sep 14, 2023
1 parent 5d341a0 commit f4867cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: nfportalutils
Title: NF Portal Utilities
Version: 0.0.0.9410
Version: 0.0.0.9411
Authors@R: c(
person(given = "Robert", family = "Allaway", role = c("aut", "cre"),
email = "[email protected]",
Expand Down
6 changes: 2 additions & 4 deletions R/find.R
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,9 @@ find_nf_asset <- function(syn_out,
#' @export
nf_workflow_version <- function(syn_out) {

version_meta <- nf_find_asset(syn_out, asset = "software_versions")
version_meta <- find_nf_asset(syn_out, asset = "software_versions")
file <- .syn$get(version_meta, downloadFile = TRUE)
yml <- yaml::read_yaml(file$path)
workflow <- grep("nf-core", names(yml$Workflow))
yaml$Workflow[[workflow]]

list(workflow = names(yml$Workflow[2]), version = yml$Workflow[[2]])
}

0 comments on commit f4867cd

Please sign in to comment.