# NOT RUN {
bams <- rep(system.file("extdata", "ex1.bam", package="Rsamtools", mustWork=TRUE), 2)
genes <- data.frame("id" = 1:2,
"gene_id" = c("gene1", "gene2"),
"seqid" = c("seq1", "seq2"),
"start" = 1,
"end" = 100)
profile <- calculate_expression_profile(
gene = genes[1,],
bams = bams,
mapq.unique = 99
)
ggplot2::ggplot(tibble::tibble(y = profile$profile[,1],
x = seq_along(y))) +
ggplot2::geom_bar(ggplot2::aes(x, y), stat = "identity") +
ggplot2::theme_minimal()
# }
Run the code above in your browser using DataLab