Created
April 13, 2023 21:21
-
-
Save mzdravkov/85409f4d0e7d5234f350a9a814a283bf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function allele_in_parent(allele, parent_alleles) { | |
return allele == parent_alleles[1] || allele == parent_alleles[2]; | |
} | |
/^#/ { print $0; } | |
/^[^#]/ { | |
split($12, cfields, ":"); | |
split(cfields[1], child, "/"); | |
if (child[1] != 0 || child[2] != 0) print $0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment