Skip to content

Commit

Permalink
Merge pull request #64 from Breeding-Insight/geno_updates
Browse files Browse the repository at this point in the history
version update and GWAS bug fix
  • Loading branch information
Cristianetaniguti authored Sep 23, 2024
2 parents a5a6852 + 01bd5bc commit a635591
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: BIGapp
Title: Breeding Insight Genomics Shiny Application
Version: 0.6.1
Version: 0.6.2
Authors@R:
c(
person(c("Alexander", "M."), "Sandercock",
Expand Down
2 changes: 1 addition & 1 deletion R/app_ui.R
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ app_ui <- function(request) {
),
left = div(
style = "display: flex; align-items: center; height: 100%;", # Center the version text vertically
"v0.6.0")
"v0.6.2")
),
dashboardBody(
disconnectMessage(), #Adds generic error message for any error if not already accounted for
Expand Down
4 changes: 2 additions & 2 deletions R/mod_gwas.R
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ mod_gwas_server <- function(input, output, session, parent_session){
info <- data.frame(vcf@fix)
gpoly_df <- cbind(info[,c("ID","CHROM","POS")], geno_mat)

if(!any(colnames(gpoly_df) %in% phenotype_file$Sample_ID)) {
if(!any(colnames(gpoly_df) %in% phenotype_file[,1])) {
shinyalert(
title = "Samples ID do not match",
text = paste("Check if passport/phenotype files have same sample ID as the VCF/genotype file."),
Expand All @@ -314,7 +314,7 @@ mod_gwas_server <- function(input, output, session, parent_session){

}
validate(
need(any(colnames(gpoly_df) %in% phenotype_file$Sample_ID), "The selected traits must be numerical.")
need(any(colnames(gpoly_df) %in% phenotype_file[,1]), "The selected traits must be numerical.")
)

write.csv(gpoly_df, file = temp_geno_file, row.names = FALSE)
Expand Down

0 comments on commit a635591

Please sign in to comment.