Skip to content

Commit

Permalink
Removed extra .vcf from output name if present
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-sandercock committed Sep 23, 2024
1 parent 2afdbb4 commit cc49743
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion R/mod_DosageCall.R
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,8 @@ mod_DosageCall_server <- function(input, output, session, parent_session){

output$download_updog_vcf <- downloadHandler(
filename = function() {
paste0(input$output_name, ".vcf.gz")
output_name <- gsub("\\.vcf$", "", input$output_name)
paste0(output_name, ".vcf.gz")
},
content = function(file) {
#Save Updog output as VCF file
Expand Down
3 changes: 2 additions & 1 deletion R/mod_Filtering.R
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,8 @@ mod_Filtering_server <- function(input, output, session, parent_session){
#Updog filtering
output$start_updog_filter <- downloadHandler(
filename = function() {
paste0(input$filter_output_name, ".vcf.gz")
output_name <- gsub("\\.vcf$", "", input$filter_output_name)
paste0(output_name, ".vcf.gz")
},
content = function(file) {

Expand Down
3 changes: 2 additions & 1 deletion R/mod_dosage2vcf.R
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ mod_dosage2vcf_server <- function(input, output, session, parent_session){
##This is for the DArT files conversion to VCF
output$download_d2vcf <- downloadHandler(
filename = function() {
paste0(input$d2v_output_name, ".vcf.gz")
output_name <- gsub("\\.vcf$", "", input$d2v_output_name)
paste0(output_name, ".vcf.gz")
},
content = function(file) {
# Ensure the files are uploaded
Expand Down

0 comments on commit cc49743

Please sign in to comment.