biodavidjm / artMS

Analytical R Tools for Mass Spectrometry
GNU General Public License v3.0
14 stars 7 forks source link

Error running qc Summary based #101

Closed biodavidjm closed 4 years ago

biodavidjm commented 5 years ago

Strange error when running artmsQualityControlSummaryExtended

>> MERGING FILES 
>> GENERATING QC PLOTS 
--- Plot NUMBER OF MS1 SCANS done 
--- Plot Number of MS2 scans

 Error in interaction(variable, bioreplicate) : 
  object 'variable' not found 

It seems to be related to this step:

    summarykeys.scans <- melt(summarykeys[, seq_len(4)], 
                              id.vars = seq_len(2))

I'll fix it by replacing seq_len(4) by 1:4

IT does not make any sense because nothing has changed in the code, was working perfectly, and now suddenly has stopped working. Very strange.