Skip to content

Commit 3178d8f

Browse files
authored
create
1 parent e664560 commit 3178d8f

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

fixGeneSymb.R

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# function to replace gene symbols once they have been opened in excel
2+
3+
4+
replaceSymb <- function(df){
5+
df$gene <- gsub('1-Mar','MAR1',df$gene)
6+
df$gene <- gsub('10-Sep','SEPT10',df$gene)
7+
df$gene <- gsub('11-Mar','MARCH11',df$gene)
8+
df$gene <- gsub('11-Sep','SEPT11',df$gene)
9+
df$gene <- gsub('15-Sep','SEP15',df$gene)
10+
df$gene <- gsub('2-Mar','MAR2',df$gene)
11+
df$gene <- gsub('2-Sep','SEP2',df$gene)
12+
df$gene <- gsub('3-Sep','SEP3',df$gene)
13+
df$gene <- gsub('5-Mar','MAR5',df$gene)
14+
df$gene <- gsub('6-Mar','MAR6',df$gene)
15+
df$gene <- gsub('6-Sep','SEPT6',df$gene)
16+
df$gene <- gsub('7-Sep','SEPT7',df$gene)
17+
df$gene <- gsub('7-Mar','MAR7',df$gene)
18+
df$gene <- gsub('8-Mar','MAR8',df$gene)
19+
df$gene <- gsub('8-Sep','SEPT8',df$gene)
20+
df$gene <- gsub('9-Mar','MAR9',df$gene)
21+
df$gene <- gsub('9-Sep','SEPT9',df$gene)
22+
23+
return(df)
24+
}

0 commit comments

Comments
 (0)