artifact_account: Calculate relative rates of biological mutational processes

artifact_accountR Documentation

Calculate relative rates of biological mutational processes

Description

Sets artifact signature weights to zero and normalizes so that biologically-associated weights sum to (1 - unattributed proportion) in each sample.

Usage

artifact_account(
  weights,
  signature_names,
  artifact_signatures = NULL,
  fail_if_zeroed = FALSE
)

Arguments

weights

data.table of signature weights (can have extra columns)

signature_names

names of signatures in weights (i.e., all column names)

artifact_signatures

vector of artifact signature names (or NULL)

fail_if_zeroed

T/F on whether to exit if a tumor would have all-zero weights.


Townsend-Lab-Yale/cancereffectsizeR documentation built on April 28, 2024, 6:14 p.m.