writeSIF {CellNOptR} | R Documentation

## Convert a model into a SIF format and save the result in a file.

### Description

This function takes as input a model (as created by e.g., read from a SIF data set with readSIF function) and save it into a file.

### Usage

    writeSIF(model, filename,  overwrite = FALSE)

### Arguments

`model` | the model
`filename` | the filename
`overwrite` | by default, do not overwrite a file.

### Author(s)

T Cokelaer

### Examples

    tmpdir<-tempdir()
    setwd(tmpdir)
    cpfile<-dir(system.file("ToyModel",package="CellNOptR"),full=TRUE)
    file.copy(from=cpfile,to=getwd(),overwrite=TRUE)
    ToyModel<-readSIF(sifFile="ToyPKNMMB.sif")
    writeSIF(ToyModel, "ToyPKNMMB_copy.sif")

[Package CellNOptR version 1.33.0 Index]