Skip to contents

Reads and writes tidy versions of files from the tso_ctdna_tumor_only_v2 workflow.

Super class

dracarys::Wf -> Wf_tso_ctdna_tumor_only_v2

Public fields

prefix

The LibraryID prefix of the tumor sample (needed for path lookup).

Methods

Inherited methods


Method new()

Create a new Wf_tso_ctdna_tumor_only_v2 object.

Usage

Wf_tso_ctdna_tumor_only_v2$new(path = NULL, prefix = NULL)

Arguments

path

Path to directory with raw workflow results (from S3 or local filesystem).

prefix

The LibraryID prefix of the tumor sample (needed for path lookup).


Method print()

Print details about the Workflow.

Usage

Wf_tso_ctdna_tumor_only_v2$print(...)

Arguments

...

(ignored).


Method read_sar()

Read SampleAnalysisResults.json.gz file.

Usage

Wf_tso_ctdna_tumor_only_v2$read_sar(x)

Arguments

x

Path to file.


Method read_tmbt()

Read TMB_Trace.tsv file.

Usage

Wf_tso_ctdna_tumor_only_v2$read_tmbt(x)

Arguments

x

Path to file.


Method read_cvo()

Read CombinedVariantOutput.tsv file.

Usage

Wf_tso_ctdna_tumor_only_v2$read_cvo(x)

Arguments

x

Path to file.


Method read_cnv()

Read cnv.vcf file.

Usage

Wf_tso_ctdna_tumor_only_v2$read_cnv(x)

Arguments

x

Path to file.


Method read_cvgrepe()

Read exon_cov_report.tsv file.

Usage

Wf_tso_ctdna_tumor_only_v2$read_cvgrepe(x)

Arguments

x

Path to file.


Method read_cvgrepg()

Read gene_cov_report.tsv file.

Usage

Wf_tso_ctdna_tumor_only_v2$read_cvgrepg(x)

Arguments

x

Path to file.


Method read_hardfilt()

Read hard-filtered.vcf file.

Usage

Wf_tso_ctdna_tumor_only_v2$read_hardfilt(x)

Arguments

x

Path to file.


Method read_msi()

Read microsat_output.json file.

Usage

Wf_tso_ctdna_tumor_only_v2$read_msi(x)

Arguments

x

Path to file.


Method read_fus()

Read Fusions.csv file.

Usage

Wf_tso_ctdna_tumor_only_v2$read_fus(x)

Arguments

x

Path to file.


Method clone()

The objects of this class are cloneable with this method.

Usage

Wf_tso_ctdna_tumor_only_v2$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

if (FALSE) { # \dontrun{

#---- Local ----#
p <- file.path(
  "~/s3/pipeline-prod-cache-503977275616-ap-southeast-2/byob-icav2/production",
  "analysis/cttsov2/20240915ff0295ed"
)
prefix <- "L2401290"
t1 <- Wf_tso_ctdna_tumor_only_v2$new(path = p, prefix = prefix)
t1$list_files(max_files = 100)
t1$list_files_filter_relevant(max_files = 300)
d <- t1$download_files(max_files = 100, dryrun = F)
d_tidy <- t1$tidy_files(d)
d_write <- t1$write(
  d_tidy,
  outdir = file.path(p, "dracarys_tidy"),
  prefix = prefix,
  format = "tsv"
)

#---- S3 ----#
p <- file.path(
  "s3://pipeline-prod-cache-503977275616-ap-southeast-2/byob-icav2/production",
  "analysis/cttsov2/20240915ff0295ed"
)
prefix <- "L2401290"
outdir <- sub("s3:/", "~/s3", p)
t2 <- Wf_tso_ctdna_tumor_only_v2$new(path = p, prefix = prefix)
t2$list_files(max_files = 500)
t2$list_files_filter_relevant(max_files = 500)
d <- t2$download_files(
  outdir = outdir,
  max_files = 500,
  dryrun = F
)
d_tidy <- t2$tidy_files(d)
d_write <- t2$write(
  d_tidy,
  outdir = file.path(outdir, "dracarys_tidy"),
  prefix = prefix,
  format = "tsv"
)
} # }