Skip to contents

Introduction

This vignette is derived almost entirely from collaborative code supplied by Anh Nguyet Vu of Sage Bionetworks. The purpose is to illustrate usage of OpenAPI transformation to provide systematic organization and tagging of content available for Bioconductor packages.

Example 1: chromVAR

## Success after 0 attempts
## Success after 0 attempts
if (!(length(py_to_r(docv$base_final))==18)) docv = curate_bioc() # retry
if (!(length(py_to_r(docv$edam_processed))==2)) docv = curate_bioc()
if (!(length(py_to_r(docv$edam_processed))==2)) stop("curate_bioc failing on retry")

The curation step uses an OpenAI API key. The curated view of the chromVAR landing page at bioconductor.org is:

jsonedit(py_to_r(docv[[1]]))

The README of the chromVAR github repo provides additional metadata.

jsonedit(py_to_r(docv[[2]]))

These can be “merged” for a richer metadata artifact.

Example 2: tximport

dotx = curate_bioc(
 "tximport", 
 devurl = "https://raw.githubusercontent.com/thelovelab/tximport/refs/heads/devel/vignettes/tximport.Rmd")
## Success after 0 attempts
## Success after 0 attempts
full = c(py_to_r(dotx[[1]]), py_to_r(dotx[[2]]))
jsonedit(full)

Example 3: MSnbase

We added a simpler function edamize to simply use chat completion to EDAM schema with input from a URL. This allows a setting of the completion “temperature” parameter, which defaults to zero. See this doc. edamize does not appear to be very robust and often returns Null in examples; work is needed.

nn = edamize("https://raw.githubusercontent.com/lgatto/MSnbase/refs/heads/master/vignettes/v04-benchmarking.Rmd")
## Success after 0 attempts
full = py_to_r(nn)
jsonedit(full)