Skip to content

Instantly share code, notes, and snippets.

@butackle
Last active October 18, 2017 12:26
Show Gist options
  • Save butackle/f73efa9d4ace451e08e78c9bdb3bb559 to your computer and use it in GitHub Desktop.
Save butackle/f73efa9d4ace451e08e78c9bdb3bb559 to your computer and use it in GitHub Desktop.
require('fs').readFile('./bio-shell/data/merge-test-c.vcf',(e,t)=>console.log(`${t}`.split('\n').map((v) => (!v ||/^#/.test(v)) ? "" : (v.split("\t")[3].length < v.split("\t")[4].length && /1\/1/.test(v.split("\t")[9])) ? v : "").filter((v)=>!!v).join("\n")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment