test_cnv: Determine if the segment mean indicates an amplification or a...

Description Usage Arguments Value

View source: R/cnv.R

Description

Determine if the segment mean indicates an amplification or a deletion

Usage

1
2
3
4
5
6
test_cnv(
  values,
  cutoff = c(-0.3, 0.3),
  return_val = "logic",
  to_val = c("Gain", NA, "Loss")
)

Arguments

values

A numeric vector - the log2Ratio values for copy number changes.

cutoff

A numeric vector of length 2 - the cutoff for calling amplifications or deletions

return_val

A string - if "logic", return c(-1,0,1)-based logical
value; if "num", return original numeric value; if anything else,
return c("Loss",NA,"Gain")-based string. Default value is "logic".

to_val

A vector - the text return value. Default value is c("Gain", NA, "Loss").

Value

A numeric vector of the same length with values


xmc811/xmcutil documentation built on June 4, 2021, 10:48 a.m.