Skip to content

Commit

Permalink
Update getVariantSeq.R
Browse files Browse the repository at this point in the history
  • Loading branch information
Akmazad committed Jul 29, 2020
1 parent 5469e67 commit a2695fc
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions Data Processing/Variant data processing/getVariantSeq.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,15 @@ ncSNPs$Label = "1"
fwrite(getVariabntSeq(ncSNPs, flankingLength), file = paste0(dir, filename, "_fastaseq_Positives.csv"), sep = ",")


# # True Negative (i.e. non-Functional SNPs - from deepSea supple table 5)
# filename="deepsea_supple_tabale5"
# # anything other than "eQTL" is negative
# dat = as.data.frame(fread(paste0(filename, ".csv"),header = T)) %>% dplyr::filter(label != "eQTL")
# # dat[,8] = ifelse(dat[,8] == "eQTL",1,0)
# dat = dat[,c(2,3,4,5,8)]
# colnames(dat) <- c("Chr","Pos","Ref","Alt","Label")
# dat$Strand = "+"
# True Negative (i.e. non-Functional SNPs - from deepSea supple table 5)
filename="deepsea_supple_tabale5"
# anything other than "eQTL" is negative
dat = as.data.frame(fread(paste0(filename, ".csv"),header = T)) %>% dplyr::filter(label != "eQTL")
# dat[,8] = ifelse(dat[,8] == "eQTL",1,0)
dat = dat[,c(2,3,4,5)]
colnames(dat) <- c("Chr","Pos","Ref","Alt")
dat$Label = "0"
dat$Strand = "+"

# # invoke function for sequence retreival and save
# fwrite(getVariabntSeq(dat, flankingLength), file = paste0(dir, filename, "_fastaseq_Negatives.csv"), sep = ",")
# invoke function for sequence retreival and save
fwrite(getVariabntSeq(dat, flankingLength), file = paste0(dir, filename, "_fastaseq_Negatives.csv"), sep = ",")

0 comments on commit a2695fc

Please sign in to comment.