Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
explodecomputer committed Jan 16, 2025
1 parent 9a0673f commit f3b84f0
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
Binary file modified resources/genotypes/hm3_prune_th_hg19.bed.gz
Binary file not shown.
Binary file modified resources/genotypes/hm3_prune_th_hg38.bed.gz
Binary file not shown.
15 changes: 15 additions & 0 deletions test/prune_list/remove_ld.r
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
library(data.table)
library(dplyr)

hg19 <- fread("resources/genotypes/hm3_prune_th_hg19.bed.gz") %>% as_tibble()
hg38 <- fread("resources/genotypes/hm3_prune_th_hg38.bed.gz") %>% as_tibble()

a <- subset(hg19, (V1 == 5 & V2 >= 44000000 & V3 <= 51500000) | (V1 == 6 & V2 >= 25000000 & V3 <= 33500000) | (V1 == 8 & V2 >= 8000000 & V3 <= 12000000) | (V1 == 11 & V2 >= 45000000 & V3 <= 57000000))

rsids <- a$V4
hg19 <- subset(hg19, !(V4 %in% rsids))
hg38 <- subset(hg38, !(V4 %in% rsids))

fwrite(hg19, "resources/genotypes/hm3_prune_th_hg19.bed.gz")
fwrite(hg38, "resources/genotypes/hm3_prune_th_hg38.bed.gz")

0 comments on commit f3b84f0

Please sign in to comment.