export_SignatureFit_withBootstrap_to_JSON: Export Signature Fit with bootstrap to JSON

View source: R/SignatureFitLib.R

export_SignatureFit_withBootstrap_to_JSONR Documentation

Export Signature Fit with bootstrap to JSON

Description

Given a res file obtained from the SignatureFit_withBootstrap or SignatureFit_withBootstrap_Analysis function, export it to a set of JSON files that can be used for web visualisation

Usage

export_SignatureFit_withBootstrap_to_JSON(outdir, res)

Arguments

outdir

output directory where the output JSON files should be saved, remember to put "/" at the end of the folder name.

res

R object obtained from the SignatureFit_withBootstrap or SignatureFit_withBootstrap_Analysis function

Examples

res <- SignatureFit_withBootstrap(cat = rnd_matrix,
                  signature_data_matrix = cosmic30,
                  nboot = 5,
                  threshold_percent = 0.1,
                  threshold_p.value = 0.1)
export_SignatureFit_withBootstrap_to_JSON("JSON_out/",res)

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