5 open I
, "-|", "bcftools view tigers.bcgv.bcf";
6 open NOTDAD
, ">", "notDAD.vcf";
7 open NOTMUM
, ">", "notMUM.vcf";
8 open LOG
, ">", "parenthood.log";
10 my ($yDad, $nDad, $yMum, $nMum) = (0, 0, 0, 0);
13 my @line = split /\t/;
14 next if $line[7] =~ /^INDEL/;
15 next if $line[5] < 999;
16 my @JHH001 = split /:/, $line[9];
17 next if $JHH001[4] < 99;
18 my @BXH011 = split /:/, $line[18];
19 next if $BXH011[4] < 99;
20 my @GZXJ36 = split /:/, $line[25];
21 next if $GZXJ36[4] < 99;
22 my @aJ = split /\//, $JHH001[0];
23 my @aB = split /\//, $BXH011[0];
24 my @aG = split /\//, $GZXJ36[0];
26 foreach my $nG (0..1) {
27 foreach my $nB (0..1) {
28 ++$GB if $aG[$nG] eq $aB[$nB];
30 foreach my $nJ (0..1) {
31 ++$GJ if $aG[$nG] eq $aJ[$nJ];
39 print NOTDAD
$line[$_], "\t";
41 print NOTDAD
$line[9], "\t", $line[18], "\t", $line[25], "\n";
48 print NOTMUM
$line[$_], "\t";
50 print NOTMUM
$line[9], "\t", $line[18], "\t", $line[25], "\n";
58 print LOG
"yBXH011\tnBXH011\tyJHH001\tnJHH001\n";
59 print LOG
"$yDad\t$nDad\t$yMum\t$nMum\n";