Skip to content

Instantly share code, notes, and snippets.

View samwalrus's full-sized avatar

Sam Neaves samwalrus

  • University of Bristol
  • London
View GitHub Profile
things:
- id: 1
type: my:person
full_name: phoebe
height: 10
- id: 2
type: my:organisation
full_name: University of Earth
number_of_employees: 2
name: test-schema
id: http://example.org/test-schema
default_prefix: http://example.org/test-schema/
prefixes:
linkml: https://w3id.org/linkml/
imports:
- linkml:types
@samwalrus
samwalrus / ld.awk
Last active September 16, 2020 12:38
Bash script and AWK script for creating genetic principle components including removing long range LD regions
($1 == 1) && ($4 >= 48227413) && ($4 <= 52227412) {print $2}
($1 == 2) && ($4 >= 86000000) && ($4 <= 100500000) {print $2}
($1 == 2) && ($4 >= 183291755) && ($4 <= 190291755) {print $2}
($1 == 3) && ($4 >= 47524996) && ($4 <= 50024996) {print $2}
($1 == 3) && ($4 >= 83417310) && ($4 <= 86917310) {print $2}
($1 == 5) && ($4 >= 128972101) && ($4 <= 131972101) {print $2}
($1 == 5) && ($4 >= 44500000) && ($4 <= 50500000) {print $2}
($1 == 6) && ($4 >= 57000000) && ($4 <= 64000000) {print $2}
($1 == 6) && ($4 >= 25392021) && ($4 <= 33392022) {print $2}
($1 == 6) && ($4 >= 139958307) && ($4 <= 142458307) {print $2}