Skip to content

Commit

Permalink
removed expr_data from all code -- it is not needed now that PCA and …
Browse files Browse the repository at this point in the history
…pheatmap use data_long
  • Loading branch information
jminnier committed Nov 3, 2016
1 parent 6db42bf commit 73afd55
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
2 changes: 1 addition & 1 deletion helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ if(FALSE) {
load('data/mousecounts_example_analyzed.RData') #example_data_results
data_analyzed = list('group_names'=group_names,'sampledata'=sampledata,
"results"=results,"data_long"=data_long, "geneids"=geneids,
"expr_data"=expr_data,"data_results_table"=example_data_results)
"data_results_table"=example_data_results)

data_results = data_analyzed$results

Expand Down
2 changes: 1 addition & 1 deletion save_example_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ data = countdata
results = lmobj_res

#after running analysis pipeline, export this code to another example construction file
save(countdata,group_names,sampledata,results,data_long,geneids,expr_data,
save(countdata,group_names,sampledata,results,data_long,geneids,
file="data/mousecounts_example_analysis_results.RData")


Expand Down
12 changes: 4 additions & 8 deletions server-inputdata.R
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ analyzeDataReactive <-
load('data/mousecounts_example_analyzed.RData') #example_data_results for data_results_table
return(list('group_names'=group_names,'sampledata'=sampledata,
"results"=results,"data_long"=data_long, "geneids"=geneids,
"expr_data"=expr_data,"data_results_table"=example_data_results))
"data_results_table"=example_data_results))
}

## ==================================================================================== ##
Expand All @@ -127,7 +127,7 @@ analyzeDataReactive <-

return(list('group_names'=group_names,'sampledata'=sampledata,
"results"=results,"data_long"=data_long,
"geneids"=geneids, "expr_data"=expr_data,
"geneids"=geneids,
"data_results_table"=data_results_table))
}

Expand Down Expand Up @@ -259,7 +259,7 @@ analyzeDataReactive <-

return(list('group_names'=group_names,'sampledata'=sampledata,
"results"=tmpres,"data_long"=data_long,
"geneids"=geneids,"expr_data"=expr_data,
"geneids"=geneids,
"data_results_table"=alldata))
}else if(input$inputdat_type=="expression_only") {

Expand Down Expand Up @@ -395,14 +395,11 @@ analyzeDataReactive <-
data_long = data_long%>%select(-one_of(tmpgeneidnames))
}

#expr_data = tmplog2cpm[,-1]

print('analyze data: done')


return(list('group_names'=group_names,'sampledata'=sampledata,
"results"=lmobj_res,"data_long"=data_long, "geneids"=geneids,
"expr_data"=expr_data,
"data_results_table"=data_results_table))

}
Expand Down Expand Up @@ -452,11 +449,10 @@ output$downloadResults_RData <- downloadHandler(filename= paste0("START_results_
results = tmp$results
data_long = tmp$data_long
geneids = tmp$geneids
expr_data = tmp$expr_data
data_results_table = tmp$data_results_table

save(group_names,sampledata,results,
data_long,geneids,expr_data,
data_long,geneids,
data_results_table,file=file)
})

Expand Down
2 changes: 1 addition & 1 deletion server-samplegroupplots.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ observe({
print("server-samplegroupplots-update-groups")
data_analyzed = analyzeDataReactive()
tmpgroups = data_analyzed$group_names
tmpsamples = colnames(data_analyzed$expr_data)
tmpsamples = as.character(data_analyzed$sampledata$sampleid)
updateSelectizeInput(session,'sampleres_groups',
choices=tmpgroups, selected=tmpgroups)
updateSelectizeInput(session,'sampleres_samples',
Expand Down

0 comments on commit 73afd55

Please sign in to comment.