use of com.github.lindenb.jvarkit.tools.vcftrios.DeNovoDetector.DeNovoMutation in project jvarkit by lindenb.
the class SwingTrioTableModel method setVariant.
public void setVariant(final VariantContext ctx) {
final List<DeNovoDetector.DeNovoMutation> L;
if (ctx == null || !ctx.hasGenotypes() || this.trios.isEmpty()) {
L = Collections.emptyList();
} else {
L = new ArrayList<>();
for (final Trio trio : this.trios) {
final DeNovoMutation mut = this.detector.test(ctx, trio);
if (mut != null)
L.add(mut);
}
}
setRows(L);
}
Aggregations