Galaxy | Tool Preview

Convert coordinates to label map (version 0.5.0)
Only used if the input is a tabular file (ignored for GeoJSON). Turning this off will interpret the tabular file as a list of points, where the X and Y coordinates correspond to the first and second column, respectively.
Swap the X and Y coordinates before rasterization. The width and height of the output image is not affected.
Use the same label for all shapes (65535).

Converts a list of shapes to a label map via rasterization.

The created image is a single-channel image with 16 bits per pixel (unsigned integers). The shapes are rasterized with unique labels, explicitly given labels (custom), or the value 65535 (white) for binary image output. Pixels not corresponding to any shapes are assigned the value 0 (black).

Using a GeoJSON input file (recommended). Only features (shape specifications) of Polygon and Point type are supported. In conjunction with the radius property, a Point type feature can also be used to represent circles. Custom labels can be encoded in the name property (must be numeric and integer), and different features are allowed to use the same labels.

Using a tabular input file (deprecated). The tabular list of points can either be header-less. In this case, the first and second columns are expected to be the X and Y coordinates, respectively, and each row corresponds to a single point. Otherwise, if a header is present, it is searched for the following column names:

  • Column pos_x or POS_X is mandatory and corresponds to the X coordinates.
  • Column pos_y or POS_Y is mandatory and corresponds to the Y coordinates.
  • If a radius or RADIUS column is present and the value in a row is positive, then the row will be rasterized as a circle of the corresponding size, centered at the given X and Y coordinates.
  • If width or WIDTH and height or HEIGHT columns are present and the values in a row are positive, then the rows will be rasterized as rectangles of the corresponding size, with the upper-left corner given by the X and Y coordinates.
  • If a label or LABEL column is present, then the corresponding labels will be used for rasterization (unless "Produce binary image" is activated). Different rows are allowed to use the same label. If used, the label must be numeric and integer.