if (f != null) {
String selectedSample = getSampleAtPosition(te.getMouseEvent().getY());
if (selectedSample != null) {
// Select clicked sample and all other adjacent with the same genotype
Genotype genotype = f.getGenotype(selectedSample);
GenotypeType type = genotype.getType();
int idx = getSampleIndex(selectedSample);
for (int i = idx; i < sampleBounds.size(); i++) {
String s = sampleBounds.get(i).sample;
Genotype gt = f.getGenotype(s);