File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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 }
You can’t perform that action at this time.
0 commit comments