Skip to content

Commit

Permalink
added sample annot file
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiffany Amariuta committed Jul 11, 2023
1 parent f53c410 commit 91ded89
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions simulation_analysis/Nov_LDSCSEG_expressionmod_tstats.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ system(paste0("gzip -f TCSC/simulation_analysis/SEG/tstats/*_sim",sim,".txt"))

#annotate SNPs
library(data.table)
snps <- fread("TCSC/simulation_analysis/1000G.EUR.QC.hm3_noMHC.1.bim", header = F) #98K 1000G EUR SNPs
snps <- fread("TCSC/simulation_analysis/1000G.EUR.QC.hm3_noMHC.1.frq", header = F) #98K 1000G EUR SNPs
#write.table(snps$V2, file = "list.txt", row.names = F, col.names = F, sep = "\t", quote = F)
snpannot <- fread("TCSC/simulation_analysis/sample_annot.1.annot.gz", header=T)
snpannot <- fread("TCSC/simulation_analysis/sample_annot.1.annot.gz", header=T) #obtain any sample annot from s-ldsc
snpannot$Chromatin <- 0
w <- which(snpannot$SNP %in% snps$V2)
snpannot <- snpannot[w,]
Expand Down
Binary file added simulation_analysis/sample_annot.1.annot.gz
Binary file not shown.

0 comments on commit 91ded89

Please sign in to comment.