writeFitResultsToJSON: Write the results from the Fit or FitMS function to JSON

View source: R/signatureFitMultiStepLib.R

writeFitResultsToJSONR Documentation

Write the results from the Fit or FitMS function to JSON

Description

Writing of the results obtained with the Fit or FitMS function to JSON.

Usage

writeFitResultsToJSON(fitObj, compress = TRUE, filename = "fitData.json")

Arguments

fitObj

object obtained from the Fit or FitMS function

compress

if TRUE then compress the JSON file. This is recommended as a plain JSON text file can be quite large. Set to TRUE as default

filename

output file name of the JSON file. If the parameter compress is TRUE then the ".zip" postfix will be added

Examples

res <- Fit(catalogues,getOrganSignatures("Breast"))
writeFitResultsToJSON(res,"results/")

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