Skip to content

Commit

Permalink
improved LDtrait table
Browse files Browse the repository at this point in the history
now only displaying selected columns and SNPs in high LD to GWAS SNPs with LD of >= 0.6
  • Loading branch information
shuo-shan committed Mar 6, 2024
1 parent 3c79ff5 commit a3f12df
Show file tree
Hide file tree
Showing 3 changed files with 46,147 additions and 16 deletions.
9 changes: 6 additions & 3 deletions LDtrait.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,14 @@ library(DT)
```

# LDtrait table of QTLs
```{r load-table}
```{r load-table, echo=FALSE, warning=FALSE}
# directory
tab <- data.table::fread("website/data/modeling_results/QTLs_LDtrait_association_ALLpopulation_r20.1.txt")
tab <- data.table::fread("website/data/modeling_results/QTLs_LDtrait_association_ALLpopulation_r20.6.txt")
colnames(tab)[1] <- "Query_SNP"
colnames(tab)[4] <- "GWAS_SNP_in_LD"
colnames(tab)[2] <- "GWAS_SNP_in_LD"
colnames(tab)[3] <- "LD_R2"
tab$P_value <- format(as.numeric(tab$P_value), scientific = TRUE, digits = 3)
tab$LD_R2 <- format(as.numeric(tab$LD_R2), scientific = FALSE, digits = 3)
df_html <- tab %>%
datatable(escape = F, style = "auto")
Expand Down
15 changes: 2 additions & 13 deletions LDtrait.html

Large diffs are not rendered by default.

Loading

0 comments on commit a3f12df

Please sign in to comment.