Browse code

comments and debug fix for separator issue

deril2605 authored on 28/01/2024 01:26:17
Showing 1 changed files

... ...
@@ -257,7 +257,6 @@ getData <- function(input) {
257 257
       } else {
258 258
         label = "LF"
259 259
       }
260
-      print(label)
261 260
       mydata = MaxQtoMSstatsPTMFormat(evidence=mydata,
262 261
                                       annotation=annotation,
263 262
                                       input$fasta$datapath,
... ...
@@ -365,13 +364,13 @@ getData <- function(input) {
365 364
                                          use_unmod_peptides=use_unmod_peptides)
366 365
 
367 366
     }else {
368
-      data = read.csv(input$msstatsptmdata$datapath, header = TRUE,sep = input$sep_msstatsptmdata, # fixed sep here
367
+      data = read.csv(input$msstatsptmdata$datapath, header = TRUE,sep = input$sep_msstatsptmdata, 
369 368
                       stringsAsFactors=FALSE)
370 369
       mydata = list("PTM" = data, "PROTEIN" = unmod)
371 370
     }
372 371
   }
373 372
   else if (input$filetype == "msstats"){
374
-    mydata = read.csv(input$msstatsdata$datapath, header = TRUE,sep = input$sep_msstatsdata, # fixed sep here
373
+    mydata = read.csv(input$msstatsdata$datapath, header = TRUE,sep = input$sep_msstatsdata, 
375 374
                       stringsAsFactors=FALSE)
376 375
   }
377 376
   else {
... ...
@@ -405,8 +404,8 @@ getData <- function(input) {
405 404
     #   }
406 405
     # }
407 406
 
408
-    if(input$filetype == '10col') {# this file not in use anymore, can delete?
409
-      mydata = read.csv(infile$datapath, header = TRUE, sep = input$sep_data) # not tested sep
407
+    if(input$filetype == '10col') {
408
+      mydata = read.csv(infile$datapath, header = TRUE, sep = input$sep_data) 
410 409
     }
411 410
     else if(input$filetype == 'sky') {
412 411
       cat(file=stderr(), "Reached here in skyline\n")
... ...
@@ -498,7 +497,6 @@ getData <- function(input) {
498 497
       #   data = read.csv.sql(infile$datapath, sep="\t",
499 498
       #                       sql = "select * from file order by random() limit 100000")
500 499
       # } else {
501
-      # data = read.csv(input$specdata$datapath, sep="\t")
502 500
       data = read.csv(input$specdata$datapath, sep=input$sep_specdata)
503 501
       # }
504 502
       mydata = SpectronauttoMSstatsFormat(data,
... ...
@@ -514,7 +512,6 @@ getData <- function(input) {
514 512
       #   data = read.csv.sql(infile$datapath, sep="\t",
515 513
       #                       sql = "select * from file order by random() limit 100000")
516 514
       # } else {
517
-      # data = read.csv(input$dianndata$datapath, sep="\t") # hard coded value here
518 515
       data = read.csv(input$dianndata$datapath, sep=input$sep_dianndata)
519 516
       # }
520 517
       print(input$dianndata$datapath)
... ...
@@ -583,7 +580,6 @@ getData <- function(input) {
583 580
       #   data = read.csv.sql(infile$datapath, sep = "\t",
584 581
       #                       sql = "select * from file order by random() limit 100000")
585 582
       # } else {
586
-      # data = read.csv(infile$datapath, sep="\t")
587 583
       data = read.csv(infile$datapath, sep=input$sep_data)
588 584
       # }
589 585
       mydata = SpectroMinetoMSstatsTMTFormat(data, getAnnot(input),