-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMegaMUGA Allele Query.R
More file actions
31 lines (23 loc) · 1.15 KB
/
MegaMUGA Allele Query.R
File metadata and controls
31 lines (23 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#` This page contains code to find allelic information directly from MegaMUGA SNP
#` array. In this way, you can determine which alleles occured in each of the
#` individual mice, without the HMM probability information created with DOQTLs
#` genome reconstruction package.
geno <- read.table("~/Desktop/R/QTL/extract.raw.data/GRSD/geno.txt")
total <- read.csv("~/Desktop/R/GRSD.phenotype/CSV/Total-Table 1.csv")
total$corrected[which(total$Osteosarcoma > 0)]
OSA <- cbind(total$corrected[which(total$Osteosarcoma > 0)],
total$group[which(total$Osteosarcoma > 0)])
OSAsnps <- as.data.frame(geno[match(total$corrected[which(total$Osteosarcoma > 0)], rownames(geno)), ])
GRSDsnps <- cbind(geno[match(total[, 2], rownames(geno)), ])
GRSD.Rb1 <- cbind(GRSDsnps$UNC24228305)
OSA.Rb1 <- cbind(GRSDsnps$UNC24228305)
OSAsnps$UNC24228305 == "C"
OSAsnps$UNC24238214
rownames(Rb1)
OSA <- cbind(geno[total$corrected[which(total$Osteosarcoma == 1)], ])
NonOSA<- cbind(geno[total$corrected[which(total$Osteosarcoma == 0)], ])
snp.names <- colnames(geno)
OSA <- Total$corrected[which(Total$Osteosarcoma > 0)]
OSA <- Total$group[which(Total$Osteosarcoma > 0)]
OSA
library(HZE)