Skip to content

Commit

Permalink
RAM usage optimisations
Browse files Browse the repository at this point in the history
  • Loading branch information
ainefairbrother committed Nov 13, 2020
1 parent c329fca commit 2ce770a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion R/single_gene_gen_fig.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ GenFigSingleGene = function(arg1){
,nrow=2,
ncol=1,
labels=c("A", "B")),
bottom = text_grob("Plot produced using the MitoNuclearCOEXPlorer tool [https://snca.atica.um.es/MitoNuclearCOEXPlorer/]", color = "black",
bottom = text_grob("Plot produced using the MitoNuclearCOEXPlorer tool [https://ainefairbrotherbrowne.shinyapps.io/MitoNuclearCOEXPlorer/]", color = "black",
hjust = 1, x = 1, face = "italic", size = 10)))
}

Expand Down
2 changes: 1 addition & 1 deletion R/test_list_for_enrichment_fn.R
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ test_list_for_enrichment = function(gene_list, iters, filt_bkg_for_protein_codin
time.taken = end.time - start.time
print(paste("Runtime =", time.taken))
return(ggpubr::annotate_figure(fig,
bottom = text_grob("Analysis and visualisation provided by the MitoNuclearCOEXPlorer tool [https://snca.atica.um.es/MitoNuclearCOEXPlorer/]", color = "black",
bottom = text_grob("Analysis and visualisation provided by the MitoNuclearCOEXPlorer tool [https://ainefairbrotherbrowne.shinyapps.io/MitoNuclearCOEXPlorer/]", color = "black",
hjust = 1, x = 1, face = "italic", size = 10)))

}else{
Expand Down
5 changes: 3 additions & 2 deletions app.R
Original file line number Diff line number Diff line change
Expand Up @@ -411,15 +411,16 @@ shinyApp(
paste("MitoNuclearCOEXPlorer_correlations_12_CNS_regions","csv",sep=".")
},
content = function(con){
file.copy('./data/GTEx_brain_summary_table.csv', con)
write.csv(summary_brain, con)

})

output$downloadCTRL <- downloadHandler(
filename = function(){
paste("MitoNuclearCOEXPlorer_correlations_heart_and_muscle","csv",sep=".")
},
content = function(con){
file.copy('./data/GTEx_control_tissues_summary_table.csv', con)
write.csv(summary_controls, con)
})

output$downloadSINGLEGENE <- downloadHandler(
Expand Down

0 comments on commit 2ce770a

Please sign in to comment.