Skip to contents

Prepares PURPLE somatic CNVs for use with HRDetect.

Usage

hrdetect_prep_cnv(x, nm = NULL)

Arguments

x

Path to purple.cnv.somatic.tsv file.

nm

Sample name.

Value

Tibble with sample name and HRD-LOH index.

Examples

x <- system.file("extdata/purple/purple.cnv.somatic.tsv", package = "gpgr")
(l <- hrdetect_prep_cnv(x, nm = "SampleA"))
#> # A tibble: 1 × 2
#>   name    hrdloh_index
#>   <chr>          <dbl>
#> 1 SampleA            0