smfishHmrf.hmrfem.multi.save: Save the HMRF result

Description Usage Arguments Examples

View source: R/smfishHmrf.hmrfem.R

Description

This function assumes that HMRF has been run via smfishHmrf.hmrfem.multi, smfishHmrf.hmrfem.multi.it or smfishHmrf.hmrfem.multi.it.min function. It assumes the results have been generated. This function saves the results of each beta to the output directory. It will return void.

Usage

1
smfishHmrf.hmrfem.multi.save(name, outdir, beta, tc.hmrfem, k)

Arguments

name

name for this run (eg test)

outdir

output directory

beta

beta to save

tc.hmrfem

the result of running of hmrfem on single beta (from smfishHmrf.hmrfem.multi)

k

number of clusters

Examples

1
2
3
4
5
6
data(seqfishplus)
s <- seqfishplus
tc.hmrfem<-smfishHmrf.hmrfem.multi(s$y, s$nei, s$numnei, s$blocks, beta=28,
    mu=s$mu, sigma=s$sigma, err=1e-7, maxit=50, verbose=TRUE, dampFactor=s$damp,
    tolerance=1e-5)
smfishHmrf.hmrfem.multi.save(name="test", outdir=tempdir(), beta=28, tc.hmrfem=tc.hmrfem, k=9)

smfishHmrf documentation built on Jan. 13, 2021, 12:54 p.m.