mehrnoushmalek / flowDensity

Automated gating
7 stars 3 forks source link

plotDens not working with GatingHierarchy #5

Closed osthomas closed 4 years ago

osthomas commented 4 years ago

Hi,

plotDens is not working correctly with a GatingHierarchy object, because the class check falls through to the default case.

Changing https://github.com/mehrnoushmalek/flowDensity/blob/cec850f4a84e8edfb813c12e8841e04307b6a653/R/flowDensity_methods.R#L135

to else if(class(obj)=="CellPopulation") fixes this.

mehrnoushmalek commented 4 years ago

Thanks for checking @osthomas. It's fixed now.