import_json: Import custom-made data

Description Usage Arguments Details Value

Description

Imports a .json file containing all the cell instants of the movie and another .json file containing all the colony instants of the movie.

Usage

1
import_json(file_cells, file_cols = NULL, frameH, frameW)

Arguments

file_cells, file_cols

Character strings naming the .json files (including the suffix ".json") containing all the cell and colony instants of the movie, respectively, from which the data is to be imported. If a string does not contain an absolute path, the file name is relative to the current working directory, getwd(). See the Details field for information about the format of these files.

When the default value file_cols = NULL is used, no colony list is imported.

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

frameH

Frame image height in pixels, a non-zero positive integer value. This argument is ignored in case file_cols = NULL.

frameW

Frame image width in pixels, a non-zero positive integer value. This argument is ignored in case file_cols = NULL.

Details

The file_cols must be a JSON array of objects. Each object denotes a colony instant of the movie and should contain the following key-value pairs (otherwise an error is produced):

The file_cells must be a JSON array of objects. Each object denotes a cell instant of the movie. Key-value pair(s) denoting numeric or boolean attribute(s) should be contained in every object. The following key-value pairs are also required to be contained in every object (otherwise an error is produced):

Value

A named list with the following components:

col_list

A list containing all the colony instants of the movie, or NULL if file_cols = NULL. Each element of the list is a named list having as components the corresponding key-value pairs in the file_cols.

cell_list

A list containing all the cell instants of the movie. Each element of the list is a named list having as components the corresponding key-value pairs in the file_cells.

In case the key pixelList is contained, centroid is also computed as the mean of the pixelList by column. centroid is an 1x2 matrix of non-zero numeric values denoting the centroid (geometric center) of the cell in colony coordinates (i.e. relative to the colImage of the colIdth element in the col_list).

Nframes

Number of frames in the movie, a non-zero positive integer value. IDs of frames are in the range [1, Nframes].

Ncols

Number of colonies in the movie, a non-zero positive integer value. IDs of colonies are in the range [1, Ncols]. This value corresponds to the number of colonies at the start of the movie.


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