This function evaluates track expressions for each interval from
'intervals'. The resulted vectors are passed then as arguments to 'FUN'.
If the intervals are one-dimensional and have an additional column named
'strand' whose value is '-1', the values of the track expression are placed
to the vector in reverse order.
The current interval index (1-based) is stored in 'GAPPLY.INTERVID' variable
that is available during the execution of 'gintervals.mapply'. There is no
guarantee about the order in which the intervals are processed. Do not rely
on any specific order and use 'GITERATOR.INTERVID' variable to detect the
current interval id.
If 'enable.gapply.intervals' is 'TRUE', an additional variable
'GAPPLY.INTERVALS' is defined during the execution of 'gintervals.mapply'.
This variable stores the current iterator intervals prior to track
expression evaluation. Please note that setting 'enable.gapply.intervals' to
'TRUE' might severely affect the run-time of the function.
Note: all the changes made in R environment by 'FUN' will be void if
multitasking mode is switched on. One should also refrain from performing
any other operations in 'FUN' that might be not "thread-safe" such as
updating files, etc. Please switch off multitasking ('options(gmultitasking
= FALSE)') if you wish to perform such operations.
If 'intervals.set.out' is not 'NULL' the result is saved as an intervals
set. Use this parameter if the result size exceeds the limits of the
physical memory.