Skip to content

Implement UI and madc2vcf updates with GS-Amat support#155

Open
alex-sandercock wants to merge 10 commits into
mainfrom
development
Open

Implement UI and madc2vcf updates with GS-Amat support#155
alex-sandercock wants to merge 10 commits into
mainfrom
development

Conversation

@alex-sandercock
Copy link
Copy Markdown
Collaborator

This pull request introduces several improvements and updates to the BIGapp Shiny application, focusing on enhanced user experience, expanded data format support, improved logging and status reporting, and updated institutional branding. The most significant changes are grouped below:

User Interface and Experience Enhancements:

  • The mod_dosage2vcf module UI now includes a real-time log display, a "Download Log" button, and a more informative "Status & Log" box for better user feedback during file conversions. The advanced options modal has been added, allowing users to customize conversion parameters. Several input fields have been clarified, new options (such as "Microhaplotypes") and additional species have been added, and layout improvements were made for clarity and usability. [1] [2] [3] [4]

  • The footer in the UI has been updated to reflect the new year ("2026 Breeding Insight") and new funding attribution ("Funded by USDA through UF|IFAS"), and the UF|IFAS logo has been added alongside the Cornell logo. [1] [2]

Data Handling and Format Support:

  • The file input section for DArT reports now supports "DArT Dosage/SNP Report" (renamed from "DArT Dosage Reports"), and the UI and download handlers have been updated to provide both "Raw" and "Fixed Allele" MADC example files, with the latter downloaded from an external GitHub source. [1] [2]

  • The marker type selection now supports "Microhaplotypes," and the species selection list has been expanded to include "potato" and "strawberry." Additional optional file inputs are now available for more flexible analysis.

Validation and Error Handling:

  • The list of error checks for VCF processing has been streamlined across multiple modules by removing "phased_GT" from the error_if_true lists, reducing unnecessary validation failures for phased genotypes. [1] [2] [3] [4] [5] [6]

General Updates:

  • The app version is incremented to 1.8.0, and the RoxygenNote is updated to 7.3.3 in the DESCRIPTION file. [1] [2]

  • The maximum upload size is reduced from 1000GB to 100GB to better align with practical server resource limits.

Minor Improvements:

  • The DAPC module now includes "VCF_compressed" in its error checks, and the "Status" box in the dosage2vcf module has been renamed to "Status & Log." [1] [2]

These updates collectively improve usability, flexibility, and maintainability of the application.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR bumps BIGapp to v1.8.0 and primarily expands the mod_dosage2vcf module with GS-Amat / microhaplotype support (new "Microhaplotypes" marker type, additional species, advanced-options modal, real-time log with download), refreshes UI footer/branding (2026, UF|IFAS), supports both raw and fixed-allele MADC example downloads, and streamlines VCF sanity checks by removing phased_GT from error_if_true across several analysis modules. A handful of small UX/whitespace cleanups and a doc rewrite of the DArT_Report2VCF help round out the change.

Changes:

  • Major refactor of mod_dosage2vcf UI/server (logging, advanced options, microhaplotypes, new species, switch from local example files to GitHub-hosted assets on the long_seq branch).
  • Remove phased_GT from VCF error_if_true checks in PCA, GWAS, GSAcc, GS, Filtering, Diversity, DAPC (partially).
  • Footer/branding updates (UF|IFAS logo, 2026), version bump to 1.8.0, RoxygenNote 7.3.3, max upload size reduced from 1000GB→100GB, README author spelling fix (Tanigut→Taniguti), and substantial expansion of the DArT_Report2VCF_par.Rmd help.

Reviewed changes

Copilot reviewed 13 out of 15 changed files in this pull request and generated 12 comments.

Show a summary per file
File Description
DESCRIPTION Version bump to 1.8.0 and RoxygenNote to 7.3.3
README.md Spelling correction in citation (Taniguti)
R/app_server.R Reduce shiny.maxRequestSize from 1000GB to 100GB
R/app_ui.R Footer year/funding update, add UF
R/mod_dosage2vcf.R Major UI/server overhaul: logging, advanced options, microhaplotypes, new species, GitHub-hosted assets
R/mod_dapc.R Add VCF_compressed to one check block; only one of two blocks had phased_GT removed (other still includes it)
R/mod_diversity.R Remove phased_GT from error_if_true; whitespace cleanup
R/mod_Filtering.R Remove phased_GT from error_if_true; whitespace cleanup
R/mod_GS.R Remove phased_GT from error_if_true; whitespace cleanup
R/mod_GSAcc.R Remove phased_GT; whitespace cleanup
R/mod_gwas.R Remove phased_GT; whitespace cleanup
R/mod_PCA.R Remove phased_GT; whitespace cleanup
man/polyRAD2vcf.Rd Expanded roxygen-generated documentation
inst/help_files/DArT_Report2VCF_par.Rmd Substantially rewritten help with HTML requirement tables
Files not reviewed (1)
  • man/polyRAD2vcf.Rd: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread R/mod_dapc.R

error_if_true <- c(
"multiallelics", "phased_GT", "mixed_ploidies",
Comment thread R/mod_dosage2vcf.R
Comment on lines +480 to +488
} else if(input$snp_type == "multiallelic"){
madc2vcf_multi(
madc_file = read_madc,
botloci_file = botloci,
outfile = output_name,
markers_info = markers_info,
ploidy = 4L,
verbose = TRUE
)
Comment thread R/mod_dosage2vcf.R
verbose = TRUE)
} else if(input$snp_type == "target"){
madc2vcf_targets(read_madc, output_name, get_REF_ALT = as.logical(input$ref_alt), botloci_file = botloci,
markers_info = markers_info, collapse_matches_counts = input$collapse_matches_counts)
Comment thread R/mod_dosage2vcf.R
fileInput(ns("hapDB_file"), "Upload haplotype database file (fasta) (optional)"),
fileInput(ns("markers_info_file"), "Upload markers information (_lut.csv from HapApp) (optional)"),
)
)
Comment thread R/mod_dosage2vcf.R
Comment on lines +77 to +86
radioButtons(ns("collapse_matches_counts"),
label = "Collapse Matches Counts:",
choices = list("Yes"= TRUE, "No" = FALSE),
selected = FALSE),
conditionalPanel(condition = "input.species == 'other'",
ns = ns,
radioButtons(ns("ref_alt"),
label = "Extract REF and ALT info:",
choices = list("Yes"= "TRUE", "No" = "FALSE"),
selected = "TRUE"),
choices = list("Yes"= TRUE, "No" = FALSE),
selected = TRUE),
Comment thread R/mod_dosage2vcf.R
selectInput(ns('species'),
label = 'Species',
choices = c("alfalfa","blueberry", "cranberry", "cucumber", "lettuce", "pecan", "sweetpotato", "other"),
choices = c("alfalfa", "blueberry", "cranberry", "cucumber", "pecan", "potato", "strawberry", "sweetpotato", "other"),
Comment thread R/mod_dosage2vcf.R
Comment on lines 596 to 624
@@ -464,7 +622,7 @@ mod_dosage2vcf_server <- function(input, output, session, parent_session){
sep = ""
)
}

* **Target vs. Off-Target SNPs**

### **Target vs. Off-Target SNPs** vs. **Microhaplotypes**
Comment thread R/mod_dosage2vcf.R
text = "This MADC file has not been processed by the updated Breeding Insight fixed allele ID pipeline.",
size = "m",
title = "Missing input!",
text = "Upload MADC and/or define a output file name",
Comment thread R/mod_dosage2vcf.R
@@ -268,106 +431,101 @@ mod_dosage2vcf_server <- function(input, output, session, parent_session){
showCancelButton = FALSE,
animation = TRUE
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants