Skip to content

Commit

Permalink
Resolve additional in annotation_qc
Browse files Browse the repository at this point in the history
  • Loading branch information
anngvu committed Feb 23, 2024
1 parent fd638f0 commit 5e04550
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions R/annotation_qc.R
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,13 @@ manifest_passed <- function(result) {
#' @export
infer_data_type <- function(dataset_id) {

children <- .syn$getChildren(dataset_id)
children <- reticulate::iterate(children)
children <- synapser::synGetChildren(dataset_id)
children <- synapser::as.list(children)
if(!length(children)) return(list(result = NA, notes = "Empty dataset folder"))
children <- first(children, 3)
data_type <- c()
for (entity in children) {
e <- .syn$getAnnotations(entity)
e <- synapser::synGetAnnotations(entity)
data_type <- append(data_type, e$Component)
}
data_type <- unique(data_type)
Expand Down Expand Up @@ -203,9 +203,9 @@ meta_qc_dataset <- function(dataset_id,
schema_url = "https://raw.githubusercontent.com/nf-osi/nf-metadata-dictionary/main/NF.jsonld",
cleanup = TRUE) {

dataset_name <- .syn$get(dataset_id)$properties$name
dataset_name <- synapser::synGet(dataset_id)$properties$name

files <- reticulate::iterate(.syn$getChildren(dataset_id))
files <- synapser::as.list(synapser::synGetChildren(dataset_id))
if(!length(files)) {
return(list(result = NA,
notes = "Empty dataset with no files",
Expand Down

0 comments on commit 5e04550

Please sign in to comment.