save_tree: Save a tree on disc

Description Usage Arguments

Description

Saves a lineage or division tree on disc in nodes and edges .csv files.

Usage

1
save_tree(tree, path = getwd(), prefix = "", sep = "\t")

Arguments

tree

The linegae or division tree to be saved, an object of class "igraph".

path

A character string naming the directory where the "nodes.csv" and "edges.csv" files will be saved (excluding the last "/"). If it does not contain an absolute path, the files will be saved relative to the current working directory, getwd(). The default value is the current working directory getwd().

NOTE: The components should be separated by "/" on Windows.

prefix

A prefix that will be added to the name of the "nodes.csv" and "edges.csv" files, a character string. The default value is the empty string "".

sep

The field separator character. Values on each line of the "nodes.csv" and "edges.csv" files will be separated by this character. The default value is the tab separator "\t".


vicstefanou/ViSCA documentation built on May 31, 2019, 10:50 p.m.