Skip to contents

Contains methods for reading and displaying contents of the hrdetect.tsv.gz file output from umccrise.

Super class

dracarys::File -> UmHrdetectTsvFile

Methods

Inherited methods


Method read()

Reads the hrdetect.tsv.gz file output from umccrise.

Usage

UmHrdetectTsvFile$read()

Returns

A tibble.


Method write()

Writes a tidy version of the hrdetect.tsv.gz file output from umccrise.

Usage

UmHrdetectTsvFile$write(d, out_dir, prefix, out_format = "tsv", drid = NULL)

Arguments

d

Parsed object from self$read().

out_dir

Output directory.

prefix

Prefix of output file(s).

out_format

Format of output file(s).

drid

dracarys ID to use for the dataset (e.g. wfrid.123, prid.456).


Method clone()

The objects of this class are cloneable with this method.

Usage

UmHrdetectTsvFile$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

if (FALSE) {
x <- "/path/to/hrdetect.tsv.gz"
d <- UmHrdetectTsvFile$new(x)
d_parsed <- d$read() # or read(d)
d$write(d_parsed, out_dir = tempdir(), prefix = "sample705", out_format = "tsv")
}