public String toString() { StringBuilder b = new StringBuilder(); b.append("VariantContextTestData: ["); final VariantContext vc = vcs.get(0); final VariantContextBuilder builder = new VariantContextBuilder(vc); builder.noGenotypes(); b.append(builder.make().toString()); if (vc.getNSamples() < 5) { for (final Genotype g : vc.getGenotypes()) b.append(g.toString()); } else { b.append(" nGenotypes = ").append(vc.getNSamples()); } if (vcs.size() > 1) b.append(" ----- with another ").append(vcs.size() - 1).append(" VariantContext records"); b.append("]"); return b.toString(); }