writeSegments: write out segment data to individual files

writeSegmentsR Documentation

write out segment data to individual files

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

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 March 20, 2024, 6:23 a.m.