-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathannotation
More file actions
49 lines (24 loc) · 938 Bytes
/
annotation
File metadata and controls
49 lines (24 loc) · 938 Bytes
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/usr/bin/bash
annot = read.table('/home/user/Desktop/NA.txt', row.names=1, header=TRUE);
# Match probes in the data set to the probe IDs in the annotation file
probes = names(log_counts_t)
probes2annot = match(probes, annot$substanceBXH)
# Get the corresponding Locuis Link IDs
allLLIDs = annot$LocusLinkID[probes2annot];
# $ Choose interesting modules
intModules = c("black" , "blue" , "cyan")
for (module in intModules)
{
# Select module probes
modGenes = (module_colours==module)
# Get their entrez ID codes
modLLIDs = allLLIDs[modGenes];
# Write them into a file
fileName = paste("LocusLinkIDs-", module, ".txt", sep="");
write.table(as.data.frame(modLLIDs), file = fileName,
row.names = FALSE, col.names = FALSE)
}
# As background in the enrichment analysis, we will use all probes in the analysis.
fileName = paste("LocusLinkIDs-all.txt", sep="");
write.table(as.data.frame(allLLIDs), file = fileName,
~