fitMStoJSON: Export the results from the FitMS function to JSON

View source: R/signatureFitMultiStepLib.R

fitMStoJSONR Documentation

Export the results from the FitMS function to JSON

Description

Exports of the results obtained with the FitMS function to JSON.

Usage

fitMStoJSON(
  fitObj,
  filename = "export.json",
  nindent = 0,
  disableFileWrite = FALSE,
  blockname = NULL
)

Arguments

fitObj

object obtained from the FitMS function

filename

file name where to save the JSON string

nindent

number of tabs of indentation to be used, default=0. This is useful in case one wants to embed the output in a larger JSON document

disableFileWrite

if TRUE the JSON lines are simply printed to screen. This option is used when fitToJSON is called from another function

blockname

if specified, the first line will show the given name as the block name, which is useful if the output is embedded in a larger JSON file

Examples

res <- FitMS(catalogues,"Breast")
fitMStoJSON(res,"export.json")

Nik-Zainal-Group/signature.tools.lib documentation built on April 13, 2025, 5:50 p.m.