annotate_with_manifest: Set annotations from a manifest

View source: R/annotations.R

annotate_with_manifestR Documentation

Set annotations from a manifest

Description

The Synapse docs suggest doing batch annotations through a fileview. However, it is often simpler to modify or set new annotations directly given a table of just the entities (rows) and props (cols) we want. This is like how schematic works, except without any validation (so works best for power-users who know the data model well). Some desired defaults are taken into account, such as not submitting key-values with NA and empty strings.

Usage

annotate_with_manifest(
  manifest,
  ignore_na = TRUE,
  ignore_blank = TRUE,
  verbose = FALSE
)

Arguments

manifest

A table manifest. Needs to contain entityId.

ignore_na

Whether to ignore annotations that are NA; default TRUE.

ignore_blank

Whether to ignore annotations that are that empty strings; default TRUE.

verbose

Be chatty, default FALSE.


nf-osi/nfportalutils documentation built on Feb. 26, 2024, 1:05 p.m.