R/haplotypeCallerSelectedView.R

Defines functions haplotypeCallerSelectedView

haplotypeCallerSelectedView <- function(haplotypecaller_selected) {
  cat('HaplotypeCaller')
  t = haplotypecaller_selected[rank_score > getRankThreshold("haplotypecaller_threshold")]
  if (nrow(t) > 0) {
    t = data.table(
      Sample = t$sample,
      Gene = t$SYMBOL,
      Mutation = paste(t$Protein_position, t$Amino_acids),
      'Rank score' = t$rank_score,
      'Rank Terms' = t$rank_terms,
      Allele_ratio = t$AFreq
    )
    kable(t[Gene != ''], "html") %>%
      kable_styling(bootstrap_options = "striped", position = "left") %>%
      scroll_box(width = "900px", height = "300px")
  }
}
szilvajuhos/sarek.pathfindr documentation built on Dec. 19, 2020, 3:13 a.m.