BodenmillerGroup / cytomapper

R package for visualization of highly multiplexed imaging data
https://bodenmillergroup.github.io/cytomapper/
31 stars 9 forks source link

Fix subset_images parameter #16

Closed ndamond closed 4 years ago

ndamond commented 4 years ago

plotPixels(image = pancreasImages, subset_images = 1) and plotPixels(image = pancreasImages, subset_images = 1:3) both work, but plotPixels(image = pancreasImages, subset_images = 1:2) plotPixels(image = pancreasImages, subset_images = 2:3) return the error message: Error in normalizeDoubleBracketSubscript(i, x, exact = exact, allow.NA = TRUE, : subscript is out of bounds

Tried with a larger dataset: _subsetimages works when subsetting an odd number of images but not when subsetting an even number

nilseling commented 4 years ago

It's fixed now