Skip to content

Commit

Permalink
Merge pull request #30 from marcos-diazg/dev
Browse files Browse the repository at this point in the history
Fixing shiny 1.1.0 version compatibility issue
  • Loading branch information
Marcos Díaz-Gay authored Jul 16, 2018
2 parents 99ff938 + 612afb9 commit ffac6e3
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion server.R
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,15 @@ shinyServer(function(input, output,session){
#Mutation Matrix creation [mut_mat]
#######################################
mut_mat <- reactive({
return(mut_matrix(vcfs(),ref_genome()))
if (input$genome=="19"){
return(mut_matrix(vcfs(),"BSgenome.Hsapiens.UCSC.hg19"))
}
if (input$genome=="37"){
return(mut_matrix(vcfs(),"BSgenome.Hsapiens.1000genomes.hs37d5"))
}
if (input$genome=="hg38"){
return(mut_matrix(vcfs(),"BSgenome.Hsapiens.UCSC.hg38"))
}
})


Expand Down Expand Up @@ -531,6 +539,26 @@ shinyServer(function(input, output,session){
})










################################################################################
################################################################################
################################################################################









#######################################
#PLOT Somatic Mutation Prevalence (number mutations per megabase)
#######################################
Expand Down

0 comments on commit ffac6e3

Please sign in to comment.