Dear Aleksander,
In short yes you can and should use (some of) the parameters you've previously determined from the pairwise calculations for the conditionals:
For the target, you should read out the embedding parameters that were determined from the pairwise calculations (after the calculation is made) by calling, for example in Matlab:
dest_k = teCalc.getProperty('k_HISTORY');
dest_tau = teCalc.getProperty('k_TAU');
Then supply them directly to the conditional TE calculator:
teCalc.setProperty('k_HISTORY', dest_k);
teCalc.setProperty('k_TAU', dest_tau);
For the conditional (assuming just one for now), you're right that you would use the parameters determined from when it was a source. So similarly, you would read them out and store them first from the relevant pairwise calculation:
source_as_conditional_k = teCalc.getProperty('l_HISTORY');
source_as_conditional_tau = teCalc.getProperty('l_TAU');
source_as_conditional_delay = teCalc.getProperty('DELAY');
Then supply them directly to the conditional TE calculator:
condTeCalc.setProperty('COND_EMBED_LENGTHS', source_as_conditional_k);
condTeCalc.setProperty('COND_TAUS', source_as_conditional_tau);
condTeCalc.setProperty('COND_DELAYS', source_as_conditional_delay);
Note that these properties for conditionals are expecting one value for every conditional variable, so if you're using multiple conditionals you would supply them as a comma separated string of integers. (In the same order that the conditionals are supplied in).
For the source, you can use the same Ragwitz embedding that you determined from the pairwise calculation and then pass those in
source_k = teCalc.getProperty('l_HISTORY');
source_tau = teCalc.getProperty('l_TAU');
Then supply them directly to the conditional TE calculator:
condTeCalc.setProperty('l_HISTORY', source_k);
condTeCalc.setProperty('l_TAU', source_tau);
However, I would suggest that you manually check for the delay that maximises the conditional TE from this source now, since this may be different with the conditioning.
This is not automated in JIDT.
Along these lines, I would suggest that instead of directly conditioning on all sources, you would be best to iteratively determine the strongest source first, then condition on that whilst selecting the next strongest source, and so on until the sources are no longer statistically significant. This is because directly going to a calculation of conditional TE with 5 conditionals, all embedded, is likely to exhaust the statistical power in many realistically sized data sets.
What I am getting at here is the higher level greedy / iterative algorithm that is implemented in our partner IDTxl toolkit, and described in e.g.
this paper.
Whilst I am planning to add a simplistic implementation of what I've described here to be distributed with JIDT, that will be for purposes of demonstration -- the IDTxl implementation is that which does this properly, e.g. with non-uniform embeddings rather than Ragwitz.