Export a bettr SummarizedExperiment object to a standardized JSON format
that can be re-imported using bettrSEFromJSON.
Value
If file is NULL, returns a JSON string. Otherwise, writes
to file and returns the file path invisibly.
Examples
df <- data.frame(Method = c("M1", "M2", "M3"),
metric1 = c(1, 2, 3),
metric2 = c(3, 1, 2))
bettrSE <- assembleSE(df = df)
json_str <- bettrToJSON(bettrSE)