// If one or fewer tracks are selected assume the intent is to use all tracks. A right-click
// will always result in one selected track.
Collection<Track> tracks = selectedTracks.size() > 1 ? selectedTracks :
IGV.getInstance().getAllTracks();
KMPlotFrame frame = new KMPlotFrame(tracks);
frame.setVisible(true);
}
});
// The Kaplan-Meier plot requires sample information, specifically survival, sample, and censure. We
// can't know if these columns exist, but we can at least know if sample-info has been loaded.