File: create_example_mbs.R

package info (click to toggle)
r-bioc-mutationalpatterns 3.16.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,360 kB
  • sloc: sh: 8; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 401 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
library(tidyverse)
library(VariantAnnotation)
ref_genome <- "BSgenome.Hsapiens.UCSC.hg19"
library(ref_genome, character.only = TRUE)

# Get grl
grl <- readRDS("inst/states/blood_grl.rds")

# Get mbs
grl_mbs <- get_mut_type(grl, "mbs")
saveRDS(grl_mbs, "inst/states/blood_grl_mbs.rds")

# Count contexts
mbs_counts <- count_mbs_contexts(grl_mbs)
saveRDS(mbs_counts, "inst/states/blood_mbs_counts.rds")