WriteCatalog: Write a catalog

Description Usage Arguments Details Note Examples

View source: R/read_write_catalog.R

Description

Write a catalog to a file.

Usage

1
WriteCatalog(catalog, file, strict = TRUE)

Arguments

catalog

A catalog as defined in ICAMS; see also as.catalog.

file

The path to the file to be created.

strict

If TRUE, do additional checks on the input, and stop if the checks fail.

Details

See also ReadCatalog.

Note

In ID (small insertion and deletion) catalogs, deletion repeat sizes range from 0 to 5+, but for plotting and end-user documentation deletion repeat sizes range from 1 to 6+.

Examples

1
2
3
4
5
file <- system.file("extdata",
                    "strelka.regress.cat.sbs.96.csv",
                    package = "ICAMS")
catSBS96 <- ReadCatalog(file)
WriteCatalog(catSBS96, file = file.path(tempdir(), "catSBS96.csv"))

ICAMS documentation built on April 3, 2021, 5:07 p.m.