Skip to content

Commit d96faeb

Browse files
exclude chrX variant from inheritance
1 parent 9eb33ef commit d96faeb

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

wwwachab.pl

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2224,11 +2224,14 @@
22242224
if ($line[0]!~/X/){
22252225

22262226
if (defined $skipCaseWT && $finalSortData[$dicoColumnNbr{"Genotype-".$case}] eq "0/0"){
2227-
switch ($familyGenotype){
2228-
#Check if case/dad and case/mum inheritance are consistent
2229-
case /^_0\/0_0\/1_0\/0_/ {$dadVariant ++ ;}
2230-
case /^_0\/0_0\/0_0\/1_/ {$mumVariant ++ ;}
2231-
}
2227+
# exclude chromosome X variants due to mother/son unbalance
2228+
if ($line[0]!~/X/){
2229+
switch ($familyGenotype){
2230+
#Check if case/dad and case/mum inheritance are consistent
2231+
case /^_0\/0_0\/1_0\/0_/ {$dadVariant ++ ;}
2232+
case /^_0\/0_0\/0_0\/1_/ {$mumVariant ++ ;}
2233+
}
2234+
}
22322235
next;
22332236
}
22342237

@@ -2240,8 +2243,7 @@
22402243
case /^_0\/1_0\/0_0\/1_/ {$caseMumVariant ++;}
22412244

22422245
}
2243-
}
2244-
2246+
22452247
if ($finalSortData[$dicoColumnNbr{"Genotype-".$case}] eq "0/0" or (! defined $hashAffected{$dad} and $finalSortData[$dicoColumnNbr{"Genotype-".$dad}] eq "1/1") or (! defined $hashAffected{$mum} and $finalSortData[$dicoColumnNbr{"Genotype-".$mum}] eq "1/1") ){
22462248
$finalSortData[$dicoColumnNbr{'MPA_ranking'}] += 100;
22472249
}

0 commit comments

Comments
 (0)