Learn R Programming

smfishHmrf (version 0.1)

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

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

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

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab