Skip to contents

Contains methods for reading and displaying contents of the pcgr.json.gz file output from PCGR.

Super class

dracarys::File -> PcgrJsonFile

Methods

Inherited methods


Method read()

Reads the pcgr.json.gz file output from PCGR.

Usage

PcgrJsonFile$read()

Returns

List of tibbles.


Method write()

Writes a tidy version of the pcgr.json.gz file output from PCGR.

Usage

PcgrJsonFile$write(d, out_dir, prefix, out_format = "tsv")

Arguments

d

Parsed object from self$read().

out_dir

Output directory.

prefix

Prefix of output file(s).

out_format

Format of output file(s) (one of 'tsv' (def.), 'parquet', 'both').


Method clone()

The objects of this class are cloneable with this method.

Usage

PcgrJsonFile$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

if (FALSE) { # \dontrun{
x <- "/path/to/pcgr.json.gz"
d <- PcgrJsonFile$new(x)
d_parsed <- d$read() # or read(d)
d$write(d_parsed, out_dir = tempdir(), prefix = "sample705", out_format = "both")
} # }