bioFAM / MOFA

Multi-Omics Factor Analysis
GNU Lesser General Public License v3.0
231 stars 57 forks source link

plotFactorBeeswarm does not work if all sample Ids are integers #15

Closed Christian-Heyer closed 6 years ago

Christian-Heyer commented 6 years ago

When using a model where all sample identifiers are numbers and running plotFactorBeeswarm(Model, factor = 1) leaving "color_by" and "shape_by" undefined, the command will fail with Error in seq.default(h[1], h[2], length.out = n) : 'to' must be a finite number

I believe in "plotFactors.R" at line 161 Z$sample is a vector of integers if all sample ids are numeric and therefore fills Z$color_by with NA values instead. I suspect that the same will happen with shape_by at line 191.