Skip to content

Scripts to add functionality, diagnose problems and augment analyses done using SUMO

Notifications You must be signed in to change notification settings

ratan-lab/sumo_helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

sumo_helper

Helper scripts

The following scripts are included in the scripts folder

  1. plot_metrics.R : Frequently we want to run SUMO using various parameters, and then subsequently inspect the PAC and CCC curves. This scripts takes a directory name as input and plots the PAC and CCC curves for those directories in a single plot. Run it as
plot_metrics.R /Users/ar7jq/benchmark_analysis output.pdf
  1. plot_sankey.R : This plot is helpful in inspecting how the cluster memberships change as the number of clusters are changed. Run it as
./plot_sankey.R /Users/ar7jq/benchmark_analysis output.pdf
  1. cluster_layer: Cluster the samples in a particular data type using Symmetric NMF.
./cluster_layer prepared.npz 0 2

Here "0" is the label for the layer, and you would like to see how the clustering performs with k=2.

  1. examine_layers: Cluster each layer separately using Symmetric NMF from k=2:15. Also calculates adjusted NMI for these various clusterings.
./examine_layers -c clusters.txt prepare.npz
  1. Create plot summary of SUMO run results, based on various metrics extracted from the output directory (only for SUMO v0.2.7+).
./sumo_diagnostics.R sumo_results_dir1,sumo_results_dir2,...

Created plots illustrate metrics used for K-selection, cost function distribution throughout the factorization, number of iterations reached by solver in each factorization repetition, and heatmaps of consensus matrices. If -log DEBUG flag was used for SUMO run, additional plots of final cost function values (separated by terms) and heatmaps of selected final H matrices are created.

About

Scripts to add functionality, diagnose problems and augment analyses done using SUMO

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published