Skip to content

Instantly share code, notes, and snippets.

@mzdravkov
Created April 13, 2023 21:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mzdravkov/85409f4d0e7d5234f350a9a814a283bf to your computer and use it in GitHub Desktop.
Save mzdravkov/85409f4d0e7d5234f350a9a814a283bf to your computer and use it in GitHub Desktop.
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