Skip to content

Commit

Permalink
Merge pull request #524 from brentp/auto_dom_unknown
Browse files Browse the repository at this point in the history
fix parens for unknown parents and update docs.
  • Loading branch information
brentp committed Aug 13, 2015
2 parents 45284e0 + 4479cae commit ec34c00
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/content/tools.rst
Original file line number Diff line number Diff line change
Expand Up @@ -594,8 +594,8 @@ Genotype Requirements
- [affected] No unaffected can be het or homalt (can be unknown)
- de_novo mutations are not auto_dom (at least not in the first generation)
- At least 1 affected must have 1 affected parent.
- [strict] All affecteds must have parents with known phenotype.
- [strict] All affected kids must have at least 1 affected parent
- [strict] All affected with parents must have at least 1 affected parent
- [strict] All affecteds with parents must have parents with known phenotype.
- [strict] If no affected has a parent, a warning is issued.


Expand Down
2 changes: 1 addition & 1 deletion gemini/family.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ def auto_dom(self, min_depth=0, gt_ll=False, strict=True, only_affected=True):
kid_with_known_parents = True
# if he has a mom and dad that arent unknown, at least one of them must be affected
if not None in (kid.mom.affected, kid.dad.affected):
if not kid.mom.affected or kid.dad.affected: return 'False'
if not (kid.mom.affected or kid.dad.affected): return 'False'

if strict and not kid_with_known_parents:
return 'False'
Expand Down

0 comments on commit ec34c00

Please sign in to comment.