lgatto / pRoloc

A unifying bioinformatics framework for organelle proteomics
http://lgatto.github.io/pRoloc/
15 stars 14 forks source link

highlightOnPlot without a default fcol fails #105

Closed lmsimp closed 6 years ago

lmsimp commented 6 years ago

Currently, if there is no fcol called "markers" present in the MSnSet highlightOnPlot fails. e.g.

> library("pRoloc")
> library("pRolocdata")
> data("hyperLOPIT2015")
> fData(hyperLOPIT2015)$markers <- NULL
> plot2D(hyperLOPIT2015, fcol = "markers2015")
> ff <- featureNames(hyperLOPIT2015)[1:4]
> highlightOnPlot(hyperLOPIT2015, foi = ff)
Error in isMrkMat(object, fcol) : 
  fcol %in% fvarLabels(object) is not TRUE
lgatto commented 6 years ago

Fixed on github, version 1.21.1.