Get Ploidy from Absolute Copy Number Profile

get_cn_ploidy(data)

Arguments

data

a CopyNumber object or a data.frame containing at least 'chromosome', 'start', 'end', 'segVal' these columns.

Value

a value or a data.table

Examples

# Load copy number object
load(system.file("extdata", "toy_copynumber.RData",
  package = "sigminer", mustWork = TRUE
))

df <- get_cn_ploidy(cn)
df
#>                           sample ploidy
#>                           <char>  <num>
#>  1: TCGA-05-4417-01A-22D-1854-01   3.00
#>  2: TCGA-06-0644-01A-02D-0310-01   2.02
#>  3: TCGA-19-2621-01B-01D-0911-01   1.91
#>  4: TCGA-26-6174-01A-21D-1842-01   2.07
#>  5: TCGA-99-7458-01A-11D-2035-01   1.88
#>  6: TCGA-A5-A0G2-01A-11D-A042-01   1.85
#>  7: TCGA-A8-A07S-01A-11D-A036-01   2.02
#>  8: TCGA-B6-A0X5-01A-21D-A107-01   1.99
#>  9: TCGA-CV-7432-01A-11D-2128-01   2.00
#> 10: TCGA-DF-A2KN-01A-11D-A17U-01   2.00