Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
nthomasCUBE authored Sep 29, 2021
1 parent a69d515 commit 114f9d8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
22 changes: 11 additions & 11 deletions methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ library(xlsx)
options(stringsAsFactors=FALSE)

add_transcriptomics=function(){
print(c("INFO|add_transcriptomcis"))
base::print(c("INFO|add_transcriptomcis"))
}

add_trait_information=function(){
print(c("INFO|add_trait_information"))
base::print(c("INFO|add_trait_information"))
}

calc_cmp_transcriptomics_traits=function(v){
print(c("INFO|transcriptomics VS traits"))
base::print(c("INFO|transcriptomics VS traits"))
cn=c("---",colnames(v$trait))
cn2=c("---",v$transcriptomics[,1])
appendTab(inputId = "tabset",
Expand Down Expand Up @@ -64,7 +64,7 @@ calc_cmp_transcriptomics_traits=function(v){
}

cmp_traits=function(v,my_trait1,my_trait2,my_trait3){
print("INFO|cmp_traits|start")
base::print("INFO|cmp_traits|start")

shinyjs::show("plot")
shinyjs::hide("plot2")
Expand All @@ -85,7 +85,7 @@ cmp_traits=function(v,my_trait1,my_trait2,my_trait3){
raw_p_val3=c()

for(x in 1:N){
print(paste0("INFO|cmp_traits|start",x,"|",N))
base::print(paste0("INFO|cmp_traits|start",x,"|",N))
if(my_trait1!="---"){
iy=which(colnames(v$trait)==my_trait1)
T1=as.numeric(v$trait[ix,iy])
Expand Down Expand Up @@ -326,11 +326,11 @@ linear_model=function(v, phen6, phen7, phen8, opt1, opt2, gene2, phen62, phen72,
}
}

print(summary(df))
base::print(summary(df))
o2=rownames(as.data.frame(o1))
print(o1)
print(o2)
print(length(o2))
base::print(o1)
base::print(o2)
base::print(length(o2))
if(length(o2)==4){
o2[2]=phen6
o2[3]=phen7
Expand All @@ -349,7 +349,7 @@ linear_model=function(v, phen6, phen7, phen8, opt1, opt2, gene2, phen62, phen72,
}

regr_analysis=function(v, my_trait1, my_gene1){
print("INFO|regr_analysis")
base::print("INFO|regr_analysis")
ix=which(my_gene1==v$transcriptomics[,1])

data1=v$transcriptomics
Expand Down Expand Up @@ -377,7 +377,7 @@ regr_analysis=function(v, my_trait1, my_gene1){

make_corr=function(v,my_trait,output){

print("INFO|make_corr")
base::print("INFO|make_corr")

shinyjs::show("plot")
shinyjs::show("plot2")
Expand Down
4 changes: 2 additions & 2 deletions run_traitCorr.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@

packages_necessary=c("d3heatmap","gplots","officer","VennDiagram","scales","shiny","shinyalert","shinyBS","shinyjs","shinythemes","xlsx","plm")
for(x in 1:length(packages_necessary)){
print(packages_necessary[x])
base::print(packages_necessary[x])
library(packages_necessary[x],character.only=TRUE)
}

scripts_necessary=c("methods.R","ui.R","server.R")
for(x in 1:length(scripts_necessary)){
print(scripts_necessary[x])
base::print(scripts_necessary[x])
source(scripts_necessary[x])
}

Expand Down
2 changes: 1 addition & 1 deletion server.R
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ server <- function(input, output, session)
for(i in 1:length(my_mod)){
nmb_genes=subset(v$module,v$module[,2]==my_mod[i])
nmb_genes=dim(nmb_genes)[1]
print(paste(my_mod[i],nmb_genes))
base::print(paste(my_mod[i],nmb_genes))
}

shinyalert("INFO", paste(dim(v$trait)[1],"gene-module assignments were uploaded!"), type = "info")
Expand Down

0 comments on commit 114f9d8

Please sign in to comment.