writeSegments: write out segment data to individual files

Description Usage Arguments

View source: R/segmenTools.R

Description

writing out data for segments to files, used for writing the primary segments by presegment to single files that are then further processed by segmenTier. This avoids loading the complete data set and allows parallel usage of segmenTier.

Usage

1
writeSegments(data, segments, path, name = "segment")

Arguments

data

a data matrix to which coordinates in segments refer to

segments

a matrix that must contain "start" and "end" (columns) of segments; these coordinates will be extracted from data and written to individual files, numbered by the row number in segments.

path

optional output path where files will be written, if not supplied files will end up in the current working directory ('getwd')

name

name used as prefix in file names


raim/segmenTools documentation built on Nov. 9, 2018, 5:38 p.m.