getIasBinAreas.Rd
Computes the area circular bins of the IAS algorithm cover.
An object of class spata2
.
Character value. The ID of the image annotation of interest.
Distance value. Specifies the distance from the border of the
image annotation to the horizon in the periphery up to which the screening
is conducted. (See details for more.) - See details of ?is_dist
for more
information about distance values.
Numeric value or vector of length 2. Specifies how many times the area is buffered with the value
denoted in binwidth
.
(See details for more.)
Distance value. The width of the circular bins to which
the barcode-spots are assigned. We recommend to set it equal to the center-center
distance: binwidth = getCCD(object)
. (See details for more.) - See details of ?is_dist
for more
information about distance values.
Numeric vector of length 2. Confines the area screened by an angle span relative to the center of the image annotation. (See details fore more.)
Numeric value. Number of bins that are created by angle. (See details for more.)
Logical value. If TRUE
, uses the outline variable
set with setOutlineVarName()
or if none is set DBSCAN to identify the
outline of the tissue section or sections in case of multiple tissue sections
on one Visium slide to only compute the area of circle bins that covers the
tissue section.
Logical. If set to TRUE informative messages regarding the computational progress will be printed.
(Warning messages will always be printed.)
Data.frame in which each observation corresponds to a circular bin.
Approximates the area each circular bin covers
by assigning each pixel to the circular bin it falls into.
Afterwards the number of pixels per bin is multiplied
with the area scale factor as is obtained by getPixelScaleFactor(object, unit = unit)
where unit is the squared unit of input for argument binwidth
. E.g.
if binwidth
= '0.1mm' then unit
= mm2.
If multiple tissue sections are located on the Visium slide use createSpatialSegmentation()
to encircle each section and set the variable name in which you saved the
encircling via setOutlineVarName()
. Else the areas of the circle bins might
include space that is not covered by tissue. This might distort computation
results.