Search in sources :

Example 1 with DeNovoMutation

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);
}
Also used : Trio(com.github.lindenb.jvarkit.pedigree.Trio) DeNovoMutation(com.github.lindenb.jvarkit.tools.vcftrios.DeNovoDetector.DeNovoMutation)

Aggregations

Trio (com.github.lindenb.jvarkit.pedigree.Trio)1 DeNovoMutation (com.github.lindenb.jvarkit.tools.vcftrios.DeNovoDetector.DeNovoMutation)1