Skip to content

Commit

Permalink
including position in variant file
Browse files Browse the repository at this point in the history
  • Loading branch information
explodecomputer committed Oct 20, 2024
1 parent 660981b commit b54e315
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions resources/genotypes/generate_variant_reference.r
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ l <- lapply(afreqlist, \(fn) {
a$EA[a$flipped] <- a$OA[a$flipped]
a$OA[a$flipped] <- temp
a$CHR <- as.character(a$CHR)
a$POS <- as.numeric(sub(".*:(.*)_(.*)_(.*)", "\\1", a$SNP))
a <- dplyr::select(a, CHR, POS, SNP, OA, EA, EAF, OBS_CT, flipped, POS)
str(a)
a
}) %>% bind_rows()
Expand Down

0 comments on commit b54e315

Please sign in to comment.