Mutational Signature Comprehensive Analysis Toolkit

Vignettes

Due to the range of features that are available in musicatk, we have prepared several vignettes to help you get started, which are all available at https://www.camplab.net/musicatk/

Introduction

A variety of exogenous exposures or endogenous biological processes can contribute to the overall mutational load observed in human tumors. Many different mutational patterns, or “mutational signatures”, have been identified across different tumor types. These signatures can provide a record of environmental exposure and can give clues about the etiology of carcinogenesis. The Mutational Signature Comprehensive Analysis Toolkit (musicatk) has utilities for extracting variants from a variety of file formats, contains multiple methods for discovery of novel signatures or prediction of known signatures, as well as many types of downstream visualizations for exploratory analysis. This package has the ability to parse and combine multiple motif classes in the mutational signature discovery or prediction processes. Mutation motifs include single base substitutions (SBS), double base substitutions (DBS), insertions (INS) and deletions (DEL).

Installation

Currently musicatk can be installed from on Bioconductor using the following code:

if (!requireNamespace("BiocManager", quietly = TRUE)) {
  install.packages("BiocManager")
}
BiocManager::install("musicatk")

To install the latest version from Github, use the following code:

if (!requireNamespace("devtools", quietly = TRUE)) {
  install.packages("devtools")
}

library(devtools)
install_github("campbio/musicatk")

The package can be loaded using the library command.

library(musicatk)

Setting up a musica object

In order to discover or predict mutational signatures, we must first set up our musica object by 1) extracting variants from files or objects such as VCFs and MAFs, 2) selecting the appropriate reference genome 3) creating a musica object, and 4) building a count tables for our variants of interest. Alternatively, a musica object can be created directly from a count table.

Extracting variants

Variants can be extracted from various formats using the following functions:

  • The extract_variants_from_vcf_file() function will extract variants from a VCF file. The file will be imported using the readVcf function from the VariantAnnotation package and then the variant information will be extracted from this object.
  • The extract_variants_from_vcf() function extracts variants from a CollapsedVCF or ExpandedVCF object from the VariantAnnotation package.
  • The extract_variants_from_maf_file() function will extract variants from a file in Mutation Annotation Format (MAF) used by TCGA.
  • The extract_variants_from_maf() function will extract variants from a MAF object created by the maftools package.
  • The extract_variants_from_matrix() function will get the information from a matrix or data.frame like object that has columns for the chromosome, start position, end position, reference allele, mutation allele, and sample name.
  • The extract_variants() function will extract variants from a list of objects. These objects can be any combination of VCF files, VariantAnnotation objects, MAF files, MAF objects, and data.frame objects.

Below are some examples of extracting variants from MAF and VCF files:

# Extract variants from a MAF File
lung_maf <- system.file("extdata", "public_TCGA_lung.maf", package = "musicatk")
maf_variants <- extract_variants_from_maf_file(maf_file = lung_maf)

# Extract variants from an individual VCF file
lung_vcf <- system.file("extdata",
  "public_LUSC_TCGA-22-5472-01A-01D-1632-08.vcf",
  package = "musicatk"
)
vcf_variants <- extract_variants_from_vcf_file(vcf_file = lung_vcf)

# Extract variants from multiple files and/or objects
melanoma_vcfs <- list.files(system.file("extdata", package = "musicatk"),
  pattern = glob2rx("*SKCM*vcf"), full.names = TRUE
)
variants <- extract_variants(c(lung_maf, lung_vcf, melanoma_vcfs))
##   |                                                                              |                                                                      |   0%  |                                                                              |============                                                          |  17%
##   |                                                                              |=======================                                               |  33%
##   |                                                                              |===================================                                   |  50%
##   |                                                                              |===============================================                       |  67%
##   |                                                                              |==========================================================            |  83%
##   |                                                                              |======================================================================| 100%

Choosing a genome

musicatk uses BSgenome objects to access genome sequence information that flanks each mutation which is used bases for generating mutation count tables. BSgenome objects store full genome sequences for different organisms. A full list of supported organisms can be obtained by running available.genomes() after loading the BSgenome library. Custom genomes can be forged as well (see BSgenome documentation). musicatk provides a utility function called select_genome() to allow users to quickly select human genome build versions “hg19” and “hg38” or mouse genome builds “mm9” and “mm10”. The reference sequences for these genomes are in UCSC format (e.g. chr1).

g <- select_genome("hg38")

Creating a musica object

The last preprocessing step is to create an object with the variants and the genome using the create_musica_from_variants function. This function will perform checks to ensure that the chromosome names and reference alleles in the input variant object match those in supplied BSgenome object. These checks can be turned off by setting check_ref_chromosomes = FALSE and check_ref_bases = FALSE, respectively. This function also looks for adjacent single base substitutions (SBSs) in the same sample and will convert pairs of them to double base substitutions (DBSs). A run of three or more adjacent SBSs becomes one multi-nucleotide variant (MNV), which is not counted in the standard count tables. To disable this automatic conversion, set convert_dbs = FALSE.

musica <- create_musica_from_variants(x = variants, genome = g)
## Checking that chromosomes in the 'variant' object match chromosomes in the 'genome' object.
## Checking that the reference bases in the 'variant' object match the reference bases in the 'genome' object.
## Standardizing INS/DEL style
## Removing 3 complex variants whose first base differs between the reference and alternate alleles
## Converting 3 insertions
## Converting 16 deletions
## Converting adjacent SBS into DBS
## 64 pairs of adjacent SBS converted to DBS

Creating mutation count tables

Motifs are the building blocks of mutational signatures. Motifs themselves are a mutation combined with other genomic information. For instance, SBS96 motifs are constructed from an SBS mutation and one upstream and one downstream base sandwiched together. We build tables by counting these motifs for each sample.

build_standard_table(musica, g = g, table_name = "SBS96")
## Warning in build_standard_table(musica, g = g, table_name = "SBS96"):
## table_name argument deprecated. Use modality instead.
## Building count table 'SBS96' from SBS with the SBS96 schema

Here is a list of mutation tables that can be created by setting the table_name parameter in the build_standard_table function:

  • SBS96 - Motifs are the six possible single base pair mutation types times the four possibilities each for upstream and downstream context bases (464 = 96 motifs)
  • SBS192_Trans - Motifs are an extension of SBS96 multiplied by the transcriptional strand (translated/untranslated), can be specified with "Transcript_Strand".
  • SBS192_Rep - Motifs are an extension of SBS96 multiplied by the replication strand (leading/lagging), can be specified with "Replication_Strand".
  • DBS - Motifs are the 78 possible double-base-pair substitutions
  • INDEL - Motifs are 83 categories intended to capture different categories of indels based on base-pair change, repeats, or microhomology, insertion or deletion, and length.
data(dbs_musica)
build_standard_table(dbs_musica, g, "SBS96", overwrite = TRUE)
## Building count table 'SBS96' from SBS with the SBS96 schema
## Warning in .table_exists_warning(musica, "SBS96", overwrite): Overwriting
## counts table: SBS96
build_standard_table(dbs_musica, g, "DBS78", overwrite = TRUE)
## Building count table 'DBS78' from DBS with the DBS78 schema
## Warning in .table_exists_warning(musica, "DBS78", overwrite): Overwriting
## counts table: DBS78
# Both tables have the same samples, so they can be combined
combine_count_tables(
  musica = dbs_musica, to_comb = c("SBS96", "DBS78"),
  name = "sbs_dbs", description = "An example combined
                     table, combining SBS96 and DBS", overwrite = TRUE
)
annotate_transcript_strand(musica, "hg38", build_table = FALSE)
##   2172 genes were dropped because they have exons located on both strands of
##   the same reference sequence or on more than one reference sequence, so cannot
##   be represented by a single genomic range.
##   Use 'single.strand.genes.only=FALSE' to get all the genes in a GRangesList
##   object, or use suppressMessages() to suppress this message.
build_custom_table(
  musica = musica, variant_annotation = "Transcript_Strand",
  name = "Transcript_Strand",
  description = "A table of transcript strand of variants",
  data_factor = c("T", "U"), overwrite = TRUE
)

Different count tables can be combined into one using the combine_count_tables function. For example, the SBS96 and the DBS tables could be combined and mutational signature discovery could be performed across both mutations modalities. Tables with information about the same types of variants (e.g.  two related SBS tables) should generally not be combined and used together.

Custom count tables can be created from user-defined mutation-level annotations using the build_custom_table function.

Creating a musica object directly from a count table

If a count table is already available, a musica object can be created directly without need for a variant file and building tables.

luad_count_table_path <- system.file("extdata", "luad_tcga_count_table.csv",
  package = "musicatk"
)
luad_count_table <- as.matrix(read.csv(luad_count_table_path))

musica_from_counts <- create_musica_from_counts(luad_count_table, "SBS96")

Discovering Signatures and Exposures

Mutational signature discovery is the process of deconvoluting a matrix containing counts for each mutation type in each sample into two matrices: 1) a signature matrix containing the probability of each mutation motif in signature and 2) an exposure matrix containing the estimated counts of each signature in each sample. Discovery and prediction results are saved in the result_list slot of a musica object.

discover_signatures(
  musica = musica, modality = "SBS96", num_signatures = 3,
  algorithm = "nmf", model_id = "ex_result", nstart = 10
)

Supported signature discovery algorithms include:

  • Non-negative matrix factorization (nmf)
  • Latent Dirichlet Allocation (lda)

Both have built-in seed capabilities for reproducible results, nstarts for multiple independent chains from which the best final result will be chosen. NMF also allows for parallel processing via par_cores.

To get the signatures or exposures from a result within a musica object, the following functions can be used:

# Extract the exposure matrix
expos <- exposures(musica, "result", "SBS96", "ex_result")
expos[1:3, 1:3]
##            TCGA-95-7944-01A-11D-2184-08 TCGA-95-7562-01A-11D-2238-08
## Signature1                 7.140689e+00                  19.43023708
## Signature2                 1.084786e-07                 371.48049667
## Signature3                 2.538593e+02                   0.08926626
##            TCGA-92-8065-01A-11D-2244-08
## Signature1                 8.110921e+00
## Signature2                 7.980659e-11
## Signature3                 2.758891e+02
# Extract the signature matrix
sigs <- signatures(musica, "result", "SBS96", "ex_result")
sigs[1:3, 1:3]
##           Signature1 Signature2  Signature3
## C>A_ACA 2.838751e-20 0.04067783 0.003658827
## C>A_ACC 1.280063e-03 0.02706428 0.001782892
## C>A_ACG 2.838751e-20 0.02152001 0.002755508

Determining an appropriate k value

The k value is the number of signatures that are predicted from a discovery method. To help determine an appropriate k value, the compare_k_vals function can be used to compare to the stability and error associated with various k values. Generally, 100 replicates is suggested, as well as a larger span of k values to test. Here, fewer k values and replicates are used for simplicity.

k_comparison <- compare_k_vals(musica, "SBS96",
  reps = 5, min_k = 2, max_k = 4,
  algorithm = "nmf"
)
## 
## k = 2:
## Calculating signatures on original count table...
## Replicate 1 of 5...
## Replicate 2 of 5...
## Replicate 3 of 5...
## Replicate 4 of 5...
## Replicate 5 of 5...
## 
## k = 3:
## Calculating signatures on original count table...
## Replicate 1 of 5...
## Replicate 2 of 5...
## Replicate 3 of 5...
## Replicate 4 of 5...
## Replicate 5 of 5...
## 
## k = 4:
## Calculating signatures on original count table...
## Replicate 1 of 5...
## Replicate 2 of 5...
## Replicate 3 of 5...
## Replicate 4 of 5...
## Replicate 5 of 5...

Plotting

Signatures

Barplots showing the probability of each mutation type in each signature can be plotted with the plot_signatures function:

plot_signatures(musica, model_id = "ex_result", modality = "SBS96")

By default, the scales on the y-axis are forced to be the same across all signatures. This behavior can be turned off by setting same_scale = FALSE. Signatures can be re-named based on prior knowledge and displayed in the plots. Here, each signature is named after the etiology of the most similar COSMIC V3 signature among a few with well-known etiologies (see the comparison to COSMIC below). The exome version of the COSMIC signatures is used because these samples were sequenced by whole exome sequencing, and genome_build = "hg38" because the variants were called on hg38. For whole genome data, use sample_type = "genome". By default the comparison uses the latest COSMIC version, v3.6 (101 SBS signatures), and compare_cosmic_v3 prints a message naming the version and build it used. Set cosmic_version = "3.0" to reproduce results from earlier versions of musicatk. Only matches to the signatures in the list of etiologies are used, since a newer COSMIC signature of another etiology can be slightly more similar; a signature with no such match keeps its name. APOBEC activity usually causes two COSMIC signatures together, SBS2 and SBS13, so a discovered APOBEC signature is often a mix of both and less similar to either one alone; a threshold of 0.7 keeps it among the matches:

# Compare each signature to the COSMIC V3 signatures
matches <- compare_cosmic_v3(musica, "ex_result", "exome",
  genome_build = "hg38", threshold = 0.7
)
## Comparing to COSMIC v3.6 SBS96 exome signatures (GRCh38).

# COSMIC signatures with well-known etiologies
etiology <- c(
  SBS4 = "Smoking", SBS2 = "APOBEC", SBS13 = "APOBEC",
  SBS7a = "UV", SBS7b = "UV"
)

# Keep the most similar of these for each signature (matches are sorted by
# decreasing similarity)
matches <- matches[matches$y_sig_name %in% names(etiology), ]
best <- matches[!duplicated(matches$x_sig_name), ]
best_match <- best$y_sig_name[match(colnames(sigs), best$x_sig_name)]

# Name each signature after the etiology of that COSMIC signature
sig_names <- colnames(sigs)
sig_names[!is.na(best_match)] <- etiology[best_match[!is.na(best_match)]]
# Signature names must be unique, e.g. if two signatures look like APOBEC
sig_names <- make.unique(sig_names, sep = " ")
name_signatures(musica, "ex_result", sig_names)
plot_signatures(musica, model_id = "ex_result", modality = "SBS96")

Exposures

Barplots showing the exposures in each sample can be plotted with the plot_exposures function:

plot_exposures(musica, "ex_result", plot_type = "bar")

The proportion of each exposure in each tumor can be shown by setting proportional = TRUE:

plot_exposures(musica, "ex_result", plot_type = "bar", proportional = TRUE)

Counts for individual samples can also be plotted with the plot_sample_counts function. Here we plot one sample with each of the three signatures:

samples <- c(
  "TCGA-22-5472-01A-01D-1632-08", # lung tumor, smoking
  "TCGA-92-8065-01A-11D-2244-08", # lung tumor, APOBEC
  "TCGA-ER-A3PL-06A-11D-A23B-08"  # melanoma, UV
)
plot_sample_counts(musica, sample_names = samples, modality = "SBS96")

Comparison to external signatures (e.g. COSMIC)

A common analysis is to compare the signatures estimated in a dataset to those generated in other datasets or to those in the COSMIC database. We have a set of functions that can be used to easily perform pairwise correlations between signatures. The compare_results functions compares the signatures between two models in the same or different musica objects. The compare_cosmic_v2 will correlate the signatures between a model and the SBS signatures in COSMIC V2. For example:

cosmic_v2_matches <- compare_cosmic_v2(musica, "ex_result", threshold = 0.7)

cosmic_v2_matches
##      cosine x_sig_index y_sig_index x_sig_name y_sig_name
## 1 0.9939302           1           7         UV       SBS7
## 4 0.8310391           2           4    Smoking       SBS4
## 9 0.8255290           3          13     APOBEC      SBS13
## 8 0.8206732           3           2     APOBEC       SBS2
## 5 0.7963291           2          18    Smoking      SBS18
## 2 0.7917483           1          11         UV      SBS11
## 7 0.7818278           2          29    Smoking      SBS29
## 6 0.7745834           2          24    Smoking      SBS24
## 3 0.7650719           1          30         UV      SBS30
# The most similar COSMIC V2 signature of each signature
best_v2 <- cosmic_v2_matches[!duplicated(cosmic_v2_matches$x_sig_name), ]

In this example, the most similar COSMIC V2 signatures were SBS7 for the UV signature, SBS4 for the Smoking signature, and SBS13 for the APOBEC signature. COSMIC SBS4 is associated with tobacco smoking, SBS2 and SBS13 with APOBEC activity, and SBS7 with UV light, so this may indicate that samples in our dataset were exposed to cigarette smoke, APOBEC mutagenesis, or UV radiation. Only pairs of signatures who have a correlation above the threshold parameter will be returned. If no pairs of signatures are found, then you may want to consider lowering the threshold. The default correlation metric is the cosine similarity, but this can be changed to using 1 - Jensen-Shannon Divergence by setting metric = "jsd". Signatures can also be correlated to those in the COSMIC V3 database using the compare_cosmic_v3 function, as we did above to name the signatures.

Predicting exposures using pre-existing signatures

Instead of discovering mutational signatures and exposures from a dataset de novo, one might get better results by predicting the exposures of signatures that have been previously estimated in other datasets. We incorporate several methods for estimating exposures given a set of pre-existing signatures. For example, we can predict exposures for COSMIC signatures 1, 4, 7, and 13 in our current dataset:

# Load COSMIC V2 data
data("cosmic_v2_sigs")

# Predict pre-existing exposures using the "lda" method
predict_exposure(
  musica = musica, modality = "SBS96",
  signature_res = cosmic_v2_sigs, model_id = "ex_pred_result",
  signatures_to_use = c(1, 4, 7, 13), algorithm = "lda"
)

# Plot exposures
plot_exposures(musica, "ex_pred_result", plot_type = "bar")

The cosmic_v2_sigs object is a result_model object containing COSMIC V2 signatures without any sample or exposure information. Note that if signatures_to_use is not supplied by the user, then exposures for all signatures in the result object will be estimated. We can predict exposures for samples in any musica object from any result_model object as long as the same mutation schema was utilized.

We can list which signatures are present in each tumor type according to the COSMIC V2 database. For example, we can find which signatures are present in lung cancers:

cosmic_v2_subtype_map("lung")
## lung adeno
## 124561317
## lung  small cell
## 14515
## lung  squamous
## 124513

We can predict exposures for samples in a musica object using the signatures from any result_model object. Just for illustration, we will predict exposures using the estimated signatures from model we created earlier:

model <- get_model(musica, "result", "SBS96", "ex_result")
predict_exposure(
  musica = musica, modality = "SBS96",
  signature_res = model, algorithm = "lda",
  model_id = "pred_our_sigs"
)

Of course, this example is not very useful because we are predicting exposures using signatures that were learned on the same set of samples. Most of the time, you want to give the signature_res parameter a result_model object that was generated using independent samples from those in the input musica object. As mentioned above, different signatures in different models can be compared to each other using the compare_results function:

compare_results(musica,
  model_id = "ex_pred_result",
  other_model_id = "pred_our_sigs", threshold = 0.60
)

##      cosine x_sig_index y_sig_index x_sig_name y_sig_name
## 2 0.9939302           3           1       SBS7         UV
## 1 0.8310391           2           2       SBS4    Smoking
## 3 0.8255290           4           3      SBS13     APOBEC

Comparing samples between groups using Sample Annotations

Adding sample annotations

We first must add an annotation to the musica object. The annotation vector must be in the same order as the samples in the musica object, which you can view with the sample_names function:

sample_names(musica)
##  [1] "TCGA-95-7944-01A-11D-2184-08" "TCGA-95-7562-01A-11D-2238-08"
##  [3] "TCGA-92-8065-01A-11D-2244-08" "TCGA-91-6830-01A-11D-1945-08"
##  [5] "TCGA-55-A48Y-01A-11D-A24D-08" "TCGA-44-6774-01A-21D-1855-08"
##  [7] "TCGA-44-2655-01A-01D-1553-08" "TCGA-22-5472-01A-01D-1632-08"
##  [9] "TCGA-BF-A1PX-01A-12D-A19A-08" "TCGA-EB-A3XD-01A-22D-A23B-08"
## [11] "TCGA-EB-A41B-01A-11D-A24R-08" "TCGA-ER-A3PL-06A-11D-A23B-08"

The rows of the annotation file are in a different order, so we match them to the sample names before adding the annotation:

annot <- read.table(system.file("extdata", "sample_annotations.txt",
                                package = "musicatk"),
                    sep = "\t", header = TRUE)
# Find the annotation row for each sample in the musica object
annot_rows <- match(sample_names(musica), annot$Sample_Names)
samp_annot(musica, "Tumor_Subtypes") <- annot$Tumor_Subtypes[annot_rows]

Note that the annotations can also be added directly the musica object in the beginning using the same function. These annotations will then automatically be included in any down-stream result object.

Plotting exposures by a Sample Annotation

As mentioned previously, the plot_exposures function can plot sample exposures in a musica_result object. It can group exposures by either a sample annotation or by a signature by setting the group_by parameter. Here will will group the exposures by the Tumor_Subtype annotation:

plot_exposures(musica, "ex_result",
  plot_type = "bar", group_by = "annotation",
  annotation = "Tumor_Subtypes"
)

The distribution of exposures with respect to annotation can be viewed using boxplots by setting plot_type = "box" and group_by = "annotation":

plot_exposures(musica, "ex_result", plot_type = "box", group_by = "annotation",
               annotation = "Tumor_Subtypes")

Note that the name of the annotation must be supplied via the annotation parameter. Boxplots can be converted to violin plots by setting plot_type = "violin". To compare the level of each exposure across sample groups within a signature, we can set group_by = "signature" and color_by = "annotation":

plot_exposures(musica, "ex_result",
  plot_type = "box", group_by = "signature",
  color_by = "annotation", annotation = "Tumor_Subtypes"
)

Visualizing samples in 2D using UMAP

The create_umap function embeds samples in 2 dimensions using the umap function from the uwot package. The major parameters for fine tuning the UMAP are n_neighbors, min_dist, and spread. See ?uwot::umap for more information on these parameters.

create_umap(musica, "ex_result")
## The parameter 'n_neighbors' cannot be bigger than the total number of samples. Setting 'n_neighbors' to 12.

The plot_umap function will generate a scatter plot of the UMAP coordinates. The points of plot will be colored by the level of a signature by default:

plot_umap(musica, "ex_result")

By default, the exposures for each sample will share the same color scale. However, exposures for some signatures may have really high levels compared to others. To make a plot where exposures for each signature will have their own color scale, you can set same_scale = FALSE:

plot_umap(musica, "ex_result", same_scale = FALSE)

Lastly, points can be colored by a Sample Annotation by setting color_by = "annotation" and annotation to the name of the annotation:

plot_umap(musica, "ex_result",
  color_by = "annotation",
  annotation = "Tumor_Subtypes", add_annotation_labels = TRUE
)

When add_annotation_labels = TRUE, the centroid of each group is identified using medians and the labels are plotted on top of the centroid.

Use of Plotly in plotting

plot_signatures, plot_exposures, and plot_umap, all have builty in ggplotly capabilities. Simply specifying plotly = TRUE enables interactive plots that allows examination of individuals sections, zooming and resizing, and turning on and off annotation types and legend values.

plot_signatures(musica, "ex_result", plotly = TRUE)
plot_exposures(musica, "ex_result", plotly = TRUE)
plot_umap(musica, "ex_result", plotly = TRUE)

Note on reproducibility

Several functions make use of stochastic algorithms or procedures which require the use of random number generator (RNG) for simulation or sampling. discover_signatures and predict_exposure take a seed argument (default 1), so they give the same results each time they are run with the same settings; predict_exposure also leaves your own RNG state unchanged. Use a different seed to get a different random start:

# Predict exposures with a different random start
predict_exposure(
  musica = musica, modality = "SBS96",
  signature_res = model, algorithm = "lda",
  model_id = "reproducible_ex", seed = 2
)

Other functions, such as create_umap, use the RNG without a seed argument. Call set.seed() before them to get the same results each time.

Session Information

sessionInfo()
## R version 4.6.2 (2026-10-29)
## Platform: x86_64-pc-linux-gnu
## Running under: Ubuntu 26.04.1 LTS
## 
## Matrix products: default
## BLAS:   /usr/lib/x86_64-linux-gnu/openblas-pthread/libblas.so.3 
## LAPACK: /usr/lib/x86_64-linux-gnu/openblas-pthread/libopenblasp-r0.3.32.so;  LAPACK version 3.12.0
## 
## locale:
##  [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              
##  [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
##  [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   
##  [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                 
##  [9] LC_ADDRESS=C               LC_TELEPHONE=C            
## [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       
## 
## time zone: Etc/UTC
## tzcode source: system (glibc)
## 
## attached base packages:
## [1] parallel  stats     graphics  grDevices utils     datasets  methods  
## [8] base     
## 
## other attached packages:
##  [1] doParallel_1.0.17    iterators_1.0.14     foreach_1.5.2       
##  [4] musicatk_2.7.19      NMF_0.28             Biobase_2.73.2      
##  [7] BiocGenerics_0.59.13 generics_0.1.4       cluster_2.1.8.3     
## [10] rngtools_1.5.2       registry_0.5-1       BiocStyle_2.41.0    
## 
## loaded via a namespace (and not attached):
##   [1] RColorBrewer_1.1-3                      
##   [2] sys_3.4.3                               
##   [3] jsonlite_2.0.0                          
##   [4] shape_1.4.6.1                           
##   [5] magrittr_2.0.5                          
##   [6] GenomicFeatures_1.65.0                  
##   [7] farver_2.1.2                            
##   [8] rmarkdown_2.32                          
##   [9] GlobalOptions_0.1.4                     
##  [10] BiocIO_1.23.3                           
##  [11] vctrs_0.7.3                             
##  [12] memoise_2.0.1                           
##  [13] matrixTests_0.2.3.1                     
##  [14] Rsamtools_2.29.0                        
##  [15] RCurl_1.98-1.20                         
##  [16] rstatix_1.1.0                           
##  [17] htmltools_0.5.9                         
##  [18] S4Arrays_1.13.2                         
##  [19] TxDb.Hsapiens.UCSC.hg19.knownGene_3.24.0
##  [20] BiocBaseUtils_1.15.1                    
##  [21] curl_8.1.0                              
##  [22] broom_1.0.13                            
##  [23] Formula_1.2-6                           
##  [24] SparseArray_1.13.5                      
##  [25] sass_0.4.10                             
##  [26] bslib_0.12.0                            
##  [27] htmlwidgets_1.6.4                       
##  [28] plyr_1.8.9                              
##  [29] plotly_4.12.1                           
##  [30] cachem_1.1.0                            
##  [31] buildtools_1.0.0                        
##  [32] GenomicAlignments_1.49.2                
##  [33] lifecycle_1.0.5                         
##  [34] pkgconfig_2.0.3                         
##  [35] Matrix_1.7-6                            
##  [36] R6_2.6.1                                
##  [37] fastmap_1.2.0                           
##  [38] MatrixGenerics_1.25.0                   
##  [39] clue_0.3-68                             
##  [40] digest_0.6.39                           
##  [41] colorspace_2.1-4                        
##  [42] AnnotationDbi_1.75.2                    
##  [43] maftools_2.29.0                         
##  [44] S4Vectors_0.51.10                       
##  [45] RSpectra_0.16-2                         
##  [46] crosstalk_1.2.2                         
##  [47] GenomicRanges_1.65.4                    
##  [48] RSQLite_3.53.3                          
##  [49] ggpubr_1.0.0                            
##  [50] labeling_0.4.3                          
##  [51] httr_1.4.9                              
##  [52] abind_1.4-8                             
##  [53] compiler_4.6.2                          
##  [54] bit64_4.8.6                             
##  [55] withr_3.0.3                             
##  [56] S7_0.2.2                                
##  [57] backports_1.5.1                         
##  [58] BiocParallel_1.47.0                     
##  [59] carData_3.0-6                           
##  [60] DBI_1.3.0                               
##  [61] ggsignif_0.6.4                          
##  [62] MASS_7.3-66                             
##  [63] DelayedArray_0.39.8                     
##  [64] rjson_0.2.23                            
##  [65] gtools_3.9.5                            
##  [66] DNAcopy_1.87.0                          
##  [67] tools_4.6.2                             
##  [68] otel_0.3.0                              
##  [69] MCMCprecision_0.4.2                     
##  [70] glue_1.8.1                              
##  [71] restfulr_0.0.17                         
##  [72] grid_4.6.2                              
##  [73] gridBase_0.4-7                          
##  [74] reshape2_1.4.5                          
##  [75] gtable_0.3.6                            
##  [76] BSgenome_1.81.1                         
##  [77] tidyr_1.3.2                             
##  [78] data.table_1.18.6.1                     
##  [79] car_3.1-5                               
##  [80] XVector_0.53.0                          
##  [81] RcppAnnoy_0.0.23                        
##  [82] ggrepel_0.9.8                           
##  [83] pillar_1.11.1                           
##  [84] stringr_1.6.0                           
##  [85] circlize_0.4.18                         
##  [86] splines_4.6.2                           
##  [87] dplyr_1.2.1                             
##  [88] lattice_0.23-1                          
##  [89] survival_3.8-12                         
##  [90] rtracklayer_1.73.0                      
##  [91] bit_4.6.0                               
##  [92] tidyselect_1.2.1                        
##  [93] BSgenome.Hsapiens.UCSC.hg38_1.4.5       
##  [94] ComplexHeatmap_2.29.0                   
##  [95] maketools_1.3.2                         
##  [96] Biostrings_2.81.9                       
##  [97] knitr_1.52                              
##  [98] gridExtra_2.3.1                         
##  [99] IRanges_2.47.5                          
## [100] Seqinfo_1.3.2                           
## [101] SummarizedExperiment_1.43.0             
## [102] stats4_4.6.2                            
## [103] xfun_0.62                               
## [104] matrixStats_1.5.0                       
## [105] stringi_1.8.9                           
## [106] UCSC.utils_1.9.0                        
## [107] yaml_2.3.12                             
## [108] TxDb.Hsapiens.UCSC.hg38.knownGene_3.24.0
## [109] evaluate_1.0.5                          
## [110] codetools_0.2-20                        
## [111] cigarillo_1.3.1                         
## [112] tibble_3.3.1                            
## [113] lsei_1.3-1                              
## [114] BiocManager_1.30.27                     
## [115] cli_3.6.6                               
## [116] uwot_0.2.5                              
## [117] jquerylib_0.1.4                         
## [118] Rcpp_1.1.2                              
## [119] GenomeInfoDb_1.49.2                     
## [120] tidyverse_2.0.0                         
## [121] png_0.1-9                               
## [122] XML_3.99-0.25                           
## [123] ggplot2_4.0.4                           
## [124] blob_1.3.0                              
## [125] bitops_1.1-0                            
## [126] viridisLite_0.4.3                       
## [127] VariantAnnotation_1.59.4                
## [128] scales_1.4.0                            
## [129] combinat_0.0-9                          
## [130] purrr_1.2.2                             
## [131] crayon_1.5.3                            
## [132] GetoptLong_1.1.1                        
## [133] rlang_1.3.0                             
## [134] cowplot_1.2.0                           
## [135] KEGGREST_1.53.6