Skip to content

Commit d3662e4

Browse files
committed
attempt of fixing rMATS bug
1 parent ef811ec commit d3662e4

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

R/betASapp.R

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,14 +1086,15 @@ betASapp_server <- function(){
10861086
}
10871087
else if (sourcetool() == "rMATS") {
10881088
rMATSEventType <- names(isolate(selectAlternatives())$EventsPerType)
1089+
rMATSEventType <- rMATSEventType[1] #adding [1] so we avoid the error of comparing more than one event. this happens because shiny is slow and does not automatically update this value
10891090
rMATSEventTypeText <- ""
1090-
if (rMATSEventType[1] == "EX") { #adding [1] so we avoid the error of comparing more than one event. this happens because shiny is slow and does not automatically update this value
1091+
if (rMATSEventType == "EX") {
10911092
rMATSEventTypeText <- "Exon Skipping"
1092-
} else if (rMATSEventType[1] == "IR") {
1093+
} else if (rMATSEventType == "IR") {
10931094
rMATSEventTypeText <- "Intron Retention"
1094-
} else if (rMATSEventType[1] == "Altss") {
1095+
} else if (rMATSEventType == "Altss") {
10951096
rMATSEventTypeText <- "Alternative splice site (Altss)"
1096-
} else if (rMATSEventType[1] == "MXE"){
1097+
} else if (rMATSEventType == "MXE"){
10971098
rMATSEventTypeText <- "Mutually Exclusive Exons"
10981099
}
10991100

0 commit comments

Comments
 (0)