Skip to content

Commit 45b9183

Browse files
authored
Update digestR.R
1 parent 4ed6876 commit 45b9183

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

R/digestR.R

+3
Original file line numberDiff line numberDiff line change
@@ -19075,6 +19075,8 @@ onDisplayGene <- function() {
1907519075
onOK <- function() {
1907619076
# Get the gene name from either the entry box or dropdown
1907719077
geneName <- tclvalue(geneEntryVar)
19078+
19079+
# Fix: Ensure that nchar() has a valid string input by providing a default empty string
1907819080
if (nchar(geneName) == 0) {
1907919081
geneName <- tclvalue(geneDropdownVar) # Fall back to dropdown selection
1908019082
}
@@ -19110,6 +19112,7 @@ onDisplayGene <- function() {
1911019112
}
1911119113
displayGeneButton <- ttkbutton(genePlotTypeFrame, text='Display Single Gene', width=21, command=onDisplayGene)
1911219114

19115+
1911319116
onDisplayProteome <- function()
1911419117
{
1911519118
analyze_genes('')

0 commit comments

Comments
 (0)