comparison pre_process_protein_name_set.R @ 19:c56ebf254e89 draft

Uploaded
author bornea
date Thu, 19 Nov 2015 13:17:39 -0500
parents 6571324e3d2c
children e21be0412789
comparison
equal deleted inserted replaced
18:b230824e1a0e 19:c56ebf254e89
1 ins_check_run()
1 library(data.table) 2 library(data.table)
2 library(affy) 3 library(affy)
3 library(stringr) 4 library(stringr)
4 library(mygene) 5 library(mygene)
5 library(VennDiagram) 6 library(VennDiagram)
70 Tukeys_df[i,j] = 2^(tukey.biweight(mapped_peptides_unique_subset[,j])) 71 Tukeys_df[i,j] = 2^(tukey.biweight(mapped_peptides_unique_subset[,j]))
71 } 72 }
72 } 73 }
73 return(Tukeys_df) 74 return(Tukeys_df)
74 } 75 }
76 ins_check_run <- function() {
77 if ("affy" %in% rownames(installed.packages())){}
78 else {
79 source("https://bioconductor.org/biocLite.R")
80 biocLite(c('mygene','affy'))
81 }
82 if ('data.table' %in% rownames(installed.packages())){}
83 else {
84 install.packages('data.table', repos='http://cran.us.r-project.org')
85 }
86 if ('stringr' %in% rownames(installed.packages())){}
87 else {
88 install.packages('stringr', repos='http://cran.us.r-project.org')
89 }
90 if ('VennDiagram' %in% rownames(installed.packages())){}
91 else {
92 install.packages('VennDiagram', repos='http://cran.us.r-project.org')
93 }
94 }
75 95
76 args <- commandArgs(trailingOnly = TRUE) 96 args <- commandArgs(trailingOnly = TRUE)
77 main(args[1]) 97 main(args[1])