Skip to contents

Domain rules for separating true mutations/variants from structural and cytogenetic findings, and from negative/missing entries. The categories returned drive the oncoprint vs. cytogenetics-table split in the dashboard.

Usage

zhn_alteration_type(x)

Arguments

x

Character vector of free-text alteration strings.

Value

Character vector the same length as x, drawn from: "Nicht verwertbar/NA", "negativ/kein Nachweis", "Strukturell/Zytogenetik: Deletion/Loss", "Strukturell/Zytogenetik: Zugewinn/Amplifikation", "Strukturell/Zytogenetik: Translokation/Rearrangement/Bruch", "Strukturell/Zytogenetik: Komplexer Karyotyp", "Mutation/Variante".

Details

The classification regex is clinical-domain knowledge — do not "improve" it without a corresponding update to the test fixtures.

See also

Examples

zhn_alteration_type(c(
  "TP53 Mutation", "del(17p)", "Trisomie 12",
  "t(11;14)", "komplexer Karyotyp", "negativ", NA
))
#> [1] "Mutation/Variante"                                         
#> [2] "Strukturell/Zytogenetik: Deletion/Loss"                    
#> [3] "Strukturell/Zytogenetik: Zugewinn/Amplifikation"           
#> [4] "Strukturell/Zytogenetik: Translokation/Rearrangement/Bruch"
#> [5] "Strukturell/Zytogenetik: Komplexer Karyotyp"               
#> [6] "negativ/kein Nachweis"                                     
#> [7] "Nicht verwertbar/NA"