Package: twl 1.0
Michael Swanson
twl: Two-Way Latent Structure Clustering Model
Implementation of a Bayesian two-way latent structure model for integrative genomic clustering. The model clusters samples in relation to distinct data sources, with each subject-dataset receiving a latent cluster label, though cluster labels have across-dataset meaning because of the model formulation. A common scaling across data sources is unneeded, and inference is obtained by a Gibbs Sampler. The model can fit multivariate Gaussian distributed clusters or a heavier-tailed modification of a Gaussian density. Uniquely among integrative clustering models, the formulation makes no nestedness assumptions of samples across data sources -- the user can still fit the model if a study subject only has information from one data source. The package provides a variety of post-processing functions for model examination including ones for quantifying observed alignment of clusterings across genomic data sources. Run time is optimized so that analyses of datasets on the order of thousands of features on fewer than 5 datasets and hundreds of subjects can converge in 1 or 2 days on a single CPU. See "Swanson DM, Lien T, Bergholtz H, Sorlie T, Frigessi A, Investigating Coordinated Architectures Across Clusters in Integrative Studies: a Bayesian Two-Way Latent Structure Model, 2018, <doi:10.1101/387076>, Cold Spring Harbor Laboratory" at <https://www.biorxiv.org/content/early/2018/08/07/387076.full.pdf> for model details.
Authors:
twl_1.0.tar.gz
twl_1.0.tar.gz(r-4.5-noble)twl_1.0.tar.gz(r-4.4-noble)
twl_1.0.tgz(r-4.4-emscripten)twl_1.0.tgz(r-4.3-emscripten)
twl.pdf |twl.html✨
twl/json (API)
# Install 'twl' in R: |
install.packages('twl', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
- clus_save - Output samples
- misaligned - Progressively misaligned cluster annotation
- misaligned_mat - Progressively misaligned cluster data matrices
- outpu_new - Output PSMs
This package does not link to any Github/Gitlab/R-forge repository. No issue tracker or development information is available.
Last updated 6 years agofrom:bc1e7a04b9. Checks:OK: 2. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 22 2024 |
R-4.5-linux | OK | Nov 22 2024 |
Exports:cross_dat_analypairwise_cluspost_analy_cluspost_analy_corTWLsample
Dependencies:codacorrplotdata.tablelatticeMASSMatrixMatrixModelsmcmcMCMCpackquantregRcppRcppArmadilloRcppGSLRcppParallelRcppZigguratRfastSparseMsurvival
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Two-Way Latent Structure Clustering Model | twl-package twl |
Output samples | clus_save |
Compares clustering across datasets using metrics described in associated TWL manuscript | cross_dat_analy |
Progressively misaligned cluster annotation | misaligned |
Progressively misaligned cluster data matrices | misaligned_mat |
Output PSMs | outpu_new |
Create posterior similarity matrix from outputted list of clustering samples | pairwise_clus |
Assigns cluster labels by building dendrogram and thresholding at specified height | post_analy_clus |
Creates and saves correlation plots based on posterior similarity matrices | post_analy_cor |
Main function to obtain posterior samples from a TWL model. | TWLsample |