Skip to content

Commit

Permalink
Merge pull request #437 from RubD/suite
Browse files Browse the repository at this point in the history
update fix extract_polygon_list
  • Loading branch information
RubD authored Nov 21, 2022
2 parents 13e1301 + 62d5c63 commit 0a9df62
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions R/giotto_structures.R
Original file line number Diff line number Diff line change
Expand Up @@ -656,21 +656,21 @@ extract_polygon_list = function(polygonlist,

if(is.character(polyinfo)) {

parameters = c(name = name_polyinfo,
maskfile = polyinfo,
parameters = c(list(name = name_polyinfo,
maskfile = polyinfo),
polygon_mask_list_params)
if(isTRUE(verbose)) print(parameters)

poly_results = do.call('createGiottoPolygonsFromMask', parameters)
poly_results = do.call(what = 'createGiottoPolygonsFromMask', args = parameters)

} else if(inherits(polyinfo, 'data.frame')) {

parameters = c(name = name_polyinfo,
maskfile = polyinfo,
parameters = c(list(name = name_polyinfo,
segmdfr = polyinfo),
polygon_dfr_list_params)
if(isTRUE(verbose)) print(parameters)

poly_results = do.call('createGiottoPolygonsFromDfr', parameters)
poly_results = do.call(what = 'createGiottoPolygonsFromDfr', args = parameters)

} else if(inherits(polyinfo, 'giottoPolygon')) {

Expand Down

0 comments on commit 0a9df62

Please sign in to comment.